php-install Digest 3 Aug 2001 12:16:50 -0000 Issue 393 Topics (messages 3807 through 3817): libmysqlclient.so.10 problems... 3807 by: Jeff Wiegley, Ph.D. Core Dump on FBSD box. 3808 by: Graham Re: Has anyone actually installed PHP4 from RPMs? 3809 by: Jan-Erik Bullett Re: php-cvs buildconf,error 3810 by: DAVID CHANG 3813 by: DAVID CHANG 3814 by: DAVID CHANG php cvs error,while run "make" 3811 by: DAVID CHANG Imlib2 issues 3812 by: Greg Donald php-cvs can not make 3815 by: DAVID CHANG pdflib 3816 by: Brent Meshier php 4.0.6 on HP-UX 11.00: installation problem 3817 by: Giovanni Armanino Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I have a Solaris 7 platform and I have already install apache 1.3.20 and MySQL 3.23.39 on it. I'm compiling apache with gcc 2.96 When I try to start httpd I get the following... Cannot load /usr/lib/apache/libphp4.so into server: ld.so.1: /usr/sbin/httpd: fatal: libmysqlclient.so.10: open failed: No such file or directory I search and came across this URL... http://www.mysql.com/doc/S/o/Solaris.html If I do: ln -s /usr/lib/libmysqlclient.10.so /usr/lib/mysql/libmysqlclient.so.10 then it will work. But I don't want to do this because its being compiled as a package for installation on many machines and I don't want to confuse the installation of a previous package (mysql). The removal of mysql would leave a dangling link. As you can see I have my mysql libraries installed under /usr/lib/mysql. the LD_RUN_PATH solution is also not acceptable because that would mean I'ld have to have the php package mess with the S99httpd script and again this would confuse/mess with a previous packages files. What I want to do is build and configure PHP so that it knows to get the libmysqlclient.so.10 library from /usr/lib/mysql instead of /usr/lib. I have lots of packages I need to install and if I let everythings libraries fall into /usr/lib without imposing some structure on the machines will be a nightmare to maintain. Could somebody please tell me what I have to do during the php configuration stage to get php to load libmysqlclient.so.10 from /usr/lib/mysql instead of /usr/lib? I have tried: EXTRA_LDFLAGS="-L/usr/lib/mysql" ./configure \ --with-layout=GNU \ --prefix=/usr \ --libexecdir=/usr/lib/php \ --sysconfdir=/etc/php \ --datadir=/usr/share/php \ --sharedstatedir=/var/php \ --localstatedir=/var/php \ --mandir=/usr/share/man \ --with-apxs \ --enable-safe-mode \ --with-openssl \ --enable-magic-quotes \ --with-zlib \ --enable-dba=shared \ --with-regexp=php \ --with-mysql=/usr \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --disable-debug \ --with-config-file-path=/etc/php \ --with-exec-dir=/usr/lib/php \ --enable-pic \ --with-ttf \ --enable-inline-optimization make make install and I have also tried EXTRA_LDFLAGS="-Wl,r/usr/lib/mysql" ./configure \ --with-layout=GNU \ --prefix=/usr \ --libexecdir=/usr/lib/php \ --sysconfdir=/etc/php \ --datadir=/usr/share/php \ --sharedstatedir=/var/php \ --localstatedir=/var/php \ --mandir=/usr/share/man \ --with-apxs \ --enable-safe-mode \ --with-openssl \ --enable-magic-quotes \ --with-zlib \ --enable-dba=shared \ --with-regexp=php \ --with-mysql=/usr \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --disable-debug \ --with-config-file-path=/etc/php \ --with-exec-dir=/usr/lib/php \ --enable-pic \ --with-ttf \ --enable-inline-optimization make make install And I have also tried -Wl,R (that seemed more sane while I was reading the ld manual.) and I have tried various parent directories of /usr/lib/mysql as well. The latter configure example won't compile at all because it complains about -lmysqlclient missing. The Former compiles fine but doesn't run. This is confusing... How come the package can be compiled and it links fine without any of this extra flags bit but when it runs it doesn't find what it was linked against? And as a side note... When you do make INSTALL_ROOT=/somedir install for PHP everything works fine except that it modifies /etc/httpd/httpd.conf instead of /somedir/etc/httpd/httpd.conf which I think may just be a simple makefile mistake. Thanks for any help, - Jeff
We recently added the latest version of php onto one of our FreeBSD Servers. When we run even a simple .php program we get a core dump. Anyone else experiencing this . GW
I've had lots of fun doing this sort of thing. Use a package manager such a kpackage or rpmdrake (erm sorry, i use mandrake) then goto http://rpmfind.net/linux/rpm2html/ to find many rpms. get the latest build for your os or the source. jan-erik TryPhil Latio wrote: > I'm not a Linux Guru but have successfully installed PHP4 from source so > it's compiled with MySQL. My webserver works fine and I am happy but I set > myself the task of getting the same configuration through installing RPMs. > > Unfortunately, I have been unsuccessfull in trying to install PHP4 from RPMs > on Redhat 7.1. I am using the GnoRPM package and both MySQL and Apache > installed reasonably smoothly but when it came to PHP4, I just kept finding > I needed so many dependancies that it's become a joke. > > Everytime I download and installed one, it then asks for 2-4 more which in > turn ask for 2-4 of the dependancy of the dependancy. > > I am not familiar with the command-line approach to installing RPMs which > might be the way to go but if anyone out there has installed PHP4 using > either method, I would love to know how they did it. > > Cheers > > Phil > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Thank you,Jani That's work !! Jani Taskinen ¼g¹D¡G > autoconf 2.52 isn't supported yet..use autoconf 2.13 instead. > > --Jani > > On Thu, 2 Aug 2001, David Chang wrote: > > >Hi all: > >I got errors while run buildconf at php-cvs source directory > >OS:Linux RedHat 6.0 kernel 2.2.5-15 > > > >[root@www tmp]# cvs -d :pserver:[EMAIL PROTECTED]:/repository login > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository co php4 > >[root@www tmp]#cd php4 > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository login > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository co Zend > >TSRM > >[root@www tmp]# cd php4 > >[root@www php4]# ./buildconf > >buildconf: checking installation... > >buildconf: autoconf version 2.52 (ok) > >buildconf: automake version 1.4-p5 (ok) > >buildconf: libtool version 1.4 (ok) > >rebuilding Makefile templates > >automake: configure.in: installing `Zend/ylwrap' > >rebuilding configure > >./aclocal.m4:929: error: m4_defn: undefined macro: _m4_divert_diversion > >./aclocal.m4:472: PHP_SUBST is expanded from... > >./aclocal.m4:929: the top level > >rebuilding acconfig.h > >rebuilding main/php_config.h.in > >./aclocal.m4:929: error: m4_defn: undefined macro: _m4_divert_diversion > >./aclocal.m4:472: PHP_SUBST is expanded from... > >./aclocal.m4:929: the top level > >autoconf: tracing failed > > > > > > > >
That's work,thank you Jani !! Jani Taskinen ¼g¹D¡G > autoconf 2.52 isn't supported yet..use autoconf 2.13 instead. > > --Jani > > On Thu, 2 Aug 2001, David Chang wrote: > > >Hi all: > >I got errors while run buildconf at php-cvs source directory > >OS:Linux RedHat 6.0 kernel 2.2.5-15 > > > >[root@www tmp]# cvs -d :pserver:[EMAIL PROTECTED]:/repository login > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository co php4 > >[root@www tmp]#cd php4 > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository login > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository co Zend > >TSRM > >[root@www tmp]# cd php4 > >[root@www php4]# ./buildconf > >buildconf: checking installation... > >buildconf: autoconf version 2.52 (ok) > >buildconf: automake version 1.4-p5 (ok) > >buildconf: libtool version 1.4 (ok) > >rebuilding Makefile templates > >automake: configure.in: installing `Zend/ylwrap' > >rebuilding configure > >./aclocal.m4:929: error: m4_defn: undefined macro: _m4_divert_diversion > >./aclocal.m4:472: PHP_SUBST is expanded from... > >./aclocal.m4:929: the top level > >rebuilding acconfig.h > >rebuilding main/php_config.h.in > >./aclocal.m4:929: error: m4_defn: undefined macro: _m4_divert_diversion > >./aclocal.m4:472: PHP_SUBST is expanded from... > >./aclocal.m4:929: the top level > >autoconf: tracing failed > > > > > > > >
That's work .thanks Jani !! Dvaid Jani Taskinen ¼g¹D¡G > autoconf 2.52 isn't supported yet..use autoconf 2.13 instead. > > --Jani > > On Thu, 2 Aug 2001, David Chang wrote: > > >Hi all: > >I got errors while run buildconf at php-cvs source directory > >OS:Linux RedHat 6.0 kernel 2.2.5-15 > > > >[root@www tmp]# cvs -d :pserver:[EMAIL PROTECTED]:/repository login > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository co php4 > >[root@www tmp]#cd php4 > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository login > >[root@www tmp]#cvs -d :pserver:[EMAIL PROTECTED]:/repository co Zend > >TSRM > >[root@www tmp]# cd php4 > >[root@www php4]# ./buildconf > >buildconf: checking installation... > >buildconf: autoconf version 2.52 (ok) > >buildconf: automake version 1.4-p5 (ok) > >buildconf: libtool version 1.4 (ok) > >rebuilding Makefile templates > >automake: configure.in: installing `Zend/ylwrap' > >rebuilding configure > >./aclocal.m4:929: error: m4_defn: undefined macro: _m4_divert_diversion > >./aclocal.m4:472: PHP_SUBST is expanded from... > >./aclocal.m4:929: the top level > >rebuilding acconfig.h > >rebuilding main/php_config.h.in > >./aclocal.m4:929: error: m4_defn: undefined macro: _m4_divert_diversion > >./aclocal.m4:472: PHP_SUBST is expanded from... > >./aclocal.m4:929: the top level > >autoconf: tracing failed > > > > > > > >
Hi all: I got errors while run "make" command at php-cvs source directory: OS Linux RedHat 6.0 Kernel 2.2.5.15 cd /tmp/php4 ./buildconf ./configure --with-zlib --with-mm --with-mcal=../libmcal --with-ldap \ --with-imap=../imap-2001.BETA.SNAP-0107112053 \ --with-gettext --enable-ftp --with-db3=/usr/local/BerkeleyDB.3.2 \ --with-informix=/home/informix --with-apache=../apache_1.3.20 \ --with-mysql=/usr/local --with-config-file-path=/usr/local/apache/conf \ --enable-track-vars ./make make[3]: Entering directory `/tmp/php4/ext/standard' gcc -I. -I/tmp/php4/ext/standard -I/tmp/php4/main -I/tmp/php4 -I/tmp/apache_1.3.20/src/include -I/tmp/apache_1.3.20/src/os/unix -I/tmp/php4/Zend -I/usr/local/BerkeleyDB.3.2/include -I/usr/local/include -I/tmp/imap-2001.BETA.SNAP-0107112053/ c-client -I/home/informix/incl/esql -I/tmp/libmcal -I/usr/local/include/mysql -I /tmp/php4/ext/xml/expat -I/tmp/php4/TSRM -g -O2 -c html.c && touch html.lo html.c: In function `determine_charset': html.c:232: `CODESET' undeclared (first use in this function) html.c:232: (Each undeclared identifier is reported only once html.c:232: for each function it appears in.) make[3]: *** [html.lo] Error 1 make[3]: Leaving directory `/tmp/php4/ext/standard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/php4/ext/standard' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/php4/ext' make: *** [all-recursive] Error 1
make fails after ./configure --with-xml --with-apxs=/usr/sbin/apxs --with-mysql=/usr --with-pgsql --with-imlib This configuration dies with: Making all in . make[1]: Entering directory `/usr/src/php-4.0.6' /bin/sh /usr/src/php-4.0.6/libtool --silent --mode=link gcc -I. -I/usr/src/php-4.0.6/ -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6 -I/usr/include/apache -I/usr/src/php-4.0.6/Zend -I/usr/include/mysql -I/usr/src/php-4.0.6/ext/xml/expat/xmltok -I/usr/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/src/php-4.0.6/TSRM -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath /usr/src/php-4.0.6/libs -avoid-version -L/usr/local/pgsql/lib -R /usr/local/pgsql/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/imlib/libimlib.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/pgsql/libpgsql.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lpq -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl -lresolv /usr/bin/ld: cannot find -l--library=crypt collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.6' make: *** [all-recursive] Error 1 I also tried adding many paths to --with-imlib, /usr/local/lib, /usr/local/include. Both variations produced the same error as above. I am only trying to add imlib support, this is an upgrade on the same version of PHP I'm already running. I don't exactly understand why it's failing on this error: /usr/bin/ld: cannot find -l--library=crypt I don't see any kind of crypt files listed in the requirements for Imlib2: http://www.mcclanahan.cx/php_imlib/downloads.php If I leave off the --with-imlib option I get no errors. When I installed Imlib2 I experienced no errors and I see the files: +-(~)> locate Imlib2 /usr/local/lib/libImlib2.so.1.0.1 /usr/local/lib/libImlib2.so.1 /usr/local/lib/libImlib2.so /usr/local/lib/libImlib2.la /usr/local/lib/libImlib2.a /usr/local/include/Imlib2.h So I had a look at /etc/ld.so.conf. I added /usr/local/lib and ran ldconfig. This didn't help, same errors as above. Has anyone had this issue before? I cannot find any solution on searching the list archives. I am using PHP 4.0.6 Apache 1.3.20 MySQL 3.23.40 Postgresql 7.1.2 Imlib2 1.0.1 RedHat 7.1. Thanks for any help in advance. I really, really wanna use the VAGRANT graphics package for some new data I have. Greg
Hi all: I got errors while run "make" command at php-cvs source directory: OS Linux RedHat 6.0 Kernel 2.2.5.15 cd /tmp/php4 ./buildconf ./configure --with-zlib --with-mm --with-mcal=../libmcal --with-ldap \ --with-imap=../imap-2001.BETA.SNAP-0107112053 \ --with-gettext --enable-ftp --with-db3=/usr/local/BerkeleyDB.3.2 \ --with-informix=/home/informix --with-apache=../apache_1.3.20 \ --with-mysql=/usr/local --with-config-file-path=/usr/local/apache/conf \ --enable-track-vars ./make make[3]: Entering directory `/tmp/php4/ext/standard' gcc -I. -I/tmp/php4/ext/standard -I/tmp/php4/main -I/tmp/php4 -I/tmp/apache_1.3.20/src/include -I/tmp/apache_1.3.20/src/os/unix -I/tmp/php4/Zend -I/usr/local/BerkeleyDB.3.2/include -I/usr/local/include -I/tmp/imap-2001.BETA.SNAP-0107112053/ c-client -I/home/informix/incl/esql -I/tmp/libmcal -I/usr/local/include/mysql -I /tmp/php4/ext/xml/expat -I/tmp/php4/TSRM -g -O2 -c html.c && touch html.lo html.c: In function `determine_charset': html.c:232: `CODESET' undeclared (first use in this function) html.c:232: (Each undeclared identifier is reported only once html.c:232: for each function it appears in.) make[3]: *** [html.lo] Error 1 make[3]: Leaving directory `/tmp/php4/ext/standard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/php4/ext/standard' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/php4/ext' make: *** [all-recursive] Error 1
I'm trying to compile pdflib within the php-devel rpm (php-devel-4.0.4pl1) In /usr/src/php-devel/extensions/pdf # phpize # ./configure # make install I get the error: make: *** No rule to make target `install'. Stop. Any ideas? --Brent
Hi all, I'm trying to install php 4.0.6 on HP-UX 11.00 PA-RISC with Informix support and with NSAPI (i need to use php with iplanet 4.1). I've tried with gcc version 2.95.2, and the following configure options: ./configure --with-informix=/opt/informix --with-nsapi=/opt/netscape/server4/ -- enable-track-vars --enable-libgcc --enable-shared --with-system-regex obtaining the following result during compilation: /usr/local/src/php-4.0.6 # make Making all in Zend /bin/sh ../libtool --silent --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../main -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM -DTHREAD=1 -c zend_language_scanner_cc.cc In file included from /usr/include/unistd.h:11, from zend_language_scanner_cc.cc:2691: /usr/include/sys/unistd.h:188: declaration of C function `int pthread_atfork(void (*)(...), void (*)(...), void (*)(...))' conflicts with /usr/include/sys/pthread.h:440: previous declaration `int pthread_atfork(void (*)(), void (*)(), void (*)())' here *** Error exit code 1 Stop. *** Error exit code 1 Stop. I've also tried with bundled C/ANSI and aCC from HP, with this result: ./configure --with-informix=/opt/informix --with-nsapi=/opt/netscape/server4/ -- enable-track-vars --enable-shared --with-system-regex /usr/local/src/php-4.0.6 # make Making all in Zend /bin/sh ../libtool --silent --mode=compile aCC -DHAVE_CONFIG_H -I. -I. -I../main -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM -DTHREAD=1 -c zend_language_scanner_cc.cc Error 419: "zend_istdiostream.h", line 8 # 'stdiobuf' is used as a type, but has not been defined as a type. stdiobuf _file; ^^^^^^^^ Error 419: "zend_istdiostream.h", line 11 # 'stdiobuf' is used as a type, but has not been defined as a type. stdiobuf* rdbuf()/* const */ { return &_file; } ^^^^^^^^ Error 212: "zend_istdiostream.h", line 10 # Argument type 'int *' does not match expected parameter type 'streambuf *'. istdiostream (FILE* __f) : istream(), _file(__f) { init(&_file); } ^ Error 440: "zend_istdiostream.h", line 10 # Cannot initialize 'int' with 'FILE *'. istdiostream (FILE* __f) : istream(), _file(__f) { init(&_file); } ^^^ Error 185: "zend_language_scanner_cc.cc", line 2823 # Left side of '->' requires a pointer to class; type found was 'int'. fclose(pstdiostream->rdbuf()->stdiofile()); ^^^^^^^^^^^^^^^^^^^^^ Warning 829: "zend_language_scanner_cc.cc", line 4056 # Implicit conversion of string literal to 'char *' is deprecated. filename = ""; ^^^^^^^^^^^^^ *** Error exit code 1 Stop. *** Error exit code 1 Stop. --- any ideas? any suggestions/experiences on how to compile php4.x on hp-ux 11? many thanks in advance, giovanni -- -- Giovanni Armanino -------------------------------------------------------- Regione Toscana E-mail: [EMAIL PROTECTED] Dip. Organizzazione Tel: +39 055 438 5122 - Fax: +39 055 438 3056 Servizio Infrastrutture Informative e Tecnologiche Regionali Via di Novoli, 26 - 50127 Firenze (Italy)