Entropy.ch Discussion Forums Forum Index Entropy.ch Discussion Forums
Discussion forums about Mac OS X software development.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Some notes how to get PEAR working

 
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X
View previous topic :: View next topic  
Author Message
brammeleman
Guest





PostPosted: Fri May 21, 2004 18:01    Post subject: Some notes how to get PEAR working Reply with quote

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





PostPosted: Fri May 21, 2004 21:19    Post subject: Thanks! Reply with quote

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





PostPosted: Sat Jun 19, 2004 21:21    Post subject: Reply with quote

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





PostPosted: Wed Jun 30, 2004 4:28    Post subject: libtoolize bug Reply with quote

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

PostPosted: Sat Oct 30, 2004 5:37    Post subject: other php.ini problems Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group