View previous topic :: View next topic |
Author |
Message |
tobasfxp n00b
Joined: 02 Jun 2004 Posts: 23
|
Posted: Sun Jun 20, 2004 10:43 am Post subject: rebuid PhP with gd support |
|
|
Hi,
ive already installed PhP with the emerge --usepkg php command, but now i have a website installed ( mambo ) and when i want to display pictures like gif,jpeg,png etc. i need to install gd ( GD Graphics Library )( www.boutell.com/gd/ ) thats ok i done it but now i have 2 rebuild php so it works with gd enabled.
in de tut of gd they say :
Quote: |
Just build PHP with gd enabled (--enable-gd) to get the built-in gd distribution in any newer version of PHP
|
but how does this work with "emerge"???
Tobas |
|
Back to top |
|
|
monotux l33t
Joined: 09 Sep 2003 Posts: 751 Location: Stockholm, Sweden
|
Posted: Sun Jun 20, 2004 11:06 am Post subject: |
|
|
Code: | USE="gd" emerge mod_php -pv |
you are supposed to use mod_php if you want to use it with apache2 (or was it 1.3? cant remember).
the last "-pv" options will give you a complete (v is the short form of verbose, p is --pretend-only) list of what dependencies and their options are...quite handy.
btw, I haven't been able to make my gd work properly, but it's probably only me that's fubar
if you need additional help, check out the desktop-guide!
http://www.gentoo.org/doc/en/desktop.xml#doc_chap8 _________________ Computer science is no more about computers than astronomy is about telescopes. |
|
Back to top |
|
|
10drill Tux's lil' helper
Joined: 27 May 2004 Posts: 104 Location: 0{here}1
|
Posted: Sun Jun 20, 2004 1:19 pm Post subject: |
|
|
In my opinion, installing php from source NOT using portage is the only way to go. Don't get me wrong, portage is spectacular, but for something as customizable and specialized as php you might be better off unmeging your php module and building it following the php install directions. I have GD working perfectly, along with many other options trying to match the php installation my web host uses. My configure file is:
Code: | ./configure \
--with-apxs \
--with-config-file-path=/etc/php \
--enable-magic-quotes \
--enable-bcmath \
--without-cdb \
--with-zlib-dir=/usr \
--with-gd \
--with-ttf \
--without-msql \
--with-mysql=/usr \
--with-pdflib \
--enable-inline-optimization \
--disable-memory-limit \
--with-gettext \
--without-readline \
--with-recode \
--without-openssl \
--with-mcrypt \
--with-curl \
--with-png-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--enable-calendar \
--with-mhash \
--enable-xslt \
--with-xslt-sablot \
--with-expat-dir=/usr \
--enable-gd-lzw-gif |
Basically to install php as a dynamic module ./configure --with-whatever-you-want, make, make install and you are pretty much done. I also make a cgi version of php and use a php-aware version of cgi-wrap, again to make my Gentoo box like my FreeBSD host. Works very well for me! |
|
Back to top |
|
|
sapphirecat Guru
Joined: 15 Jan 2003 Posts: 376
|
Posted: Sun Jun 20, 2004 4:45 pm Post subject: |
|
|
furiorc wrote: | you are supposed to use mod_php if you want to use it with apache2 (or was it 1.3? cant remember). |
It probably depends on the apache2 USE flag. I have it set and mine installs Apache 2 _________________ Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%... |
|
Back to top |
|
|
|