[RH 6.2] PHP 4.2.1 configure error <evp.h>

Pagina: 1
Acties:

  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Ik heb een virtual server bij tera-byte.com. Op het moment staat daar php 4.0.6 op (wel gepatched btw). Maar ik wil dus upgraden naar de nieuwste versie, 4.2.1.
Dit is het configure command van de huidige install (php-4.0.6-2ensim8.rpm):
'./configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext=shared' '--with-gd' '--with-flex' '--with-jpeg-dir=/usr' '--with-png' '--with-ttf' '--with-zlib' '--with-db3' '--with-gdbm' '--with-openssl' '--with-layout=GNU' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-track-vars' '--enable-yp' '--enable-ftp=shared' '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8'
Als ik dit configure commando gebruik voor php 4.2.1 krijg ik de volgende error:
code:
1
2
3
...
checking for OpenSSL support... yes
configure: error: Cannot find OpenSSL's <evp.h>

Een locate evp.h levert niks op. En m'n configure regel veranderen naar '--with-openssl=/usr' helpt ook niet.

Moet ik openssl nu ook opnieuw gaan compilen? Ik hoop het niet. Ik ben namelijk nog niet zo'n linux held, en van dat Ensim WEBppliance snap ik al helemaal weinig..

Btw, ik heb tera-byte.com al gemaild, maar die antwoorde heel fijn
We can not recomend or support upgrading php
:(

On track


  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Hmmz.. Dit probleem heb ik nu opgelost.. Ik moest de open-ssl-devel package nog instaleren.. Nu krijg ik alleen de volgende error:
code:
1
2
3
4
Configuring extensions
checking if the location of ZLIB install directory is defined... no
checking for ZLIB support... yes
configure: error: Cannot find libz

Ik gebruik nu de volgende configure command:
'./configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext=shared' '--with-gd' '--with-flex' '--with-jpeg-dir=/usr' '--with-png' '--with-ttf' '--with-zlib=/usr/lib' '--with-db3' '--with-gdbm' '--with-openssl=/usr' '--with-layout=GNU' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-track-vars' '--enable-yp' '--enable-ftp=shared' '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8'
Een locate naar libz levert namelijk dit op:
[root@admin php-4.2.1]# locate libz
/usr/lib/libz.so.1
/usr/lib/libz.so.1.1.3
/usr/jdk1.3.1/jre/lib/i386/libzip.so
Maar ik krijg dus nog steeds die error.. :( Weet iemand welke directory ik moet hebben? Of welke rpm ik moet instaleren? Ik heb nu zlib-1.1.3-22.rpm. Bdw, met '--with-zlib=/usr' krijg ik die error ook..

On track


Verwijderd

doe eens --with-zlib=/usr/lib/libz.so.1
en probeer anders eens dit:
kijk in je /etc/ld.so.conf of /usr/lib erin staat, en zoja run dan eens ldconfig en daarna weer ./configure doen

  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Woooheee!!!

Na veel te veel errors te hebben gezien, het halve internet afgezocht te hebben en na 100 redhat mirrors te hebben afgestruind staat er dan eindelijk dit op mn scherm:
Thank you for using PHP.
Oftewel: m'n configure is voltooid!! :7

Nadat ik de ene error had opgelost, verscheen de volgende weer :( Zo heb ik dus uiteindelijk de volgende packages moeten instaleren:
code:
1
2
3
db3-devel-3.1.17-7.i386.rpm  libjpeg-devel-6b-15.i386.rpm
gd-devel-1.8.3-7.i386.rpm    openssl-devel-0.9.6-9.i386.rpm
gdbm-devel-1.8.0-5.i386.rpm  zlib-devel-1.1.3-25.6.i386.rpm

Maar nu doet ie het! :P Nu eerst ff slapen en dan morgen maar hopen dat 'make' en 'make install' goed gaan.. Iemand nog tips? Welke bestanden zijn bv. raadzaam om te backuppen?

Bdw, ik ben er ondertussen ook achtergekomen dat het om Redhat 7.1 gaat ipv 6.2 :) En waarom heeft RedHat nog geen nieuwe PHP rpm beschikbaar? Ze zijn nog steeds bij 4.0.6.. Zou me een hoop tijd bespaard hebben.. (denk ik) :)

PS: mystman: Thanx voor de hulp, maar het hielp niet.. Ik had dus die devel package nodig...

On track


  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Jeeej!! Ik heb dus gewoon maar 'make' en 'make install' gedaan en mn server draait nu dus PHP 4.2.1 :P

Maarrr... Tijdens het herstarten van Apache krijg ik de volgende warnings:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PHP Warning:  gettext: Unable to initialize module
Module compiled with module API=20001222, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=0
These options need to match in Unknown on line 0
PHP Warning:  imap: Unable to initialize module
Module compiled with module API=20001222, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=0
These options need to match in Unknown on line 0
PHP Warning:  ldap: Unable to initialize module
Module compiled with module API=20001222, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=0
These options need to match in Unknown on line 0
PHP Warning:  pgsql: Unable to initialize module
Module compiled with module API=20001222, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=0
These options need to match in Unknown on line 0

En nu werkt mn Ensim WEBBpliance dus niet meer.. :D

Volgens mij een 'versie conflict' tussen php 4.2.1 en de modules van 4.0.6. Mijn vraag: Waar vind ik de nieuwe 4.2.1 modules?? In mn php-4.2.1 modules directory staat alleen ftp.so, gettext.so, sysvsem.so en sysvshm.so. En ik heb de volgende dus nog nodig: imap.so, ldap.so en pgsql.so... Moet ik dit op een of andere manier tijdens m'n configure regelen? :?

On track


  • odysseus
  • Registratie: Augustus 2000
  • Laatst online: 15-08 23:01

odysseus

Debian GNU/Linux Sid

Je gebruikt nu opties als --enable-ftp=shared. Dat zorgt voor een FTP-module. Als je ook IMAP wilt hebben, dan zal er wel een switch zijn als '--enable-imap=shared'. Je kunt iets draaien als './configure --help' om alle mogelijke opties te zien, eventueel met een korte uitleg.

Leven is het meervoud van lef | In order to make an apple pie from scratch, you must first create the universe.


  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Thanx!!! Daar had ik overheen gelezen in denk ik.. M'n ./configure gaat na weer 3 package updates nu wel goed, maar mn 'make install' geeft nu een error:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
Making install in .
make[1]: Entering directory `/root/php-4.2.1'
/root/php-4.2.1/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/apxs -S LIB
EXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=1
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/root/php-4.2.1'
make: *** [install-recursive] Error 1
[root@admin php-4.2.1]# ls libs
libphp4.a  libphp4.la
[root@admin php-4.2.1]#

:'(
Iemand enig idee hoe ik dit nou weer oplos? :?

On track


  • Hans
  • Registratie: Juni 1999
  • Niet online
Ziet er naar uit dat je build niet goed verloopt. Krijg je na een make geen errors?

  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Nope.. Geen errors, wel warnings. Hij eindigt zo:
code:
1
2
3
4
5
6
libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
make[1]: Leaving directory `/root/php-4.2.1'
Making all in pear
make[1]: Entering directory `/root/php-4.2.1/pear'
make[1]: Leaving directory `/root/php-4.2.1/pear'
[root@admin php-4.2.1]#

Misschien dat het aan die warning ligt?
Bdw, ik krijg ook nog de volgende warnings:
zlib_fopen_wrapper.c:59: warning: initialization from incompatible pointer type
...
var_unserializer.c:308: warning: comparison is always false due to limited range of data type
...
sysvsem.c:406: warning: passing arg 2 of `semctl' makes integer from pointer without a cast
sysvsem.c:415: warning: passing arg 2 of `semctl' makes integer from pointer without a cast
...
yp.c:360: warning: assignment discards qualifiers from pointer target typ
Maar volgens mij zijn die niet echt van belang..

On track


  • eth0
  • Registratie: Mei 2002
  • Laatst online: 15-09-2025
doe eerst eens een make clean of nog beter verwijder de uitgepakte source en pak hem opnieuw uit, wil vaak ook wel eens helpen

  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Sources verwijderen en opnieuw uitpakken had ik al gedaan, maar dat hielp niet.. en 'make clean' gedaan, maar nu krijg ik dezelfde(?) error, maar dan minder uitgebreid:
code:
1
2
3
4
5
Making install in .
make[1]: Entering directory `/root/php-4.2.1'
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/root/php-4.2.1'
make: *** [install-recursive] Error 1

:(

Bdw, tijdens de 'make install' geeft ie overal aan 'Nothing to be done for ...' Hoe krijg ik em zover dat ie dat wel weer overnieuw doet?

On track


  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Topicstarter
Ik begin langzaam gek te worden geloof ik.. Ik heb even wat aangepast in mn configure regel en nu krijg ik weer de volgende error:
[root@admin php-4.2.1]# ./do-conf
configure: warning: without-unixODBC: invalid host type
: invalid host type
configure: error: can only configure for one host and one target at a time
[root@admin php-4.2.1]# cat do-conf
'./configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext=shared' '--with-mysql' '--with-gd' '--with-flex' '--with-jpeg-dir=/usr' '--with-png' '--with-ttf' '--with-zlib=/usr' '--with-db3=/usr' '--with-gdbm' '--with-openssl=/usr' '--with-imap=shared,/usr' '--with-kerberos=/usr' '--with-imap-ssl=/usr' '--with-ldap=shared,/usr' '--with-pgsql=shared,/usr' '--with-layout=GNU' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-track-vars' '--enable-yp' '--enable-ftp=shared' '--enable-wddx' 'without-unixODBC' '--without-oracle' '--without-oci8'
[root@admin php-4.2.1]#
/edit:
'without-unixODBC' --> '--without-unixODBC' |:(

On track

Pagina: 1