Help - Search - Members - Calendar
Full Version: HOWTO : PHP 4.2.3 With GD 2.0 for Ensim 3.1.1
The Planet Forums > System Administration > HOWTOs
Pages: 1, 2, 3
phenx
UPDATED 5/11/2002 for PHP 4.2.2, downgrade to avoid bug in PHP 4.2.3

Ok since The Ensim 3.1.1 patch installs PHP 4.2.2 with GD 1.6, and due to the popularity of the 4.2.2 w/ GD 2.0 (for Ensim 3.0) i have written this how to.

REQUIREMENTS:
- Note: The procedure below is ONLY for Ensim 3.1.1,

if you dont have 3.1.1, you can upgrade it fairly easily. Please check out this thread here - http://forum.rackshack.net/showthread.php?...&threadid=10359


Step One:
SSH to your box, and proceed to login as root.

mkdir php

cd php

wget http://us3.php.net/distributions/php-4.2.2.tar.gz

wget http://www.boutel.com/gd/http/gd-2.0.1.tar.gz

tar -zxvf gd-2.0.1.tar.gz

cd gd-2.0.1

pico Makefile

locate
INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include

and replace it with

INCLUDEDIRS=-I. -I/usr/local/include/freetype2 -I/usr/local/include

hit controll +X to exit, make sure you hit Y to save the file.

once out of pico, type

make

make install

this will install the shared GD library for later use. You will also need to make the libgd.a

make libgd.a

cd ../

tar -zxvf php-4.2.3.tar.gz

cd php-4.2.3

now we need to configure php. The configure below is the standard PHP configure taken directly from the Ensim 3.1.1 patch, so if you wish to add any additional components, i would suggest you do so before going any further.

./configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd=/home/admin/php/gd-2.0.1 --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext=shared --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pear --with-png --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-debugger --enable-exif --enable-ftp=shared --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem=shared --enable-sysvshm=shared --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --disable-experimental-zts --with-apxs=/usr/sbin/apxs

Configure may take some time... so you wany want to get out the beer and nuts icon_wink.gif

NOTE: I removed --with-pspell as it caused a wierd error. If anyone knows how to fix that, please let me know.


Once configure is completed, type

make

This will build all the components, should take 15 minutes or so.... more beer and nuts icon_biggrin.gif

finally, we need to run

make install

Once it is installed, a simple reboot of Apache and we are all done!

/sbin/service httpd restart

All done! icon_smile.gif

Please post any problems/errors you get below!
sajjid
Hi i am getting this error towards the end
configure: error: freetype2 not found!
[root@admin php-4.2.3]# make
make: *** No targets specified and no makefile found. Stop.
[root@admin php-4.2.3]# make install
make: *** No rule to make target `install'. Stop.
tuantranq
i got error
checking for DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution
BoiTaiTui
just want to make sure, are you running on ensim3.1.1?
phenx
QUOTE
Originally posted by sajjid
Hi i am getting this error towards the end
configure: error: freetype2 not found!
[root@admin php-4.2.3]# make
make: *** No targets specified and no makefile found.  Stop.
[root@admin php-4.2.3]# make install  
make: *** No rule to make target `install'.  Stop.


You will need to go to www.rpmfind.net and search for freetype2, and install that first.
gkong
Having difficulties installing freetype2 using RPMs grabbed in rpmfind.net
Preparing... ########################################### [100%]
file /usr/lib/libfreetype.so.6 from install of freetype2-2.0.1-ximian.1 conflicts with file from package freetype-2.1.2-7
Any solutions? Find another RPM builds also, no luck
phenx
wget http://telia.dl.sourceforge.net/sourceforg...pe-2.1.2.tar.gz
tar zxvf freetype-2.1.2.tar.gz
cd freetype-2.1.2

#The following is NOT an error or lost line, it does need to be make and make..
make
make


thanks to mouse for the above.
anders
QUOTE
Originally posted by tuantranq
i got error
checking for DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution



im having this error as well - anyone?
Owen
cant install GD 2.0, it tells me to type "make install" first, I do this and get this error...

gdft.c:42:31: freetype/freetype.h: No such file or directory
gdft.c:43:30: freetype/ftglyph.h: No such file or directory
make: *** [gdft.o] Error 1

and then cant continue.
phenx
You must have libxml installed first icon_smile.gif


wget ftp://ftp.rpmfind.net/linux/redhat/7.3/en...4.19-4.i386.rpm
rpm -Uhv libxml2-2.4.19-4.i386.rpm

wget ftp://ftp.rpmfind.net/linux/redhat/7.3/en...4.19-4.i386.rpm
rpm -ihv libxml2-devel-2.4.19-4.i386.rpm

rm -f *.rpm
Owen
nope already got them installed (if you were referring to me) =/.
Owen
QUOTE
Originally posted by sajjid
Hi i am getting this error towards the end
configure: error: freetype2 not found!
[root@admin php-4.2.3]# make
make: *** No targets specified and no makefile found.  Stop.
[root@admin php-4.2.3]# make install  
make: *** No rule to make target `install'.  Stop.


Tried just configuring php and get exactly the same error too, even after installing freetype2 as said above! =/. Anyone know how to fix either of the above problems?
phenx
QUOTE
Originally posted by Owen


Tried just configuring php and get exactly the same error too, even after installing freetype2 as said above! =/. Anyone know how to fix either of the above problems?


type updatedb, then type in "locate freetype" and tell me what you get. Its more than likely the paths are wrong for the configure icon_smile.gif
Owen
nm fixed freetype, the link used in this thread to it works for 3.1 but not 3.1.1, got it all working now icon_smile.gif thanks for the great howto.
sajjid
QUOTE
Originally posted by Owen
cant install GD 2.0, it tells me to type "make install" first, I do this and get this error...

gdft.c:42:31: freetype/freetype.h: No such file or directory
gdft.c:43:30: freetype/ftglyph.h: No such file or directory
make: *** [gdft.o] Error 1

and then cant continue.


yes i am getting the same error and i aswell have libxml installed already.
any help iG
ilir
QUOTE
Originally posted by [iG]


type updatedb, then type in "locate freetype" and tell me what you get. Its more than likely the paths are wrong for the configure icon_smile.gif


I typed "locate freetype" and got a VERY long list of locations. I don't know how to view the first ones, but the last locations were:

/home/php/freetype-2.1.2/

I got as far as "make" but got the error mentioned before:
[root@srv2 php-4.2.3]# make
make: *** No targets specified and no makefile found. Stop.

Can anyone help me please? I'm running Ensim 3.1.

Thanks a lot.

Ilir.
phenx
QUOTE
Originally posted by ilir


I typed "locate freetype" and got a VERY long list of locations. I don't know how to view the first ones, but the last locations were:

/home/php/freetype-2.1.2/

I got as far as "make" but got the error mentioned before:
[root@srv2 php-4.2.3]# make
make: *** No targets specified and no makefile found.  Stop.

Can anyone help me please? I'm running Ensim 3.1.

Thanks a lot.

Ilir.


did you run configure?
mooony
hi

I am getting the following error when I do the configure for php. I have upgraded to ensim 3.1.1.

I used your line to configure but I get this:

checking for crypt in -lcrypt... (cached) yes
configure: error: Cannot find rfc822.h. Please check your IMAP installation.

Do I have to download the imap to get the configure to work?

mooony-
phenx
yep, you'll need to run the following

wget ftp://ftp.rpmfind.net/linux/redhat/update...1.72.0.i386.rpm
rpm -Uhv imap-devel-2001a-1.72.0.i386.rpm
mooony
QUOTE
Originally posted by [iG]
yep, you'll need to run the following

wget ftp://ftp.rpmfind.net/linux/redhat/update...1.72.0.i386.rpm
rpm -Uhv imap-devel-2001a-1.72.0.i386.rpm


Thanks iG.

This this the trick.

mooony-
ilir
Yeah, I ran ./configure with the posted options and tried the make and make install but they didn'twork.

The problem is my reading the freakin' thread title... it says for 3.1.1:rolleyes: and I have 3.1:(

Thanks though.

Ilir.
WrĊith
QUOTE
Originally posted by [iG]
[B]wget http://telia.dl.sourceforge.net/sourceforg...pe-2.1.2.tar.gz
tar zxvf freetype-2.1.2.tar.gz  
cd freetype-2.1.2  

#The following is NOT an error or lost line, it does need to be make and make..  
make  
make  


thanks to mouse for the above. [/B]
When I try the above, I get the following error:

checking size of int... configure: error: cannot compute sizeof (int), 77
make: *** [unix-def.mk] Error 1


Any ideas?
mooony
Hi WrĊith,

I did this to get it working.

./configure
make
make install

This was the only way I could get it working.

mooony-
WrĊith
I get the same error when I do ./configure

CODE
checking size of int... configure: error: cannot compute sizeof (int), 77

make: *** [unix-def.mk] Error 1
mooony
seeing that you did make try this:

type: make clean

./configure
make
make install

seeing that I also did make first I got some errors. After doing make clean it worked.

I hope this works for you.

mooony-
WrĊith
I'll give that a shot.

Thanks. icon_smile.gif
WrĊith
QUOTE
Originally posted by mooony
seeing that you did [B]make try this:

type: make clean

./configure
make  
make install

seeing that I also did make first I got some errors. After doing make clean it worked.

I hope this works for you.

mooony- [/B]

No such luck. I ended up with the following error:

CODE
[root@srv01 freetype-2.1.2]# make clean

make: *** No rule to make target `clean'.  Stop.
SciFiJunkie
QUOTE
Originally posted by anders

quote:
--------------------------------------------------------------------------------
Originally posted by tuantranq  
i got error  
checking for DOM support... yes  
not found  
configure: error: Please reinstall the libxml >= 2.4.14 distribution  
--------------------------------------------------------------------------------

im having this error as well - anyone?


Same problem here. mad.gif Anyone figured it out yet. Nothing I do seems to change that it wont compile.

SciFiJunkie
mooony
WrĊith

Did you install the libxml files and are you sure you ensim 3.1.1. I tried this on a ensim 3.1 and it gives me the same error you are having.

SciFiJunkie

you have to install the libxml files.

You must have libxml installed first. You will find in this a list where you can get them and how to install it.

mooony-
SciFiJunkie
Mooody,

Yes I have sorry didn't think about that adding that to the message. I did try every think that I found here. It was late so I did not try searching throught the other messages yet. I will be doing that today.

I have also just upgraded from 3.0.3-4 to 3.1.1 and every thing else works that would be part of the new version.

Looks like WrĊith and I are having the same problems.

Thanks to you and all those here that like to assis other in need.

SciFiJunkie
mooony
SciFiJunkie,

try this:

rpm -q libxml2

it should show this

libxml2-2.4.19-4

and the same for this

rpm -q libxml2-devel

libxml2-devel-2.4.19-4

If you have the same result then this is ok.

Try untar the pakage of freetype again. Then do ./configure make make install

If you keep getting errors let me know.

mooony-
WrĊith
mooony:

I did instally the latest libxml2 package. As you instructed, I un-tarred the package again and then ran the ./configure command. I also ran the rpm check to verify the version of libxml2 that I have installed. Here is the output:

CODE
[root@srv01 freetype-2.1.2]# ./configure

cd builds/unix; ./configure

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking for gcc... gcc

checking for C compiler default output... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking how to run the C preprocessor... gcc -E

checking for rm... rm -f

checking for rmdir... rmdir

checking for a BSD-compatible install... /usr/bin/install -c

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking for unistd.h... (cached) yes

checking for gcc option to accept ANSI C... none needed

checking for an ANSI C-conforming const... no

checking for int... yes

checking size of int... configure: error: cannot compute sizeof (int), 77

make: *** [unix-def.mk] Error 1

[root@srv01 freetype-2.1.2]#

[root@srv01 freetype-2.1.2]# rpm -q libxml2

libxml2-2.4.19-4

[root@srv01 freetype-2.1.2]# rpm -q libxml2-devel

libxml2-devel-2.4.19-4
To answer your other question, I upgraded from Ensim 3.0.3-4 to 3.1.1 a few days ago. Everything went fine and everything but this works.

Thanks again for all your help.
mooony
WrĊith

I looked on the net for this error. I means that it can't find the lib files exp. libpng.so.

Now iG wrote in a message before to do this:

type updatedb, then type in "locate freetype".

the path should be /usr/lib after the locate.

now try again to make the the files.

you can also do this:
make setup
make
make install

Try it.

I hope this helps you.

mooony-
WrĊith
Here's what I get from a locate freetype:

CODE
/usr/share/doc/freetype-2.0.9

<-- SNIP -->

/usr/share/locale/cs/LC_MESSAGES/freetype.mo

/usr/share/locale/de/LC_MESSAGES/freetype.mo

/usr/share/locale/es/LC_MESSAGES/freetype.mo

/usr/share/locale/fr/LC_MESSAGES/freetype.mo

/usr/share/locale/nl/LC_MESSAGES/freetype.mo

/usr/lib/libfreetype.so.6

/usr/lib/libfreetype.so.6.3.0

<-- SNIP -->

/root/php/freetype-2.1.2
The last location is where I untarred the 2.1.2 installation file.
mooony
WrĊith

Did you try to do the make after the updatedb?

mooony-
WrĊith
Yes I did, with the same results. I know that freetype2 was installed as part of the Ensim 3.0.3-4 -> 3.1.1 upgrade. Perhaps it was installed in the wrong location?

*sigh*

This is really rather frustrating. icon_sad.gif
mooony
The strange thing is that on some boxes it works with out problems.

I looked if the rpms where installed and they are:

rpm -q freetype
freetype-2.0.3-7

This is what is on my box.

Try to configure gd with the paths that you have for freetype that is already installed with ensim. Put the path as /usr becuase it will look for it normally here /usr/local/

maybe it will work. Did not try it.

mooony-
monkeyman
I believe I had to install the freetype-devel rpm also.

Lee
mooony
WrĊith

download this freetype:

I updated a new box and it worked with out problmes.

http://twtelecom.dl.sourceforge.net/source...pe-2.1.2.tar.gz

mooony-
phactor
Hi

i install all the dependencies, and freetype, xml etc. Everything fine, until i try to ./configure the php. here is the error i get :

checking base type of last arg to accept... socklen_t
checking return type of qsort... void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

in config.log :

#line 39864 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();

int main() {
mysql_error()
; return 0; }

normally i dont post here, cause i try to read and understand things, but now i really need this, cause a costumer are asking for gd 2.0 for 3 days.

thx in advance
python_dev
with the freetype libraries 'make make' don't cut it
its
make
make install

then go to GD and
./configure

then
make
make install

then make the lib file
make libgd.a

after that cd over to php
now the configure for php

but remember to check the path to the GD folder if you have it set same as this tutorial it should be
--with-gd=/home/admin/php/gd-2.0.1
check that in your configure line
after it configures
then
make
then
make install

service httpd restart

after that you should have a phpinfo page like this one
=>here

happy times icon_smile.gif
phactor
thx for ur help python_dev

But.. i'm having the same problems, and i guess that it is not anything related with freetype, and by dir, as u alert is ok. So, i guess that the problem is in mysql, because :

checking return type of qsort... void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
[root@ensim php-4.2.3]#

it appears to be mysql, but i really dont know what to do, or where to look for an error. Any help will be apreciated, cause i have some costumers waiting for this to be installed icon_sad.gif

thx in advance.
python_dev
ok I belive that you may be able to get around that problem the same way as the old 4.2.2 tutorial by using --without-mysql or by using --with-mysql=/path/to/mysql do a locate for mysql libs for that one either one should install mysql libs if they exist also if you have just updated to 3.1.1 you should have the mysql rpms there just do
service mysqld stop
goto your 3.1.1 upgrade dir and the download folder and do
rpm -UVH --replacepkgs mysql*
then
service mysqld start
and try again with php configure.
HollyRidge
Here you go.... This is probably the reason for the pspell error. When doing the ./configure command for php-4.2.3 using --with-pspell. I am trying this and will post the results when I am done. icon_smile.gif

The Following Steps to install Aspell and Pspell to work with PHP

Download these files

Pspell Package
ftp://ftp.pbone.net/vol1/ftp.redhat.com/p...12.2-3.i386.rpm
ftp://ftp.pbone.net/vol1/ftp.redhat.com/p...12.2-3.i386.rpm

Aspell Package
ftp://ftp.gnu.org/gnu/aspell/aspell-0.50.1.tar.gz

English Dictionary for Aspell
ftp://ftp.gnu.org/gnu/aspell/aspell-en-0.50-2.tar.bz2

untar the files
tar zxvf aspell-0.50.1.tar.gz
tar jxvf aspell-en-0.50-2.tar.bz2

we have to install pspell first:

# rpm -Uvh pspell*


Second we have to install Aspell:
Get into the aspell-0.50.1 directory (make command here takes forever)

# ./configure
# make
# make install

After Sucessfully compiled Apply the Dictionary
Get into the aspell-en-0.50-2 directory

# ./configure

Which should output something like:

Finding Dictionary file location ... /usr/local/lib/aspell
Finding Data file location ... /usr/local/share/aspell

# make
# make install

To Check aspell is working try this example

Create a file test.txt add the line "I am speled wron" and save the file

# aspell check test.txt

from the command line.
after the above example work.

use --with-pspell when compiling PHP
HollyRidge
Ok now the pspell function seems to work however when I do make command on php-4.2.3 I get the following error and then stops...

CODE
Making all in ncurses

make[2]: Entering directory `/root/php/php-4.2.3/ext/ncurses'

make[3]: Entering directory `/root/php/php-4.2.3/ext/ncurses'

/bin/sh /root/php/php-4.2.3/libtool --silent --mode=compile gcc  -I. -I/root/php/php-4.2.3/ext/ncurses -I/root/php/php-4.2.3/main -I/root/php/php-4.2.3 -I/usr/include/apache -I/root/php/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/local/include/freetype2/freetype -I/usr/include/imap -I/usr/include/mysql -I/usr/local/include -I/usr/include/pgsql -I/usr/local/include/pspell -I/usr/include/ucd-snmp  -DLINUX=22 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DFD_SETSIZE=4096 -I/root/php/php-4.2.3/TSRM -g -O2 -prefer-pic  -c ncurses.c

/bin/sh /root/php/php-4.2.3/libtool --silent --mode=compile gcc  -I. -I/root/php/php-4.2.3/ext/ncurses -I/root/php/php-4.2.3/main -I/root/php/php-4.2.3 -I/usr/include/apache -I/root/php/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/local/include/freetype2/freetype -I/usr/include/imap -I/usr/include/mysql -I/usr/local/include -I/usr/include/pgsql -I/usr/local/include/pspell -I/usr/include/ucd-snmp  -DLINUX=22 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DFD_SET

php/php-4.2.3/TSRM -g -O2 -prefer-pic  -c ncurses_fe.c

/bin/sh /root/php/php-4.2.3/libtool --silent --mode=compile gcc  -I. -I/root/php/php-4.2.3/ext/ncurses -I/root/php/php-4.2.3/main -I/root/p

r/include/apache -I/root/php/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/local/include/freetype2/freetype -I/usr/include/imap -I/usr/inclu

cal/include -I/usr/include/pgsql -I/usr/local/include/pspell -I/usr/include/ucd-snmp  -DLINUX=22 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DFD_SET

php/php-4.2.3/TSRM -g -O2 -prefer-pic  -c ncurses_functions.c

ncurses_functions.c: In function `zif_ncurses_mvwaddstr':

ncurses_functions.c:1397: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_wrefresh':

ncurses_functions.c:1419: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_mouse_trafo':

ncurses_functions.c:1564: warning: passing arg 2 of `wmouse_trafo' from incompatible pointer type

ncurses_functions.c:1564: warning: passing arg 3 of `wmouse_trafo' from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_wmouse_trafo':

ncurses_functions.c:1585: warning: assignment from incompatible pointer type

ncurses_functions.c:1594: warning: passing arg 2 of `wmouse_trafo' from incompatible pointer type

ncurses_functions.c:1594: warning: passing arg 3 of `wmouse_trafo' from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_wmove':

ncurses_functions.c:1614: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_keypad':

ncurses_functions.c:1633: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_wcolor_set':

ncurses_functions.c:1653: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_wclear':

ncurses_functions.c:1675: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_wnoutrefresh':

ncurses_functions.c:1691: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_waddstr':

ncurses_functions.c:1708: warning: assignment from incompatible pointer type

ncurses_functions.c:1715: warning: assignment from incompatible pointer type

ncurses_functions.c: In function `zif_ncurses_wgetch':

ncurses_functions.c:1732: warning: assignment from incompatible pointer type

/bin/sh /root/php/php-4.2.3/libtool --silent --mode=link gcc  -I. -I/root/php/php-4.2.3/ext/ncurses -I/root/php/php-4.2.3/main -I/root/php/

nclude/apache -I/root/php/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/local/include/freetype2/freetype -I/usr/include/imap -I/usr/include/

/include -I/usr/include/pgsql -I/usr/local/include/pspell -I/usr/include/ucd-snmp  -DLINUX=22 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DFD_SETSIZ

/php-4.2.3/TSRM -g -O2 -prefer-pic   -o libncurses.la  ncurses.lo ncurses_fe.lo ncurses_functions.lo

make[3]: Leaving directory `/root/php/php-4.2.3/ext/ncurses'

make[2]: Leaving directory `/root/php/php-4.2.3/ext/ncurses'

Making all in odbc

make[2]: Entering directory `/root/php/php-4.2.3/ext/odbc'

make[3]: Entering directory `/root/php/php-4.2.3/ext/odbc'

/bin/sh /root/php/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/root/php/php-4.2.3/ext/odbc -I/root/php/php-4.2.3/main -I/root/php/p

clude/apache -I/root/php/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/local/include/freetype2/freetype -I/usr/include/imap -I/usr/include/m

include -I/usr/include/pgsql -I/usr/local/include/pspell -I/usr/include/ucd-snmp  -DLINUX=22 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DFD_SETSIZE

php-4.2.3/TSRM -g -O2 -prefer-pic  -c php_odbc.c && touch php_odbc.slo

In file included from php_odbc.c:37:

php_odbc.h:120:17: sql.h: No such file or directory

php_odbc.h:121:20: sqlext.h: No such file or directory

make[3]: *** [php_odbc.slo] Error 1

make[3]: Leaving directory `/root/php/php-4.2.3/ext/odbc'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/php/php-4.2.3/ext/odbc'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/php/php-4.2.3/ext'

make: *** [all-recursive] Error 1


Now I found out what configure section to remove that took care of that issue which was '--with-unixODBC=shared'. I tried to remove the =shared but got same error so I removed it all together. Also have this issue with ncurses (not sure what this does). Anyone know how to solve these 2 problems? I would rather leave all the commands in my ./configure as it was. Even though I am looking to try and speed things up a bit when it is done. But anyway anyone know what is causing the ncurses incompatability and the unixODBC shared problem??
HollyRidge
If you get this error when running make on php the you will need to unixODBC rpms....

CODE
Making all in odbc

make[2]: Entering directory `/root/php/php-4.2.3/ext/odbc'

make[3]: Entering directory `/root/php/php-4.2.3/ext/odbc'

/bin/sh /root/php/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/root/php/php-4.2.3/ext/odbc -I/root/php/php-4.2.3/main -I/root/php/p

clude/apache -I/root/php/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/local/include/freetype2/freetype -I/usr/include/imap -I/usr/include/m

include -I/usr/include/pgsql -I/usr/local/include/pspell -I/usr/include/ucd-snmp  -DLINUX=22 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DFD_SETSIZE

php-4.2.3/TSRM -g -O2 -prefer-pic  -c php_odbc.c && touch php_odbc.slo

In file included from php_odbc.c:37:

php_odbc.h:120:17: sql.h: No such file or directory

php_odbc.h:121:20: sqlext.h: No such file or directory

make[3]: *** [php_odbc.slo] Error 1

make[3]: Leaving directory `/root/php/php-4.2.3/ext/odbc'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/php/php-4.2.3/ext/odbc'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/php/php-4.2.3/ext'

make: *** [all-recursive] Error 1


Ok now to fix the unixODBC=shared issue you will need to install the latest rpms for unixODBC and unixODBC-devel. I installed them and solved that issue but still wondering what the deal is with ncurses incompatability issue?

Also now the --with-pspell works through the whole install process but get a error when trying to start apache. I recompiled and installed without the pspell in the configure and apache starts and works fine. Anyone got any ideas??

Here is the error...
CODE
[root@hrwp1 ~/php/php-4.2.3]# service httpd start

Starting httpd: Syntax error on line 246 of /etc/httpd/conf/httpd_app.conf:

Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: aspell_speller_add_to_session

                                                          [FAILED]

[root@hrwp1 ~/php/php-4.2.3]#
solatis
Anyone has an idea how I can compile PHP with gif support?

I desperately need gif support icon_smile.gif
HollyRidge
Hmmmm now it works....go figure....LOL

I changed one thing with the configure for '--with-pspell' of which I changed to --with-pspell-dir=/usr and that worked. I do not have gd-2.0.1 support compiled in php and the reason for this is after reading it doesnt sound like it supports the gif format the way the 1.8.4 version does. If I am wrong on this or if there is a work around for this please let me know. Anyway here is my configure....

CODE
./configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext=shared --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pear --with-png --with-pspell-dir=/usr --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-debugger --enable-exif --enable-ftp=shared --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem=shared --enable-sysvshm=shared --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --disable-experimental-zts --with-apxs=/usr/sbin/apxs
phactor
oh god.. sorry all this posts regarding the same thing.

But.. i have the same problem

when i configure php i got :

checking return type of qsort... void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
[root@ensim php-4.2.3]#

in config.log :

configure:39971: checking for mysql_close in -lmysqlclient
configure:39990: gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DFD_SETSIZE=4096
-L/usr/lib
-Wl,-rpath,/home/admin/php/gd-2.0.1/ -L/home/admin/php/gd-2.0.1/ conftest.c -lmysqlclient -lcrypt -lpam -lgmp -lgd -lf$
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 39979 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_close();

char mysql_error();

int main() {
mysql_error()
; return 0; }

that's all i had, and my mysql libs are ok. i really dont know what is the problem, and.. any help will be apreciated.

Btw.. any of u is on RS ircd? if so, what's ur nicks? maybe we can talk better via IRC.

really need help regarding this

thx in advance
DonM
Some of us are having a nasty problem with PHP 4.2.3 truncating POST directives. Read about it here:

http://forum.rackshack.net/showthread.php?...&threadid=10764

Any ideas?

- Don
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.