| View previous topic :: View next topic |
| Author |
Message |
brammeleman Guest
|
Posted: Fri May 21, 2004 18:01 Post subject: Some notes how to get PEAR working |
|
|
The php command line interface that is part of the entropy php package expects a php.ini file in /etc. This is why the PEAR command line tools don't work in a default installation. I created a symlink to the configuration file of the php apache module:
| Code: | | sudo ln -s /usr/local/php/lib/php.ini /etc/php.ini |
You also have to add the following line in /usr/local/php/lib/php.ini:
| Code: | | include_path = ".:/usr/local/php/lib/php" |
So pear can find it's include files.
After this changes, you are able to run the pear command from the command line. By running:
| Quote: | | sudo pear install xml_rpc |
and:
| Code: | | sudo pear upgrade-all |
...you will be up to date with the pear library.
I don't know if it is recommended to use the same configuration files for the php apache module and the cli version. I'm new to osX, so I'm not sure if /etc is the right location for the cli php.ini.
Well, at least, it works for me! |
|
| Back to top |
|
 |
tom.morrison Guest
|
Posted: Fri May 21, 2004 21:19 Post subject: Thanks! |
|
|
This was a great tip. I had been battling this problem all day and likely would not have fixed it properly.
Thanks very much!!! |
|
| Back to top |
|
 |
whysper Guest
|
Posted: Sat Jun 19, 2004 21:21 Post subject: |
|
|
Thank you so much for this thread. I had been trying to install pear packages using the "pear install" command, it just would not work! This fixed it.
Is there anyway that Marc Liyanage can put this somewhere on the PHP install notes webpage?
Thanks again! |
|
| Back to top |
|
 |
zardox Guest
|
Posted: Wed Jun 30, 2004 4:28 Post subject: libtoolize bug |
|
|
Here is another I ran into:
http://bugs.php.net/bug.php?id=25163&edit=3
I edited /usr/bin/phpize at line 44, changing "libtoolize" to "glibtoolize"
Mac OS X 10.3.4 and Entropy-PHP-4.3.6-4
Perhaps this will be fixed when the Entropy php package is updated to PHP 4.3.7 ?
Then I was able to build the SQLite 1.0.2 module. |
|
| Back to top |
|
 |
lsloan

Joined: 28 Oct 2004 Posts: 7 Location: Ann Arbor, Michigan, USA
|
Posted: Sat Oct 30, 2004 5:37 Post subject: other php.ini problems |
|
|
I'm using the PHP 4.3.9 package and I didn't have problems with the software looking at the wrong php.ini file. But I had problems with the contents of php.ini. It had this:
extension_dir = "./"
When it really should have been:
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429"
That fixed my inability to load the Pear SQLite module. |
|
| Back to top |
|
 |
|