php-install Digest 2 Dec 2001 10:45:53 -0000 Issue 582
Topics (messages 5156 through 5161):
Re: PHP, MySQL, * Mandrake 8.1
5156 by: Fred
5158 by: Joe
5159 by: Fred
Re: Problems with php install
5157 by: Yasuo Ohgaki
Re: updating php 4.04 to 4.06
5160 by: EdwardSPL.ita.org.mo
java/ext with php on freebsd4.4 and jdk1.1.8
5161 by: Thomas May
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 ---
I would venture to guess that mysql is installed as a binary distribution.
PHP needs the sources in order to compile with mysql support. Try
installing mysql from source or installing the source rpm.
Fred
Joe <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All,
>
> I am trying to use MySQL from PHP. I get the error message: call
to
> undefined function: mysql_connect()
>
> Based on what I've read, I need to compile PHP with the
> --use-mysql=/path/to/mysql option. This was not enough information to get
> the compile to work. (I tried every directory that had *any* mysql files
in
> it.) So I ended up compiling just using --use-mysql. This seemed to work,
> php -v gives me 4.0.6. However, the error still exists: undefined
function:
> mysql_connect() (MySQL is definitely installed. I have used the client to
> build a small database which I can query against.)
>
> Could someone please give me a hand here?
>
> jce
--- End Message ---
--- Begin Message ---
Good Call. I installed the development packages and php configured,
compiled and installed properly. I am now left with what seems like a
simple problem, which I have not successfully tackled. If I run my program
by typing: php test.php, it does not work. If I do: ./php test.php it does
work. I am assuming the "make install" didn't do what I expected, but I
haven't found the problem yet. Any ideas?
(Still getting the same error: Undefined function as described below. I
checked for copies all over the filesystem and compared them using md5sum.
All appear to be the same. I am puzzled.)
jce
Fred wrote:
> I would venture to guess that mysql is installed as a binary distribution.
> PHP needs the sources in order to compile with mysql support. Try
> installing mysql from source or installing the source rpm.
>
> Fred
>
> Joe <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hi All,
>>
>> I am trying to use MySQL from PHP. I get the error message: call
> to
>> undefined function: mysql_connect()
>>
>> Based on what I've read, I need to compile PHP with the
>> --use-mysql=/path/to/mysql option. This was not enough information to get
>> the compile to work. (I tried every directory that had *any* mysql files
> in
>> it.) So I ended up compiling just using --use-mysql. This seemed to work,
>> php -v gives me 4.0.6. However, the error still exists: undefined
> function:
>> mysql_connect() (MySQL is definitely installed. I have used the client to
>> build a small database which I can query against.)
>>
>> Could someone please give me a hand here?
>>
>> jce
--- End Message ---
--- Begin Message ---
Are you installing php as cgi or as an apache module? What happens when you
call a script via the web server?
Fred
Joe <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Good Call. I installed the development packages and php configured,
> compiled and installed properly. I am now left with what seems like a
> simple problem, which I have not successfully tackled. If I run my program
> by typing: php test.php, it does not work. If I do: ./php test.php it does
> work. I am assuming the "make install" didn't do what I expected, but I
> haven't found the problem yet. Any ideas?
>
> (Still getting the same error: Undefined function as described below. I
> checked for copies all over the filesystem and compared them using md5sum.
> All appear to be the same. I am puzzled.)
>
> jce
>
>
> Fred wrote:
>
> > I would venture to guess that mysql is installed as a binary
distribution.
> > PHP needs the sources in order to compile with mysql support. Try
> > installing mysql from source or installing the source rpm.
> >
> > Fred
> >
> > Joe <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> Hi All,
> >>
> >> I am trying to use MySQL from PHP. I get the error message:
call
> > to
> >> undefined function: mysql_connect()
> >>
> >> Based on what I've read, I need to compile PHP with the
> >> --use-mysql=/path/to/mysql option. This was not enough information to
get
> >> the compile to work. (I tried every directory that had *any* mysql
files
> > in
> >> it.) So I ended up compiling just using --use-mysql. This seemed to
work,
> >> php -v gives me 4.0.6. However, the error still exists: undefined
> > function:
> >> mysql_connect() (MySQL is definitely installed. I have used the client
to
> >> build a small database which I can query against.)
> >>
> >> Could someone please give me a hand here?
> >>
> >> jce
>
--- End Message ---
--- Begin Message ---
Root wrote:
> Hi,
>
> I am trying to install PHP onto my Linus server and I am getting
> errors. The message says to contact you for help. I have looked all
> over the net for the hack but have not found it. Obviously I am new to
> Linux.
>
> Please tell me what is wrong.
>
> Thanks,
>
> Rick
>
>
> ------------------------------------------------------------------------
>
> CONFIGURE: './configure'
>'--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/'
>'--with-apxs=/usr/local/apache_1.3.12/bin/apxs'
> CC: gcc
> CFLAGS: -g -O2
> CPPFLAGS:
> CXX:
> CXXFLAGS:
> INCLUDES: -I/usr/local/apache_1.3.12/include -I$(top_builddir)/Zend
>-I$(top_srcdir) -I/usr/local/mysql-3.22.32-pc-linux-gnu-i686//include
> LDFLAGS: -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
>-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> LIBS: -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl -lresolv
> DLIBS:
> SAPI: apache
> PHP_RPATHS: /usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> uname -a: Linux .asurefit 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000 i586 unknown
>
> gcc -o conftest -g -O2
>-Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
>-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql conftest.c -lmysqlclient
>-lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
>
You are specifying invalid path to MySQL lib.
/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
Fix your configure line or use built in mysql lib.
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
"Oscar Castaneda V." wrote:
>
> On Fri, Nov 30, 2001 at 04:17:28PM -0000, [EMAIL PROTECTED] wrote:
> > Hi! This is the ezmlm program. I'm managing the
> > [EMAIL PROTECTED] mailing list.
> >
> > I'm working for my owner, who can be reached
> > at [EMAIL PROTECTED]
> >
> > This is a generic help message. The message I received wasn't sent to
> > any of my command addresses.
> >
> >
> > --- Administrative commands for the php-install list ---
> >
> > I can handle administrative requests automatically. Please
> > do not send them to the list address! Instead, send
> > your message to the correct command address:
> >
> > For help and a description of available commands, send a message to:
> > <[EMAIL PROTECTED]>
> >
> > To subscribe to the list, send a message to:
> > <[EMAIL PROTECTED]>
> >
> > To remove your address from the list, just send a message to
> > the address in the ``List-Unsubscribe'' header of any list
> > message. If you haven't changed addresses since subscribing,
> > you can also send a message to:
> > <[EMAIL PROTECTED]>
> >
> > or for the digest to:
> > <[EMAIL PROTECTED]>
> >
> > For addition or removal of addresses, I'll send a confirmation
> > message to that address. When you receive it, simply reply to it
> > to complete the transaction.
> >
> > If you need to get in touch with the human owner of this list,
> > please send a message to:
> >
> > <[EMAIL PROTECTED]>
> >
> > Please include a FORWARDED list message with ALL HEADERS intact
> > to make it easier to help you.
> >
> > --- Enclosed is a copy of the request I received.
> >
> > Return-Path: <[EMAIL PROTECTED]>
> > Received: (qmail 67255 invoked from network); 30 Nov 2001 16:17:27 -0000
> > Received: from unknown (HELO hera.solucionesintranet.com) (168.234.197.34)
> > by pb1.pair.com with SMTP; 30 Nov 2001 16:17:27 -0000
> > Received: by hera.solucionesintranet.com (Postfix, from userid 502)
> > id 47CD3BF1AF; Fri, 30 Nov 2001 10:18:54 -0600 (CST)
> > Date: Fri, 30 Nov 2001 10:18:54 -0600
> > From: "Oscar Castaneda V." <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP-INST] Re: updating php 4.04 to 4.06
> > Message-ID: <[EMAIL PROTECTED]>
> > References: <[EMAIL PROTECTED]>
><[EMAIL PROTECTED]>
> > Mime-Version: 1.0
> > Content-Type: text/plain; charset=us-ascii
> > Content-Disposition: inline
> > User-Agent: Mutt/1.2.5i
> > In-Reply-To: <[EMAIL PROTECTED]>; from [EMAIL PROTECTED] on Fri, Nov
>30, 2001 at 07:24:21PM +0800
> >
> > > > Hi,
> > > >
> > > > I'm trying to update (rpm -U) my php distribution 4.04 to version 4.06. I have
>tried the following command with no success:
> > > >
> > > > # rpm -Uvh php4.06-7-i386.rpm
> > > >
> > > > Ive also given it a shot with the .src file with no success.
> > > >
> > > > How can I update php with out tearing down any other software that uses php?
> > > >
> > > > thanks to all,
> > > > oscar
> > > > --
> > > > PGP Key fingerprint = 87 83 5F D3 8D D4 B9 DC 4F 15 B1 68 4E FE 2D AE
> > >
> > > Hello,
> > >
> > > What is your system ?
> > >
> > > Edward
> >
> > My system is a redhat 7.1, apache, mysql, php 4.04pl. I need to upgrade php so a
>software I installed will function correctly (that being tutos crm).
> > How do I go about upgrading php to version 4.06??
> >
> > thanks,
> >
> > oscar
> > --
> > PGP Key fingerprint = 87 83 5F D3 8D D4 B9 DC 4F 15 B1 68 4E FE 2D AE
> >
>
> --
> PGP Key fingerprint = 87 83 5F D3 8D D4 B9 DC 4F 15 B1 68 4E FE 2D AE
Hello,
What is your means ?
Edward.
--- End Message ---
--- Begin Message ---
Hi,
i want to run the java/ext with php on freebsd and jdk1.1.8.
I got the following error messages in my browser:
Fatal error: Unable to load Java Library
/usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so, error:
/usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so: Undefined symbol
"fmod" in /usr/local/share/doc/apache/java.php on line 2
Details:
PHP 4.0.6
FreeBSD 4.4
JDK 1.1.8 (FreeBSD port)
Apache 1.3.20
PHP info()
'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd'
'--without-mysql' '--with-zlib' '--with-mysql=/usr/local'
'--with-openssl=/usr' '--with-java' '--prefix=/usr/local' 'i386--freebsd4.4'
php.ini
[Java]
java.class.path=/usr/local/jdk1.1.8/lib/classes.zip
java.library.path=/home/thomas/php4/modules
extension_dir=/home/thomas/php4/modules
extension=libphp_java.so
Dir /home/thomas/php/modules
*libphp_java.so
*php_java.jar
java.php
<?php
$system = new Java('java.lang.System');
print 'Java version='.$system->getProperty('java.version').' <br>';
print 'Java vendor=' .$system->getProperty('java.vendor').' <br>';
print 'OS='.$system->getProperty('os.name').' '.
$system->getProperty('os.version').' on '.
$system->getProperty('os.arch').' <br>';
$formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy
'at' h:mm:ss a zzzz");
print $formatter->format(new Java('java.util.Date'));
?>
any idea ?
greetings from berlin
thomas
--- End Message ---