Problem PHP 4.0.4 compiling: cannot find -lX11

From: Date: Wed, 03 Jan 2001 14:10:24 +0000
Subject: Problem PHP 4.0.4 compiling: cannot find -lX11
Groups: php.install 
Request: Send a blank email to php-install+get-1411@lists.php.net to get a copy of this message
Hello, I've got some problems compiling PHP 4.0.4. My steps are compiling apache - works fine (here my configure): CFLAGS='-DBUFFERED_LOGS' ./configure --verbose --prefix=/export/WWW/apache-1.3.14-trial --enable-module=most --enable-shared=max --activate-module=src/modules/zmod/libzmod.a make make install (everything is fine) Now configuring PHP: ./configure --with-apxs=/export/WWW/apache-1.3.14-trial/bin/apxs --with-config-file-path=/export/WWW/apache-1.3.14-trial/conf/httpd.conf --with-gd=no --with-adabas=$DBROOT --with-jpeg-dir=/usr/lib --with-xpm-dir=/usr/X11R6/lib Gives me: +--------------------------------------------------------------------+ | *** ATTENTION *** | | | | Something is likely to be messed up here, because the configure | | script was not able to detect a simple feature on your platform. | | This is often caused by incorrect configuration parameters. Please | | see the file debug.log for error messages. debug.log says: CONFIGURE: './configure' '--with-apxs=/export/WWW/apache-1.3.14-trial/bin/apxs' '--with-config-file-path=/export/WWW/apache-1.3.14-trial/conf/httpd.conf' '--with-gd=no'CC: gcc CFLAGS: -g -O2 CPPFLAGS: -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DBUFFERED_LOGS CXX: CXXFLAGS: INCLUDES: -I/export/WWW/apache-1.3.14-trial/include -I$(top_builddir)/Zend -I/export/apacheneu/php-4.0.4/ext/mysql/libmysql -I/usr/lib/adabas/incl LDFLAGS: -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib -Wl,-rpath,/usr/X11R6/lib/lib -L/usr/X11R6/lib/lib -Wl,-rpath,/usr/lib/adabas/lib -L/usr/lib/adabas/lib -Wl,-rpath,/exLIBS: -lodbc_adabas -lsqlrte -lsqlptc -lX11 -lXpm -ljpeg -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/lib/lib -ljpeg -L/usr/X11R6/lib/lib -lXpm -L/usr/X11R6/libDLIBS: SAPI: apache PHP_RPATHS: /usr/lib/lib /usr/X11R6/lib/lib /usr/lib/adabas/lib /export/apacheneu/php-4.0.4/ext/odbc uname -a: Linux aramis 2.2.14 #1 Mon Mar 13 10:51:48 GMT 2000 i686 unknown gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DBUFFERED_LOGS -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib -Wl,-rpath,/usr/X11R6/lib/lib -L/usr/X11R6/lib/lib -Wl/usr/i486-suse-linux/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status Any help would be nice...:-) Thanks Michael Heiming Sysadmin -- __ __ __ Virtueller Bau-Markt AG \ / [__) [__] [ __ Meerbuscher Strasse 64 \/ [__) | | [_./ 40670 Meerbusch www.vbag.de Michael Heiming (mh@vbag.de)

« previous php.install (#1411) next »