Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.16

Bug #6245 "Silent" PEAR installation
Submitted: 2005-12-14 18:10 UTC
From: info at e-novative dot de Assigned: cellog
Status: Bogus Package: PEAR
PHP Version: 5.1.1 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 34 + 45 = ?

 
 [2005-12-14 18:10 UTC] info at e-novative dot de
Description: ------------ I am trying to install PEAR silently; that is, without user interaction. To me it seems that there is currently no possiblity of doing this. It would be a great to automatically deploy PHP with PEAR if the PEAR installer could be changed to support this. Would it be possible to add a "silent" switch to the PEAR installer that would just skip asking questions and install PEAR with default values? This would allow for fully automated deployment of PHP with PEAR.

Comments

 [2005-12-14 19:06 UTC] pajoye
It cannot be done automatically on windows. Certain values in php are statically compiled and do not reflect the current setup.
 [2005-12-14 23:20 UTC] cellog
au contraire http://pear.php.net/install-pear-nozlib.phar works great on windows, all that is required is php 5.1.1 or newer. In fact, the gnope installer that distributes PHP 5.1, php-gtk2, and PEAR_Frontend_Gtk2 does exactly this in the installation process (http://www.gnope.org/download.php)
 [2005-12-14 23:45 UTC] pajoye
Silently?
 [2005-12-15 00:01 UTC] cellog
according to our friend's definition of "silent" (does not need user input), yes it is silent :)
 [2005-12-15 00:38 UTC] info at e-novative dot de
@cellog: yes, install-pear-nozlib.phar works silently, but installs to c:\php5 which is not what I want - I want to install PEAR inside my php directory. Is there a way to pass another installation path to the installer? @pajoye: I don't agree with "it can't be done". Sorry if I failed to make my point clear. When I run go-pear, it basically calculates several values and asks me to confirm them. This requires me to hit enter twice. I cannot automate this (I have tried with echo piped to batch tricks, but didn't get this to work). My goal is a fully automated installation and configuration of PHP and PEAR. This would be possible by adding a switch like "go-pear system" and/or "go-pear silent" which skips asking the two questions, but installs PEAR using the calculated default values. To me, this has nothing to do with statically compiled values?
 [2005-12-15 00:49 UTC] pajoye
Unless we define a default install (as done in the phar and go-pear by default), and disable totally the interactivity (using some --quiet mode), yes, it could be possible. a 100% workable solution will only work with a default path, php install guesses on windows (no matter if you use phar or not) is a pain :) Assign to greg, he is the phar magician
 [2005-12-15 03:48 UTC] cellog
try php install-pear-nozlib.phar -b C:\path\to\where\you\want\pear.bat -d C:\path\to\php Before you begin, try it with this path to make sure all is as you expect: php install-pear-nozlib.phar -b C:\path\to\where\you\want\pear.bat -d C:\path\to\php --extreme-debug If you want to understand what is going on, it is quite simple. http://cvs.php.net/viewcvs.cgi/pear-core/install-pear.php?view=markup Regards :)
 [2005-12-15 03:49 UTC] cellog
re-marking bogus since everything has been thought of (hopefully)
 [2005-12-15 18:52 UTC] info at e-novative dot de
Greg, thanks for your help. It works - almost. Here's what happens: I run "C:\Programme\e-novative\WAMP\php\php.exe" "C:\Programme\e-novative\WAMP\e-novative\install-pear-nozlib.phar" -d "C:\Programme\e-novative\WAMP\php\PEAR" -b "C:\Programme\e-novative\WAMP\php" --extreme-debug The installer rather cowardly insists on putting php_bin=c:\php5\php.exe into pearsys.ini. Obviously this value also appears in the .bat files (PHP_PEAR_PHP_BIN) and in the environment variable of the same name. This is somehow strange since PHP_PEAR_BIN_DIR is set correctly. When I manually patch pearsys.ini and the batch files and change the environment variable, the pear installation works just fine. Another thing I noticed is that pearsys.ini contains chache_dir="c:\DOKUME~1\Steve\LOKALE~1\Temp\pear\cache". Since I do a system-wide installation of PEAR, it is probably not a good idea to use a certain user's Temp directory as the PEAR cache directory. I another user runs PEAR, he will probably not have access rights to my Temp dir. It might be better to use the Temp dir inside the Windows directory for system-wide PEAR installation.
 [2006-01-02 18:00 UTC] cellog
use -p to specify the path to php.exe