php-install Digest 6 Mar 2002 22:08:46 -0000 Issue 732
Topics (messages 6271 through 6278):
Re: Postgres 7.2 Support w php 4.12
6271 by: Steve Farmer
PHP4 configure failure...
6272 by: Christophe
compiling php with MySQL max 4.0.1 under windows
6273 by: Rense Klinkenberg
apache 1.3.23 php 4.1.1 + mysql extension mandrake pb
6274 by: David asi
make install error
6275 by: Shawn
6276 by: jkaufman.footlocker.com
Compiling glibc 2.2.5 with gcc3, then using php 4.2.0-dev as .so?
6277 by: Austin Gonyou
opendir problem on Solaris
6278 by: Nick selby
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]
----------------------------------------------------------------------
--- Begin Message ---
Hi Rasmus,
I checked and that header file was there..
I then checked /usr/local/lib and noticed that libpq.so now is
libpg.so.2.2 and one of the sites i checked had a libpq.so.2.1 so I
made a symbolic link to libpq.so.2.1 and it al worked !!
I also did a make-install-all-headers as well
Thanks for your help
Regards
Steve
At 6:49 AM -0800 5/3/02, Rasmus Lerdorf wrote:
>Have a look at ext/pgsql/config.m4. It tells you that when you use
>--with-pgsql PHP will look in these top-level dirs:
>
>/usr, /usr/local and /usr/local/pgsql
>
>And under these top-level dirs it checks for include files in:
>
>include
>include/pgsql
>include/postgres
>include/postgresql
>
>and library files in
>
>lib
>lib/pgsql
>lib/postgres
>lib/postgresql
>
>If you really do have the ehader files in /usr/local/pgsql/include and the
>library files in /usr/local/pgsql/lib and you do a rm config.cache;
>./configure --with-pgsql it really should work.
>
>Hrm.. Actually, those dirs were for 4.2. Just checked 4.1.2. We only do
>the include checks in 4.1.2 from the same dirs and assume the library is
>in the corresponding dir. The effect should be the same. Make sure that
>you have the libpq-fe.h in one of these dirs.
>
>-Rasmus
>
>On Tue, 5 Mar 2002, Steve Farmer wrote:
>
>> Hi all,
>>
>> Going quietly insane here...
>>
>> Trying to install with postgres
>>
>> 1) Downloaded and compiled postgres-7.2, all went smoothly, db is running
>>
>> 2) Compiled php 4.12, "Checking for Postgres support = NO" !!!
>>
>> 3) added /usr/local/pgsql/lib into ld.so.conf and ran ldconfig.
>>
>> 4) Tried "with-pgsql=/usr/local/pgsql" - no joy
>>
>> 5) Tried "with=pgsql=/usr/local/src/postgresql-7.2" - no joy
>>
>> 6) added symbolic links from /usr/local/pgsql/lib/libpq.so.2.2 to
>> /usr/local/lib/libpg.so.2.2 (2.1 & 2) as suggested on php site
>>
>> Still no go !!!
>>
>> Any help greatly appreciated
>>
>> Regards
>> Steve
>>
>>
>>
>>
>> --
>> -------------------------------------------------
>> "Minds are like parachutes, they work best when open"
>> Support free speech; visit http://www.efa.org.au/
>>
>> Heads Together Systems Pty Ltd http://www.hts.com.au
>> Email: [EMAIL PROTECTED] Tel: 612 9982 6767 Fax: 612 9981 3081
>>
>> --
>> PHP Install Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--
-------------------------------------------------
"Minds are like parachutes, they work best when open"
Support free speech; visit http://www.efa.org.au/
Heads Together Systems Pty Ltd http://www.hts.com.au
Email: [EMAIL PROTECTED] Tel: 612 9982 6767 Fax: 612 9981 3081
--- End Message ---
--- Begin Message ---
Hi,
I have a Sun box (UltraSparc-IIi, 512 MB RAM,...) running Solaris 8.
I have a PHP 4.1.1 source, which I want to compile CGI-mode (for testing
only)
with java support, essentially...
the following is the contents of the debug.log file found by the PHP dir...
I'm totally stuck with this...
thanx alot for helping...
--Christophe
------------------------------DEBUG.LOG-----------------------------------
sparc-osm-3# cat debug.log
CONFIGURE: './configure' '--with-oci8=/opt/Poracle/product/8.1.6/'
'--with-gd=/tmp/orange/gd-1.8.4' '--with-jpeg=/usr/local/lib'
'--enable-bcmath' '--with-java=/usr/java' '--with-zlib' '--with-mysql=no'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
CXX:
CXXFLAGS:
INCLUDES: -I$(top_builddir)/Zend -I/usr/local/include -I/tmp/orange/gd-
1.8.4/ -I/opt/Poracle/product/8.1.6//rdbms/public -I/opt/Poracle/product/8.1
.6//rdbms/demo -I/opt/Poracle/product/8.1.6//network/public
LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-
solaris2.8/3.0 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0 -R/usr/loca
l/lib -L/usr/local/lib -R/tmp/orange/gd-1.8.4/ -L/tmp/orange/gd-1.8.4/ -R/op
t/Poracle/product/8.1.6//lib -L/opt/Poracle/product/8.1.6//lib
LIBS: -lsched -ldl -lgen -lsocket -lnsl -l -lgd -lz -lcrypt -lresolv -
lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc -lcrypt -lclntsh
DLIBS:
SAPI: cgi
PHP_RPATHS: /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0
/usr/local/lib /tmp/orange/gd-1.8.4/ /opt/Poracle/product/8.1.6//lib
uname -a: SunOS sparc-osm-3 5.8 Generic_108528-10 sun4u sparc
SUNW,UltraSPARC-IIi-Engine
gcc -o
conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/
usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0 -L/usr/local/lib/gcc-lib/spar
c-sun-solaris2.8/3.0 -R/usr/local/lib -L/usr/local/lib -R/tmp/orange/gd-1.8.
4/ -L/tmp/orange/gd-1.8.4/ -R/opt/Poracle/product/8.1.6//lib -L/opt/Poracle/
product/8.1.6//lib
conftest.c -lsched -ldl -lgen -lsocket -lnsl -l -lgd -lz -lcrypt -lresolv -l
resolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc -lcrypt -lclntsh
1>&5
ld: fatal: library -l-lgd: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
sparc-osm-3#
----------------------------------------------------------------------------
---------------------
--- End Message ---
--- Begin Message ---
Hi,
After I had succesfully compiled a snapshot from php, I noticed that
accessing MySQL gave some errors. After looking at my phpinfo() I noticed
that it said: "Client API version 3.23.39". I however are using MySQL
4.0.1-alpha, because of all the new features.
I figured out that php obviously is using it's own source files to compile
libmysql, instead of the ones of my own mysql version. In linux I could give
the an extra paramter to ./configure like '--with-mysql=/path/to/mysql', but
I'm using MSVC++ to compile my php and I have no idea how to set those
options with that compiler.
Does anyone have any idea how I can compile my php to make it compatible
with MySQL 4.0.1?
</Rense>
--- End Message ---
--- Begin Message ---
about a php apache upgrade :
I uninstall my apache 1.3.22 +php4.06.
and install apacge 1.3.23 +php 4.1.1
www:~# rpm -qa | grep php
php-4.1.1-4mdk
mod_php-4.1.1-2mdk
php-devel-4.1.1-4mdk
php-common-4.1.1-4mdk
www:~# rpm -qa | grep apache
apache-devel-1.3.23-4mdk
apache-conf-1.3.23-3mdk
apache-common-1.3.23-4mdk
apache-manual-1.3.23-4mdk
apache-source-1.3.23-4mdk
apache-1.3.23-4mdk
apache-modules-1.3.23-4mdk
while test a mysql connection :
www:~# php mysql.php
X-Powered-By: PHP/4.1.1
Content-type: text/html
<br>
<b>Fatal error</b>: Call to undefined function: mysql_connect() in
<b>/root/my
sql.php</b> on line <b>2</b><br>
www:~# php mysql.php
www:~# tail mysql.php
<?
$o=mysql_connect("localhost","root","");
mysql_select_db("mysql",$o);
//for ($x=0;$x<100;$x++) {
$row=mysql_query("select * from user limit 1");
if (!row) echo "Failed";
//}
mysql_close($o);
?>
www:~#
www:~# tail /usr/lib/php/
20010901 Cache.php DB.php HTTP.php Mail.php PEAR
Archive Console extensions Image Math PEAR.php
Benchmark Crypt File Log Net Schedule
build Date HTML Log.php Numbers System.php
Cache DB HTTP Mail Payment XML
www:~# ls /usr/lib/php/extensions/
? no external extensions
no mysql extensions ?
I see the configure of this rpm find at rpmfind.net
Configure Command './configure' '--disable-static' '--disable-debug'
'--disable-rpath' '--enable-pic' '--enable-inline-optimization'
'--prefix=/usr' '--with-zlib' '--with-config-file-path=/etc'
'--enable-magic-quotes' '--enable-debugger' '--enable-track-vars'
'--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-regex=system'
'--with-versioning' '--enable-sysvsem' '--enable-sysvshm'
'--with-mod_charset' '--enable-force-cgi-redirect'
'--enable-trans-sid' '--with-dbase' '--with-filepro' '--enable-yp'
'--enable-ftp' '--with-xml' '--with-gettext' '--with-ttf'
'--with-freetype-dir' <br>[Some modules are external: look for
packages php-pgsql,php-mysql,...]
aie :
befire I have php-mysql-4.06
I try to force the install of php-mysql
external extension
www:~# rpm -Uvh --force php-mysql-4.0.6-3mdk.i586.rpm
error: failed dependencies:
php-common = 4.0.6 is needed by php-mysql-4.0.6-3mdk
www:~# rpm -i --force php-mysql-4.0.6-3mdk.i586.rpm
error: failed dependencies:
php-common = 4.0.6 is needed by php-mysql-4.0.6-3mdk
www:~# php phpinfo.php> phpinfo.html
www:~# rpm -qa | grep php
php-4.1.1-4mdk
mod_php-4.1.1-2mdk
php-devel-4.1.1-4mdk
php-common-4.1.1-4mdk
nothing more
www:~# rpm -U --force php-mysql-4.0.6-3mdk.i586.rpm
error: failed dependencies:
php-common = 4.0.6 is needed by php-mysql-4.0.6-3mdk
I must hav a mysql.so file wich while provide me an external extentioin to
allow me to connect to mysql database.
a+.
--- End Message ---
--- Begin Message ---
I am runing AIX 4.3.3. Everything went fine. The make worked. But, after
the "make install", I get this error,
ld: 0711-317 ERROR: Undefined symbol: .alloca
ls 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254 The errorcode from the last command is 8
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
Any ideas?
--- End Message ---
--- Begin Message ---
What patch levels are you using for your bos.adt.xxx? (most likely
bos.adt.includes or bos.adt.libs).
I was previously having that problem, until I reloaded my aix dev box and
applied the latest patches (post-ml9), and then...it works just fine (with
a tweak or two here).
Also are you including support for anything beyond stock php?
Jonathan Kaufman
"Shawn" <[EMAIL PROTECTED]> on 03/06/2002 01:08:42 PM
Please respond to "Shawn" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: [PHP-INST] make install error
I am runing AIX 4.3.3. Everything went fine. The make worked. But, after
the "make install", I get this error,
ld: 0711-317 ERROR: Undefined symbol: .alloca
ls 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254 The errorcode from the last command is 8
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
Any ideas?
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
The information in this e-mail, and any attachment therein, is confidential
and for use by the addressee only. If you are not the intended recipient,
please return the e-mail to the sender and delete it from your computer.
Although the Company attempts to sweep e-mail and attachments for viruses,
it does not guarantee that either are virus-free and accepts no liability
for any damage sustained as a result of viruses.
--- End Message ---
--- Begin Message ---
Has anyone tried this with apache 1.3 or 2.0?
I'm not certain it's glibc where the problem lies..but that's the only
difference between two boxes I have. The real issue is though that no
matter what PHP was compiled with(gcc 2.91.6 or 2.96, or 3.x) the php.so
will not run on a glibc 2.2.5 system with apache2 as a .so, but it WILL
run on a system using glibc 2.2.4.
If anyone could try this out to help me narrow where the problem is I'd
appreciate it.
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: [EMAIL PROTECTED]
"It is the part of a good shepherd to shear his flock, not to skin it."
Latin Proverb
--- End Message ---
--- Begin Message ---
Hi,
I've got a script that is installed on a Solaris box that is having
difficulties, and I'm wondering if anyone can help.
The script is trying to access and read files within a directory, pull some
at random and put them in a webpage.
The path is correct, the directory is set to 755 and I can view the files
when I browse in. The script is up and running perfectly on two other
servers - one on Red Hat Linux and one on Win2k.
The script is this:
<?php
// This pulls 3 random banners from the appropriate
// subdirectory of the images section of the site
$i=-1;
$banners=opendir($SECTION_SIDEBAR_BANNERS);
if ($banners != FALSE) {
while (($file = readdir($banners)) != FALSE)
if ($file != "." && $file != "..") $banner_list[$i++]=$file;
closedir($banners);
$l=sizeof($banner_list);
if ($l!=0) {
for ($i=0;$i<3;$i++) {
$ad=$banner_list[rand(0,$l)];
if (empty($ad)) { $i-=1; continue; }
$imginfo=getimagesize("$SECTION_SIDEBAR_BANNERS/$ad");
$link=str_replace('.gif','',$ad);
$link=str_replace('.jpg','',$ad);
$link=str_replace('_','/',$ad);
echo "
<div class='sidebar-banner-slot'>
<a href='$SECTION_URL"."ad-clickthrough.htm?AD_URL=$link'><img src='".
$SECTION_SIDEBAR_BANNERS_URL.
"/$ad' height='$imginfo[1]' width='$imginfo[0]' border='0' alt='Visit
$link' /></a>
</div>";
}
} // $l != 0
} // $banner != FALSE
?>
The problem on the solaris machine is that opendir is getting in to the
directory but from that point the server won't let the script read the
files. It kicks back the error:
Warning: 1 is not a valid Directory resource in
/data0/foo.org/members/foo/foo/html/destinations/templates/foo.footer.php
on line 20
(Identifying directories are foo'd out)
Since it kicks back the "1" and not a false, it seems it's getting access
but then not being permitted. Here's something else - the problem is
intermittent: sometimes the script can grab the images and others not.
Can anyone help?
Many thanks in advance.
NIck
--- End Message ---