Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP on the commandline....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Sun May 12, 2002 6:06 pm    Post subject: PHP on the commandline.... Reply with quote

I love this language.

I love it so much that I use it in place of perl and bash scripting. Problem is that the php ebuild only seems to build the apache module of php :(

Does anyone know of a way to get it to build the actual commandline php interpretor? Or is it built and I just can't find it??

Thanks for any help!

Derek
Back to top
View user's profile Send private message
steveD
Guest





PostPosted: Sun May 12, 2002 8:17 pm    Post subject: Reply with quote

I built PHP (both comand line version and apache module) from tar.gz source. It's easier this way since I can control the built-options:
Here is my scripts:
1/ Copy php source (e.g php-4.1.2.tar.gz) to somewhere (e.g. /tmp)
E.g
cd /tmp
tar -zxf php-4.1.2.tar.gz
cd php-4.1.2
./configure --prefix=/usr --enable-ftp --enable-bcmath --with-pgsql=path-to-pgsql --with-mysql=path-to-mysql --with-config-file-path=/usr/lib
make
make install

Run ./configure --help to see all options.
After "make install", you need to rename the php.ini-dist and copy it to /usr/lib (you may need some changes in this file).
To build an apache module, just add the option --with-apxs=path-to-apache-folder.
Hope this help
Back to top
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Sun May 12, 2002 9:03 pm    Post subject: Right.... Reply with quote

Right...

I could do that if I want to (used to do it in Slack). I was wondering more about being able to do it with an Ebuild.

Oh, well, I guess I will just install the command line version from source - but continue to use the ebuild version for the apache module.

Thanks for your reply!

Derek
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Sun May 12, 2002 10:14 pm    Post subject: Reply with quote

Just hack up a copy of the mod_php ebuild. Copy and rename it. Take out the --with-apache line in the configure script, remove all the apache DSO related stuff, and ya should be set.

I made an ebuild that compiles apache+php+ssl+mod_log_mysql all statically, and it compiles the php command line interpreter. If you want it, let me know.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Mon May 13, 2002 12:29 am    Post subject: Reply with quote

Thanks for the reply Nitro...

That is a great idea. Looks like I need to get my feet wet with python and ebuilding :)

Derek
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon May 13, 2002 7:07 am    Post subject: php Reply with quote

Kyle,
Can you give me this ebuild script? :-)
pacman
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
mfairchi
n00b
n00b


Joined: 23 Apr 2002
Posts: 57
Location: Ventura, California

PostPosted: Thu May 16, 2002 7:17 pm    Post subject: Reply with quote

I'd like to see this script, too. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
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