php-install Digest 5 Aug 2001 06:54:59 -0000 Issue 396

Topics (messages 3834 through 3842):

Re: PHP 4.0.6 freeBSD mysql apache2
        3834 by: Jon Cheng

Re: debug.log from anoop.nu
        3835 by: Jani Taskinen

Re: New INSTALL // Apache dies with: undefined symbol: gdImageColorClosestAlpha
        3836 by: Jani Taskinen
        3842 by: Felix C.Courtemanche

LE INTERESARA
        3837 by: cursos

odbc problems with win2k server, apache and PHP4.06
        3838 by: Paul Fenton

Re: Error connecting to MySQL with PHP4
        3839 by: Rasmus Lerdorf

Re: Installation problem
        3840 by: Rasmus Lerdorf

newest PHP compile won't see pg_connect()
        3841 by: Dan Troxell

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]


----------------------------------------------------------------------


If you are installing on Freebsd, why not just make use of things in
/usr/ports/www/?

apache is located:
/usr/ports/www/apache13

php4
/usr/ports/www/mod_php4

mysql:
/usr/ports/database/mysql323-server

change directory into the list above and run an "make install" on each. Do
them in order one at a time.
That's it

-Jon


----- Original Message -----
From: "lasse" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 04, 2001 7:10 AM
Subject: [PHP-INST] PHP 4.0.6 freeBSD mysql apache2


> hey.
>
> having problem with make install after successfully running
> #
>
./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/sbin/apxs
> # make
> (uhm.. had big problems with make when i ran ./configure --with-apxs and
> apache2. go
> figure)
> i can't really dechiffer this errormessage:
> # make install
> <snip>
> Making install in .
> /usr/local/sbin/apxs -i -a -n php4 libphp4.la
> libtool --mode=install cp libphp4.la /usr/local/libexec/apache/libphp4.la
> apxs:Break: Command failed with rc=16711680
> *** Error code 1
> Stop in /usr/home/xlarge/install/php-4.0.6.
> *** Error code 1
> Stop in /usr/home/xlarge/install/php-4.0.6.
>
> any ideas?
>
> regards
> lasse öhgren
>
>
>
>
> --
> 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]
>






For the 100th time: --with-zlib

(reading the mailing list archives would have given you this answer..)

--Jani


On Sat, 4 Aug 2001 [EMAIL PROTECTED] wrote:

>Hello,
>
>I had problems installing php. A copy of the debug.log is below. I ignored
>the error that was given when ./configure ran and continued with the
>install.
>
>----- debug.log -----
>CONFIGURE:   './configure' '--with-mysql=/usr/local/mysql'
>'--with-apxs=/usr/local/apache/bin/apxs'
>CC:         gcc
>CFLAGS:     -g -O2
>CPPFLAGS:    -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DUSE_EXPAT -DNO_DL_N
>EEDED -DSUPPORT_UTF8
>CXX:
>CXXFLAGS:
>INCLUDES:    -I/usr/local/apache/include  -I$(top_builddir)/Zend -I/usr/loca
>l/mysql/include/mysql
>LDFLAGS:     -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-
>solaris2.7/2.95.3 -L/usr/local/lib/gcc-lib/sparc-s
>un-solaris2.7/2.95.3 -R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mys
>ql
>LIBS:       -lmysqlclient -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket
> -lsocket -lgcc
>DLIBS:
>SAPI:       apache
>PHP_RPATHS:  /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3
>/usr/local/mysql/lib/mysql
>uname -a:   SunOS gtp 5.7 Generic_106541-06 sun4m sparc SUNW,SPARCstation-20
>
>gcc -o
>conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DUSE_EXPAT -DNO_
>DL_NEEDED -DSUPPORT_UTF8  -R/usr/ucblib -L/
>usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3 -L/usr/local
>/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3 -R/usr/lo
>cal/mysql/lib/mysql -L/usr/local/mysql/lib/mysql
>conftest.c -lmysqlclient -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket
>-
>lsocket -lgcc 1>&5
>Undefined                       first referenced
> symbol                             in file
>uncompress
>/usr/local/mysql/lib/mysql/libmysqlclient.so
>compress
>/usr/local/mysql/lib/mysql/libmysqlclient.so
>ld: fatal: Symbol referencing errors. No output written to conftest
>collect2: ld returned 1 exit status
>----- end -----
>
>I ignored the error and continued. When the install completed, i followed
>the instructions and copied php.ini-dist to /usr/local/lib/php.ini and made
>no changes to it. i uncommented httpd.conf to allow php 4. the Load module
>line is there. The error produced from starting apache is below.
>
>----- apache error -----
># apachectl configtest
>Syntax error on line 34 of /usr/local/apache/conf/httpd.conf:
>Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
>/usr/local/apache/bin/httpd: fatal: relocation error: file
>/usr/local/mysql/lib/mysql/libmysqlclient.so.10: symbol uncompress:
>referenced symbol not found
>#
>----- end -----
>
>The setup for my machine is described below.
>
>Sparc 20 w/ Solaris 2.7
>Apache 1.3.20 in /usr/local/apache
>mysql 3.23.40 in /usr/local/mysql
>php 4.0.6
>
>the options i used with configure script were --with-mysql=/usr/local/mysql
>and --with-apxs=/usr/local/apache/bin/apxs
>
>I'd appreciate any feed back on this problem. The ultimate goal here for me
>is to get a webmail working which needed PHP. I also wanted to install php
>to learn it. If anyone requires more information, i will be glad to provide
>it.
>
>Thanks
>
>-Anoop Bhat
>[EMAIL PROTECTED]
>
>
>






A guess: You have old GD library remains (header files / libs) there..
Try cleaning all of it or install GD 2.0.1 libs e.g. into /opt/gd/
instead..

--Jani


On Sat, 4 Aug 2001, Felix C.Courtemanche wrote:

>Hello,
>
>I have been trying to install PHP4.0.6 with GD2.0.1 support.
>
>config line:
>./configure --with-config-file-path=/etc/httpd/conf --with-mysql=/usr --with
>-pgsql --with-mcrypt --with-imap=../imap --with-apxs=/usr/sbin/apxs --with-z
>lib-dir=/usr --with-gd=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-
>openssl  --with-curl-dir=/usr --enable-ftp --enable-shmop --enable-xml --ena
>ble-track-vars
>
>When I make install and try to restart apache, it dies with:
>Cannot load /usr/libexec/libphp4.so into server: /usr/libexec/libphp4.so:
>undefined symbol: gdImageColorClosestAlpha
>
>Anyone have any idea?
>
>--
>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
>Félix C.Courtemanche . [EMAIL PROTECTED]
>Co-Administrator . http://www.can-host.com/
>Head Designer . http://www.can-design.com/
>.
>
>
>
>





great, that was it... a libgd.a file remaining. :)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Félix C.Courtemanche . [EMAIL PROTECTED]
.
----- Original Message -----
From: "Jani Taskinen" <[EMAIL PROTECTED]>
To: "Felix C.Courtemanche" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, August 04, 2001 6:18 PM
Subject: Re: [PHP-INST] New INSTALL // Apache dies with: undefined symbol:
gdImageColorClosestAlpha


>
> A guess: You have old GD library remains (header files / libs) there..
> Try cleaning all of it or install GD 2.0.1 libs e.g. into /opt/gd/
> instead..
>
> --Jani
>
>
> On Sat, 4 Aug 2001, Felix C.Courtemanche wrote:
>
> >Hello,
> >
> >I have been trying to install PHP4.0.6 with GD2.0.1 support.
> >
> >config line:
>
>./configure --with-config-file-path=/etc/httpd/conf --with-mysql=/usr --wit
h
>
>-pgsql --with-mcrypt --with-imap=../imap --with-apxs=/usr/sbin/apxs --with-
z
>
>lib-dir=/usr --with-gd=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with
-
>
>openssl  --with-curl-dir=/usr --enable-ftp --enable-shmop --enable-xml --en
a
> >ble-track-vars
> >
> >When I make install and try to restart apache, it dies with:
> >Cannot load /usr/libexec/libphp4.so into server: /usr/libexec/libphp4.so:
> >undefined symbol: gdImageColorClosestAlpha
> >
> >Anyone have any idea?
> >
> >--
> >. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
> >Félix C.Courtemanche . [EMAIL PROTECTED]
> >Co-Administrator . http://www.can-host.com/
> >Head Designer . http://www.can-design.com/
> >.
> >
> >
> >
> >






OFERTA PARA MEXICO:
[EMAIL PROTECTED]
 
 
                                                                                       
                    
1.8.2001.Publicidad/Enseñanza a Distancia 
 
 
      Hola que tal:
 
      El motivo de la presente carta es informarte de la posibilidad de poder 
realizar algún curso a distancia de tu interés, cursos relacionados con tu 
trabajo inquietudes  y ocio.ect.El conocimiento es el mayor patrimonio de 
que podemos disponer.
 
      Nos dedicamos desde 1996.a impartir cursos a distancia disponemos 
de una amplia variedad de cursos sencillos  para poder seguirlos 
comodamente desde cualquier parte del mundo y a unos precios muy 
competitivos.
      
 
 
NET
------------
Redes y Sistemas
Sistemas Servers
Diseño Web
 
BUSSINES
------------
Gestion Comercial y Marketing
Relaciones Publicas
Recursos Humanos
Comercio Exterior
Direccion Comercial
Gestión Medio Ambiental

 
SALUD SUPERACION PERSONAL
-------------------------------------
 
Psicoterapia
Psicologia Practica
Nutrí terapia y Salud
Monitor Yoga Tai-Chi
Hipnoterapia
Quiromasaje y Reflexoterapia
Aromaterapia
Cosmética Natural
Hierbas Medicinales
 
--------------------------------------
CURSOS BECADOS:

Los cursos  son de 200.horas lectivas el precio standar por curso es de 
35.000.pts(Despues de beca)España a plazos.Iberoamerica 150.usa 
dolar aplazados.(Despues de beca)

El Diploma:

 "Técnico Especialista"

 El tiempo aproximado por curso dependiendo de los conocimientos en 
areas similares de que se disponga,es entre 2-6.meses.aprox.
 
Si desean que les ampliemos información pueden enviar un e-mail les 
contestaremos con la mayor brevedad y les indicaremos nuestro espacio 
web que se encuentra en reformas.No lo pienses mas y envia un e-mail y 
recibiras todo tipo de informes y detalles muy en breve.
 
Envie e-mail:

[EMAIL PROTECTED]
       
 
Sin otra que rogarte me envies un e-mail si estas interesado/a
Te enviamos un saludo.
 
 
Si desea no recibir mas  e-mail.  remove/mail  [EMAIL PROTECTED]

[EMAIL PROTECTED]          
                                                                           


                                                                              
 Jose Garceran
  Broker-COFOR
 Gestion Integral 1.SL

 C/Constitucion.34
  03310-Alicante
  España
------------------


   


 
 
 
 
 
      




Please help!!!!

I am trying to get PHP to connect to MS Access db on a win2000 server, but
only getting following errors:


Warning: SQL error: , SQL state 00000 in SQLConnect in
d:\websites\~nit\hello.php on line 7

Warning: Supplied argument is not a valid ODBC-Link resource in
d:\websites\~nit\hello.php on line 9

Warning: Supplied argument is not a valid ODBC result resource in
d:\websites\~nit\hello.php on line 12


Warning: Supplied argument is not a valid ODBC result resource in
d:\websites\~nit\hello.php on line 14

Warning: Supplied argument is not a valid ODBC-Link resource in
d:\websites\~nit\hello.php on line 25

I have set up this database in odbc datasources in windows (Both UserDSN and
SystemDSN) and am able to access it perfectly using JSP, but will not work
with PHP.

This is the PHP code I'm using:

<html>

<body>
  <p align="center">
  <?PHP

    $Link = odbc_connect("Test", "Admin", "xxxxx");

    $Result = odbc_exec ($Link, "SELECT * FROM test");

 print(odbc_result($Result,1) . "<br>");

    while (odbc_fetch_row($Result) != 0){

      print(odbc_result($Result,1) . "<br>");
    }

    odbc_close($Link);

  ?>
  </p>
</body>

</html>

The strange thing is that I have actually got all this working perfectly
using apache, PHP on a win98 machine.

I'm only new to PHP so any assistance or suggestions would be greatfully
accepted.

Thanks






> However, when I try to run the following simple script to connect to
> MySQL on localhost, I get the baffling error: 'undefined function'. I
> thought that MySQL connections were standard baked in PHP4.

Unless specifically compiled to not have MySQL support, it is standard.
Check phpinfo() and see if the configure line has --without-mysql in it.
It probably does.

You have 2 options, recompile PHP (no need to recompile Apache since PHP
is a DSO (dynamic shared object) loaded into Apache when it starts).

Or second, build just the MySQL extension using: --with-mysql=shared
and load that into your PHP script at startup by doing dl('mysql.so'); in
your script or add extension=mysql.so to your php.ini file.

-Rasmus





> I send you the attachment of the debug.log

That doesn't contain your debug.log

Just show us the relevant error.

-Rasmus
-- 
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]




On linux 6.1, I've installed fresh builds of postgres 6.0.4, apache 1.3.20, 
php 4.0.6.

Apache was first installed as a static install with php, but I've since 
rebuilt for dynamic shared libraries and rebuilt php accordingly. PHPLIB is 
also installed with some custom classes, some still interred in the 
local.inc.

The dynamic version runs, but won't see pg_connect(). Is there some build 
requirments to properly identify the pgsql.so? The statically built version 
of apache/php/postgres is working fine except for the spooky occurences 
below.

The local.inc file appears to be "frozen". I can't add new classes, or 
functions to existing classes, but bogus edits to the file will still break 
it.

Any help is greatly appreciated.

Dan Troxell



Reply via email to