Re: libphp4.so not found - need urgent help!

From: Date: Mon, 12 Mar 2001 01:47:11 +0000
Subject: Re: libphp4.so not found - need urgent help!
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-2337@lists.php.net to get a copy of this message
I finally solved the problem, thanks to the pros in www.nexial.nl The solution is simple, simple change the order of "-l" so that it goes before the "-lpng" when compiling the Apache (near the PHP part). Look for the "-l png ..... -lgd" and swap them. It does the trick! Yours, Felix ""Felix Lee"" <ftslee@pacific.net.hk> wrote in message news:98cb58$54s$1@toye.p.sourceforge.net... > Dear all, > > I have tried the following on a BSDi 4.1, with Apache 1.3.12, 1.3.14, > 1.4.19, GD 1.8.4, PHP 4.0.4pl1, Jpeg 6b, libpng 1.0.9, zlib 1.1.3 > > What I have done is that orginally the BSDi box is running with Apache > 1.3.14 + PHP-4.0.4pl1 and everything works fine. > > But then I tried to add the GD-184 to PHP-404pl1, so I (in that sequence) > > 1) downloaded the src and installed zlib-113 > 2) downloaded the src and installed libpng-109 > 3) downloaded the src and installed jpeg-6b > 4) downloaded the src and installed GD-184 > 5) recompiled the src of PHP-404pl1 and "make install"ed it with the > following: > > ./configure \ > --prefix=/usr/local/php4 \ > --with-apxs=/usr/local/apache/bin/apxs \ > --with-mysql=/usr/local/mysql \ > --with-imap \ > --with-zlib-dir=/usr/local \ > --with-png-dir=/usr/local \ > --with-jpg-dir=/usr/local \ > --with-gd=/usr/local \ > --enable-versioning \ > --enable-track-vars > > make;make install > > > 6) After that the Apache simply refuse to start because of the following > error message: > > ----- Error when I run /usr/local/apache/bin/apachectl start ----- > Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: > Cannot load /usr/local/apache/libexec/libphp4.so into server: File not found > ./apachectl start: httpd could not be started > ----- End of Error Message ----- > > After that I tried to re-compile some of the components again, and recompile > PHP-404pl1, still get the same error message. > > What I did is to tried to compile PHP-404pl1 as a static module. So I: > > 7) go to /usr/local/download/apache_1.3.14 (where is the src of apache) > 8) make clean > 9) ./configure --prefix=/usr/local/apache/ > 10) "make clean" the previous PHP build > 11) recompile the PHP-404pl1 > > ./configure \ > --prefix=/usr/local/php4 \ > --with-apache=/usr/local/download/apache_1.3.14 \ > --with-mysql=/usr/local/mysql \ > --with-imap \ > --with-zlib-dir=/usr/local \ > --with-png-dir=/usr/local \ > --with-jpg-dir=/usr/local \ > --with-gd=/usr/local \ > --enable-versioning \ > --enable-track-vars > > make;make install > > 12) go back to /usr/local/download/apache_1.3.14 > 13) configure again and compile > > ./configure \ > --prefix=/usr/local/apache \ > --activate-module=src/modules/php4/libphp4.a > > make > > 14) when it comes to the GD: > > gcc -I/usr/local/download/php-4.0.4pl1 -I/usr/local/download/php-4.0.4pl1/m > ain -I/usr/local/download/php-4.0.4pl1/main -I/usr/local/download/php-4.0.4p > l1/Zend -I/usr/local/download/php-4.0.4pl1/Zend -I/usr/local/download/php-4. > 0.4pl1/TSRM -I/usr/local/download/php-4.0.4pl1/TSRM -I/usr/local/download/ph > p-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED > ./apaci -o > httpd buildmark.o modules.o modules/standard/libstandard.a > modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a > lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/m > ysql/lib/mysql -rdynamic -L/usr/local/lib -L/usr/local/mysql/lib/mysql -Lmo > ules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lc-client -ld > l -lmysqlclient -lpng -lz -lgd -lm -ldl > /usr/local/lib/libgd.a(gd_png.o): In function `gdPngErrorHandler': > gd_png.o(.text+0x25): undefined reference to `png_get_error_ptr' > /usr/local/lib/libgd.a(gd_png.o): In function `gdPngReadData': > gd_png.o(.text+0x67): undefined reference to `png_get_io_ptr' > /usr/local/lib/libgd.a(gd_png.o): In function `gdPngWriteData': > gd_png.o(.text+0x8b): undefined reference to `png_get_io_ptr' > /usr/local/lib/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx': > gd_png.o(.text+0x103): undefined reference to `png_check_sig' > gd_png.o(.text+0x129): undefined reference to `png_create_read_struct' > gd_png.o(.text+0x154): undefined reference to `png_create_info_struct' > gd_png.o(.text+0x1a6): undefined reference to `png_set_sig_bytes' > gd_png.o(.text+0x1b7): undefined reference to `png_set_read_fn' > gd_png.o(.text+0x1c2): undefined reference to `png_read_info' > gd_png.o(.text+0x1e5): undefined reference to `png_get_IHDR' > gd_png.o(.text+0x1f6): undefined reference to `png_set_strip_16' > gd_png.o(.text+0x20a): undefined reference to `png_set_packing' > gd_png.o(.text+0x22a): undefined reference to `png_set_strip_alpha' > gd_png.o(.text+0x254): undefined reference to `png_get_PLTE' > gd_png.o(.text+0x261): undefined reference to `png_get_valid' > gd_png.o(.text+0x297): undefined reference to `png_get_tRNS' > gd_png.o(.text+0x3c0): undefined reference to `png_get_valid' > gd_png.o(.text+0x3de): undefined reference to `png_get_tRNS' > gd_png.o(.text+0x447): undefined reference to `png_get_valid' > gd_png.o(.text+0x461): undefined reference to `png_get_tRNS' > gd_png.o(.text+0x552): undefined reference to `png_set_dither' > gd_png.o(.text+0x560): undefined reference to `png_read_update_info' > gd_png.o(.text+0x56b): undefined reference to `png_get_rowbytes' > gd_png.o(.text+0x59f): undefined reference to `png_destroy_read_struct' > gd_png.o(.text+0x5e0): undefined reference to `png_destroy_read_struct' > gd_png.o(.text+0x623): undefined reference to `png_read_image' > gd_png.o(.text+0x62d): undefined reference to `png_read_end' > gd_png.o(.text+0x65f): undefined reference to `png_destroy_read_struct' > gd_png.o(.text+0x73e): undefined reference to `png_destroy_read_struct' > /usr/local/lib/libgd.a(gd_png.o): In function `gdImagePngCtx': > gd_png.o(.text+0x891): undefined reference to `png_create_write_struct' > gd_png.o(.text+0x8bd): undefined reference to `png_create_info_struct' > gd_png.o(.text+0x925): undefined reference to `png_set_write_fn' > gd_png.o(.text+0xa52): undefined reference to `png_set_IHDR' > gd_png.o(.text+0xad4): undefined reference to `png_set_tRNS' > gd_png.o(.text+0xc4b): undefined reference to `png_set_PLTE' > gd_png.o(.text+0xc5c): undefined reference to `png_write_info' > gd_png.o(.text+0xc67): undefined reference to `png_set_packing' > gd_png.o(.text+0xd75): undefined reference to `png_write_image' > gd_png.o(.text+0xd86): undefined reference to `png_write_end' > gd_png.o(.text+0xdce): undefined reference to `png_write_image' > gd_png.o(.text+0xddf): undefined reference to `png_write_end' > gd_png.o(.text+0xdf5): undefined reference to `png_destroy_write_struct' > *** Error code 1 > > Stop. > *** Error code 1 > > Stop. > *** Error code 1 > > Stop. > > > > Help! What can I do? I have failed in both methods....I think the latter > method will be more appropriate to my case (?) because I have many php pages > (nearly every pages are PHP-ed), so I guess a static module should improve > the overall performance of the web server. > > Please kindly offer me some possible ways to try...I've found some of you > suggest adding the LD_LIBRARY_PATH, well I have tried that with the previous > method (APXS) but still no luck. How should I use this variable? Are there > other alternatives? > > 10000000* thanks > > Felix Lee > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.install (#2337) next »