php-install Digest 4 Mar 2002 08:49:05 -0000 Issue 728

Topics (messages 6232 through 6239):

php 4.1.1 + apache 1.23 + oracle 8i srv on w2k prof
        6232 by: quebe

Re: configure error with lone '-l'
        6233 by: Rohan Amin

php 4.1.2 installation
        6234 by: oHmEr

Following instrictions in maunal doesn't work
        6235 by: Jim Pringle
        6238 by: Rasmus Lerdorf

PHP 4.1.2 & Apache's VirtualHost
        6236 by: Cale Fairchild

PHP-4.1.2 Install
        6237 by: PHP User

GD Graphics with links problem, anybody.....
        6239 by: Archer Vallesfin

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
when I'm trying to connect to my oracle db with
<?php
dl("php_oci8.dll");---------------------------- I've put this because i
though that could help
print "<HTML><PRE>";
$db = "authors";
$c1 = ocilogon("pawel","pawel",$db);

function select_data($conn)
{ $stmt = ociparse($conn,"select * from pawel.authors");
  ociexecute($stmt,OCI_DEFAULT);
  echo $conn."----selecting\n\n";
  while (ocifetch($stmt)){
    echo ociresult($stmt,"au_fname")." ";
    echo ociresult($stmt,"au_lname")." ";
    echo ociresult($stmt,"title")."\n";
  }
  echo $conn."----done\n\n";
}

select_data($c1);
ocilogoff($c1);
print "</PRE></HTML>";
?>

I've an errors like :
"Warning: Unable to load dynamic library 'c:/php/php_oci8.dll' "
and :
"Fatal error:  Call to undefined function:  ocilogon() in ...".
In my php.ini I've enabled the extension=php_oci8.dll and
extension_dir=c:\php
The file php_oci8.dll I've put to the path c:\php; c:\php\extension;
c:\winnt\system32

can someone help me?
    best regards - Pawel



--- End Message ---
--- Begin Message ---
This problem seems to have been fixed in the latest snapshot on
snaps.php.net


"Rohan Amin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Hello,
>
> I am trying to compile a standalone version of the php binary on my
system:
>
> Redhat 7.2, linux 2.4.17
> php-4.1.2
>
> Below is the debug.log file that is generated after running a configure.
If
> you notice the LIBS line there is, I think, an extra '-l' that is causing
> the error.  Before my configure script had --with-gd before --with-java
and
> the configure error then was "/usr/bin/ld: cannot find -l--library=gd"
>
> I have looked in the configure script and can't seem to find this.  Is
this
> indeed the error?  This error doesn't appear when compiling the apache
> module. If this is indeed the error, how do I fix this typo?
>
> Thanks for your help.
>
> Regards,
>
> Rohan
>
>
> CONFIGURE:   './configure' '--with-prefix=/usr/local/etc/php-4.1.2'
> '--with-config-file-path=/www/conf' '--enable-track-vars'
> '--with-mysql=/usr/local/mysql' '--with-java=/usr/local/java'
> '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets'
> CC:         gcc
> CFLAGS:     -g -O2
> CPPFLAGS:
> CXX:
> CXXFLAGS:
> INCLUDES:      -I$(top_builddir)/Zend -I/usr/local/mysql/include/mysql
>
LDFLAGS:     -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/my
> sql
>
LIBS:       -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcry
> pt
> DLIBS:
> SAPI:       cgi
> PHP_RPATHS:  /usr/local/mysql/lib/mysql
>
> gcc -o
>
conftest -g -O2   -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/l
> ib/mysql
>
onftest.c -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt
> 1>&5
> /usr/bin/ld: cannot find -l--library=crypt
> collect2: ld returned 1 exit status
>
>
>


--- End Message ---
--- Begin Message ---
Hi !

I'm a new user of linux but an experimentated php scripter under
windows. However i can't compile php under my linux box under mandrake
8.1 !

I would like to compile php to get a cgi executable so i download last
release of php and unzipped it. After, i type this command to configure
modules :

./configure
--with-apache
--enable-force-cgi-redirect
--enable-discard-path
--with-config-file-path=/etc
--with-openssl --with-zlib
--with-bz2
--enable-calendar
--enable-ftp
--with-mysql
--with-pgsql
--enable-trans-sid
--enable-sockets
--with-regex=php
--with-zip

it stop with this error msg : 

checking lex output file root... ./configure: lex: command not found

what does it mean ? how can i solve that problem ?

thx for your answer :-)


--- End Message ---
--- Begin Message ---
I'm running RedHat 7.2.  I downloaded apache & php binaries.  I followed 
the instructions from the PHP manual:


1.  gunzip apache_1.3.x.tar.gz
2.  tar xvf apache_1.3.x.tar
3.  gunzip php-x.x.x.tar.gz
4.  tar xvf php-x.x.x.tar
5.  cd apache_1.3.x
6.  ./configure --prefix=/www
7.  cd ../php-x.x.x
8.  ./configure --with-mysql --with-apache=../apache_1.3.x 
--enable-track-vars
9.  make
10. make install
11. cd ../apache_1.3.x
12. for PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make instal

After make install I get the following error:
   my_compress.o(.text+0xa2): undefined reference to `uncompress'
   /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function        
   `my_compress_alloc':

   my_compress.o(.text+0x13a): undefined reference to `compress'
   collect2: ld returned 1 exit status
   make[3]: *** [target_static] Error 1
   make[3]: Leaving directory `/usr/local/apache_1.3.23/src'
   make[2]: *** [build-std] Error 2
   make[2]: Leaving directory `/usr/local/apache_1.3.23'
   make[1]: *** [build] Error 2
   make[1]: Leaving directory `/usr/local/apache_1.3.23'
   make: *** [install-all] Error 2

I'm stumped.. Been trying for 3 days.  Any help would be greatly 
appreciated.  Thanks

Jim

--- End Message ---
--- Begin Message ---
Add --with-zlib to your PHP ./configure line

On Sat, 2 Mar 2002, Jim Pringle wrote:

> I'm running RedHat 7.2.  I downloaded apache & php binaries.  I followed
> the instructions from the PHP manual:
>
>
> 1.  gunzip apache_1.3.x.tar.gz
> 2.  tar xvf apache_1.3.x.tar
> 3.  gunzip php-x.x.x.tar.gz
> 4.  tar xvf php-x.x.x.tar
> 5.  cd apache_1.3.x
> 6.  ./configure --prefix=/www
> 7.  cd ../php-x.x.x
> 8.  ./configure --with-mysql --with-apache=../apache_1.3.x
> --enable-track-vars
> 9.  make
> 10. make install
> 11. cd ../apache_1.3.x
> 12. for PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a
> 13. make
> 14. make instal
>
> After make install I get the following error:
>    my_compress.o(.text+0xa2): undefined reference to `uncompress'
>    /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
>    `my_compress_alloc':
>
>    my_compress.o(.text+0x13a): undefined reference to `compress'
>    collect2: ld returned 1 exit status
>    make[3]: *** [target_static] Error 1
>    make[3]: Leaving directory `/usr/local/apache_1.3.23/src'
>    make[2]: *** [build-std] Error 2
>    make[2]: Leaving directory `/usr/local/apache_1.3.23'
>    make[1]: *** [build] Error 2
>    make[1]: Leaving directory `/usr/local/apache_1.3.23'
>    make: *** [install-all] Error 2
>
> I'm stumped.. Been trying for 3 days.  Any help would be greatly
> appreciated.  Thanks
>
> Jim
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I am running PHP as a CGI executable outside the doc_root so I am using
--enable-discard-path but not --force-cgi-redirect.

I am currently trying to upgrade from 4.0.6 to 4.1.2 but found that
although the new php executable works fine in the main site and fine
from a users directory it will not work with scripts called from a
VirtualHost that has a different doc_root path than the default declared
in the Apache conf file. I am running Apache 1.3.22 and have 2 sites
configured, the main site localhost:80 has a doc_root of /www and a
VirtualHost site localhost:8888 has a doc_root of /www/admin, a script
located at /www/admin/tools/scripts/test.php will work fine when called
from http://localhost:80/admin/test.php but when called from
http://localhost:8888/test.php I get the following error logged in the
php error log: Unable to open /www/test.php in Unknown on line 0

I was wondering if anyone else has run in to this issue and whether they
have found a solution. Both PHP executables were compiled with the exact
same configuration flags and the new executable runs fine in any other
situation. I submitted a bug report and they tell me that it is a
configuration issue. Please let me know if anyone else can reproduce
this problem and if you find a solution for it.

Thanks.

Cale Fairchild
Computer Science
Brock University

--- End Message ---
--- Begin Message ---
Help!
    I'm running Apache 1.3 on Redhat7.2 (distribution install) and just
compiled PHP-4.1.2 as a DSO for apache with no problems BUT when I go to
view my php pages the php scripts are in plain text.

eg. <?php phpinfo();?> appears in my browser.

- I know that the appropriate lines in the httpd.conf file has been
uncommented already.
- I read somewhere that this error is because the mod_php.so file cannot be
found. I can't this file anywhere, is it suppose to be included in the
source code?

Any ideas how I may be able to fix this?

Linux Newbie


--- End Message ---
--- Begin Message ---
Hello,

Good Day php guru!

    Anybody have an idea how to put links in an image created
by GD? I used imagecreate and also imagearc and I would like
to put links to that circle (imagearc). anybody?

help...
archer

Thanks to all...

--- End Message ---

Reply via email to