php-install Digest 7 Sep 2001 15:16:08 -0000 Issue 448 Topics (messages 4226 through 4230): Re: php 4.0.6 configure problem 4226 by: Jani Taskinen Re: [PHP] Re: [PHP-INST] PHP4 and Apache 1.3.20 DSO mode not working? 4227 by: Rasmus Lerdorf NES3.61, HPUX10.20, PHP4.0.6 as CGI question 4228 by: Marius Etsebeth php configure problem 4229 by: Bob 4230 by: Steve Cayford 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 guess this must be the same problem they speak about here: http://www.suse.com/en/support/oracle/db/817_71.html ie. The oracle libs were linked with glibc 2.1.x but you have glibc 2.2.x --Jani On Thu, 6 Sep 2001, Tom Obermayr wrote: >hiya! > >I'm trying to compile php4.0.6 on a redhat 7.1 machine (gcc-2.96-85, >glibc-2.2.2-10), and can't even get the configure to run successfully >(Something is likely to be messed up here, because the configure script was >not able to detect a simple feature on your platform.). I need to compile >my own version of php, since I have to include oracle support and there is >no rpm available. > >If you know how to solve the below problem, please reply by email, since I >just can't seem to figure out what is going wrong here. > >thanks alot, >tom. > >contents of debug.log: > >CONFIGURE: './configure' '--prefix=/usr' '--with-config-file-path=/etc' >'--disable-debug' '--enable-pic' '--enable-shared' >'--enable-inline-optimization' '--with-exec-dir=/usr/bin' >'--with-regex=system' '--without-gd' '--with-jpeg-dir=/usr' '--with-png' >'--with-zlib' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' >'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' >'--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' >'--enable-wddx' '--without-mysql' '--without-oracle' >'--with-oci8=/usr/ora8/m01/app/oracle/product/8.1.7' '--with-xml' '--with-apxs' >CC: gcc >CFLAGS: -g -O2 >CPPFLAGS: -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 >CXX: >CXXFLAGS: >INCLUDES: -I/usr/include/apache -I$(top_builddir)/Zend >-I/usr/ora8/m01/app/oracle/product/8.1.7/rdbms/public >-I/usr/ora8/m01/app/oracle/product/8.1.7/rdbms/demo >LDFLAGS: -Wl,-rpath,/usr/ora8/m01/app/oracle/product/8.1.7/lib >-L/usr/ora8/m01/app/oracle/product/8.1.7/lib >LIBS: -lm -ldl -lgdbm -lz -ldl -lclntsh >DLIBS: >SAPI: apache >PHP_RPATHS: /usr/ora8/m01/app/oracle/product/8.1.7/lib >uname -a: Linux localhost.localdomain 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT >2001 i686 unknown > >gcc -o conftest -g -O2 -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DUSE_EXPAT >-DSUPPORT_UTF8 -Wl,-rpath,/usr/ora8/m01/app/oracle/product/8.1.7/lib >-L/usr/ora8/m01/app/oracle/product/8.1.7/lib conftest.c -lm -ldl -lgdbm -lz >-ldl -lclntsh 1>&5 >/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libm.so: undefined >reference to `[EMAIL PROTECTED]' >/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libm.so: undefined >reference to `[EMAIL PROTECTED]' >/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libm.so: undefined >reference to `[EMAIL PROTECTED]' >collect2: ld returned 1 exit status > > >
apxs is in the apache-devel rpm On Thu, 6 Sep 2001, Bill Carter wrote: > aHAH! I finally got it working by using most of the elements of the configure > lines > you guys provided. I'm very grateful for your help. > > I think the major difference in what you did and what I had originally > attempted > was the apxs program. I'm using RedHat 7.x which doesn't install with apxs > by default. I didn't realize that apxs appears in the apache bin directory as > part > of the source, instead I loaded it from an rpm on the RedHat distro disk. So > where > you used "--with-apxs=/usr/local/apache/bin/apxs" I just said "--with-apxs" > which picked it up elsewhere. > > apxs appears to be a Perl script and the one in /usr/local/apache/bin is > different > from the one I loaded. I think that script is what constructs the DSO, so maybe > it > is important to use the apxs which comes with the version of Apache you want > to use. I'll try to experiment with this further when I get some time. > > I don't think I would have been able to figure this out without help from Peter > > Clarke and I82much, thanks gentlemen! > > > > >
Hi there, Can anybody help me on this one? I have installed PHP 4.0.6 as CGI (not NSAPI) on an HUX 10.20 server, running Netscape Enterprise Server 3.61. My configuration options: ./configure --with-mysql=/usr/local/mysql \ --enable-track-vars \ --enable-libgcc \ --enable-discard-path Everything seem to have installed well, but whenever I run a PHP script, I get the first line e.g. #!/usr/local/bin/php displayed. I have only added a line to the mime.types file as I'm not sure which options are necessary in the obj.conf file. I have noticed that with a NSAPI build, one should put in a line for the shared library libphp4.so, but this file is not built / created during my installation (I suspect it's only necessary for the NSAPI build, but I'm no expert in this field.) I thought the --enable-discard-path was supposed to take care of the priblem, but it seems not to. Can anybody perhaps help? Thanks in advance. Marius Etsebeth P.S. I have also installed it on Win98, M$ PWS & MySQL as well as Apache & MySQL on Mandrake - no problems! So this one has me baffled...
Hi everyone, if you can help me with this I would really appreciate it. If I configure php with this then it works: # ./configure --with-apxs=/usr/sbin/apxs --without-mysql --with-openssl=/usr --with-curl=/usr/local/lib But if I configure with this it gives me "configure: error: cannot find necessary header file(s)" How can I narrow this down to find out which header files it's talking about? # ./configure --prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic --enable-shared --enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/bin --with-regex=system --with-zlib --with-gdbm --with-gd --with-jpeg-dir=/usr --with-png --with-ttf --with-layout=GNU --with-openssl=/usr --enable-debugger --enable-safe-mode --enable-sockets --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars --enable-magic-quotes --enable-mem-limit --enable-yp --enable-ftp --enable-wddx --without-mysql --with-imap=shared --without-unixODBC --without-oracle --without-oci8 --with-xml --with-curl [snip] Configuring extensions checking if the location of ZLIB install directory is defined... no checking whether to include ZLIB support... yes checking for gzgets in -lz... yes checking for fopencookie... yes checking for ASPELL support... no checking for bc style precision math functions... no checking for BZip2 support... no checking whether to enable calendar conversion support... no checking CCVS Support... no checking whether to include cpdflib support... no checking whether to include crack support... no checking whether to enable ctype support... no checking for CURL support... yes checking for CURL in default path... found in /usr/local checking for cURL greater than or equal to 7.8... libcurl 7.8.1 checking for curl_easy_perform in -lcurl... yes checking for CyberCash support... no checking for cybermut support... no checking whether to include old xDBM support... no checking whether to enable DBA... no checking for gdbm_open in -lgdbm... no configure: error: cannot find necessary header file(s) [this is where it stops] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Does config.log have anything more about the error? -steve On Friday, September 7, 2001, at 06:28 AM, Bob wrote: > Hi everyone, if you can help me with this I would really appreciate it. > > If I configure php with this then it works: > > # ./configure > --with-apxs=/usr/sbin/apxs > --without-mysql > --with-openssl=/usr > --with-curl=/usr/local/lib > > But if I configure with this it gives me "configure: error: cannot find > necessary header file(s)" How can I narrow this down to find out which > header files it's talking about? > > # ./configure > --prefix=/usr > --with-config-file-path=/etc > --disable-debug > --enable-pic > --enable-shared > --enable-inline-optimization > --with-apxs=/usr/sbin/apxs > --with-exec-dir=/usr/bin > --with-regex=system > --with-zlib > --with-gdbm > --with-gd > --with-jpeg-dir=/usr > --with-png > --with-ttf > --with-layout=GNU > --with-openssl=/usr > --enable-debugger > --enable-safe-mode > --enable-sockets > --enable-sysvsem=shared > --enable-sysvshm=shared > --enable-track-vars > --enable-magic-quotes > --enable-mem-limit > --enable-yp > --enable-ftp > --enable-wddx > --without-mysql > --with-imap=shared > --without-unixODBC > --without-oracle > --without-oci8 > --with-xml > --with-curl > > [snip] > Configuring extensions > checking if the location of ZLIB install directory is defined... no > checking whether to include ZLIB support... yes > checking for gzgets in -lz... yes > checking for fopencookie... yes > checking for ASPELL support... no > checking for bc style precision math functions... no > checking for BZip2 support... no > checking whether to enable calendar conversion support... no > checking CCVS Support... no > checking whether to include cpdflib support... no > checking whether to include crack support... no > checking whether to enable ctype support... no > checking for CURL support... yes > checking for CURL in default path... found in /usr/local > checking for cURL greater than or equal to 7.8... libcurl 7.8.1 > checking for curl_easy_perform in -lcurl... yes > checking for CyberCash support... no > checking for cybermut support... no > checking whether to include old xDBM support... no > checking whether to enable DBA... no > checking for gdbm_open in -lgdbm... no > configure: error: cannot find necessary header file(s) > [this is where it stops] > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > 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] >