configure => PHP 5.0.4 / SuSE 9.1

Apache, Lighttpd, nginx, Cherokee
Post Reply
ulle
Posts: 56
Joined: 2003-08-14 17:50
 

configure => PHP 5.0.4 / SuSE 9.1

Post by ulle »

Hallo,

versuche mich gerade am ./configure für oben genannte PHP-Version, leider komme ich nun nicht weiter. Bisher sagte "er" mir immer was fehlt bzw. was ich installieren soll, bisher readline-devel - libxml2 - mcrypt-devel.

Nur jetzt habe ich keinen Anhaltspunkt, außer das da was fehlt !! Probiert hatte ich:

--with-mysql=/usr/include/mysql

--with-mysql=/usr


checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.

Code: Select all

./configure 
	--prefix=/usr 
	--with-apxs2=/usr/sbin/apxs2-prefork 
	--datadir=/usr/share/php 
	--mandir=/usr/share/man 
	--bindir=/usr/bin 
	--libdir=/usr/share 
	--includedir=/usr/include 
	--with-config-file-path=/etc 
	--with-_lib=lib 
	--with-bz2 
	--with-gd 
	--with-iconv 
	--with-imap-ssl 
	--with-jpeg-dir=/usr/lib 
	--with-mcrypt 
	--with-mysql 
	--with-openssl 
	--with-png-dir=/usr/lib 
	--with-readline 
	--with-tidy 
	--with-ttf 
	--with-xmlrpc 
	--with-xsl 
	--with-zip 
	--with-zlib-dir=/usr/lib 
	--enable-bcmath 
	--enable-calendar 
	--enable-ctype 
	--enable-exif 
	--enable-ftp 
	--enable-gd-native-ttf 
	--enable-inline-optimization 
	--enable-mbstring=all 
	--enable-memory-limit 
	--enable-shmop 
	--enable-sigchild 
	--enable-simplexml 
	--enable-soap 
	--enable-sqlite-utf8 
	--enable-sysvsem 
	--enable-sysvshm 
	--enable-versioning 
	--enable-wddx 
	--without-pear 
	--disable-cli 
	--disable-debug i586-suse-linux
Kann mir jemand einen Tipp geben
bierhasser
Posts: 19
Joined: 2003-05-09 06:23
Contact:
 

Re: configure => PHP 5.0.4 / SuSE 9.1

Post by bierhasser »

Cannot find MySQL header files
ulle
Posts: 56
Joined: 2003-08-14 17:50
 

Re: configure => PHP 5.0.4 / SuSE 9.1

Post by ulle »

Cannot find MySQL header files
Das habe ich auch gelesen und verstanden, danke für die Aussagekraft....manman

Ich weiß mir jetzt aber nicht zu helfen, was bedeutet es:

- habe ich diese nicht
- weiß ich nur nicht wo diese sind
- muß ich diese nachinstallieren
- ist dies die "eine" Datei php_mysql.h

Code: Select all

xx:~ # locate mysql.h
/usr/local/src/php/php-4.3.10/ext/dbx/dbx_mysql.h
/usr/local/src/php/php-4.3.10/ext/mysql/libmysql/mysql.h
/usr/local/src/php/php-4.3.10/ext/mysql/php_mysql.h
/usr/local/src/php/php-4.3.11/ext/dbx/dbx_mysql.h
/usr/local/src/php/php-4.3.11/ext/mysql/libmysql/mysql.h
/usr/local/src/php/php-4.3.11/ext/mysql/php_mysql.h
/usr/local/src/php/php-5.0.4/ext/dbx/dbx_mysql.h
/usr/local/src/php/php-5.0.4/ext/mysql/php_mysql.h
ulle
Posts: 56
Joined: 2003-08-14 17:50
 

Re: configure => PHP 5.0.4 / SuSE 9.1

Post by ulle »

MySql habe ich nun überwunden, indem ich den MySQL-Devel nachinstalliert habe..........
ulle
Posts: 56
Joined: 2003-08-14 17:50
 

Re: configure => PHP 5.0.4 / SuSE 9.1

Post by ulle »

:?:

Und nach längerem hin und her lief dann der ./configure ohne Error durch.

Code: Select all

./configure 
	--prefix=/usr 
	--with-apxs2=/usr/sbin/apxs2-prefork 
	--datadir=/usr/share/php 
	--mandir=/usr/share/man 
	--bindir=/usr/bin 
	--libdir=/usr/share 
	--includedir=/usr/include 
	--with-config-file-path=/etc 
	--with-_lib=lib 
	--with-bz2 
	--with-gd 
	--with-iconv 
	--with-imap-ssl 
	--with-jpeg-dir=/usr/lib 
	--with-mcrypt 
	--with-mysql=/usr 
	--with-openssl 
	--with-png-dir=/usr/lib 
	--with-readline 
	--with-ttf 
	--with-xmlrpc 
	--with-xsl 
	--with-zip 
	--with-zlib-dir=/usr/lib 
	--enable-bcmath 
	--enable-calendar 
	--enable-ctype 
	--enable-exif 
	--enable-ftp 
	--enable-gd-native-ttf 
	--enable-inline-optimization 
	--enable-mbstring=all 
	--enable-memory-limit 
	--enable-shmop 
	--enable-sigchild 
	--enable-simplexml 
	--enable-soap 
	--enable-sqlite-utf8 
	--enable-sysvsem 
	--enable-sysvshm 
	--enable-versioning 
	--enable-wddx 
	--without-pear 
	--disable-cli 
	--disable-debug i586-suse-linux
Habe dann auf verlangen folgendes installiert:

- readline-devel
- libxml2
- mcrypt-devel
- mysql-devel
- libxslt-devel

make / make install habe mir auch nicht besonderes vorgeworfen.

Aber mein phpinfo() ist der Meinung das ich PHP 4.3.10 installiert habe ??
ulle
Posts: 56
Joined: 2003-08-14 17:50
 

Re: configure => PHP 5.0.4 / SuSE 9.1

Post by ulle »

YES PHP 5.0.4

Habe jetzt lediglich in der /etc/sysconfig/apache2 folgende Zeile geändert:
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5 rewrite frontpage proxy proxy_http"
Da stand PHP4 :shock:

Nun, da ich ja soeben gezeigt bekommen habe wie komplex dies alles ist, bin ich mir sehr unsicher ob ich nun alles wichtige zum Thema PHP 5.0.4 gemacht habe. Sicherheit ??


Falls jemand noch einen Tipp hat, oder was ich noch Prüfen sollte. Bitte mitteilen.
Post Reply