php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #1369 better set LD_LIBRARY_PATH rather than creating soft links to /usr/lib
Submitted: 1999-05-02 14:34 UTC Modified: 1999-06-21 18:07 UTC
From: tludwig at cybernet-ag dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.7 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tludwig at cybernet-ag dot net
New email:
PHP Version: OS:

 

 [1999-05-02 14:34 UTC] tludwig at cybernet-ag dot net
My Sybase server and client are located in /usr/local/sybase. So I entered:
./configure --with-sybase-ct=/usr/local/sybase --with-apache=../apache_1.3.3 --enable-track-vars

when making apache a few steps later I received
gcc  -DSOLARIS2=260 -DUSE_HSREGEX `../apaci`   -o gen_test_char gen_test_char.o  -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3       -L/usr/local/sybase/lib -lcs -lct -lcomn -lintl -ltcl                               -lpam -lm -ldl -lsocket -lnsl  -lresolv  -lsocket -lnsl
./gen_test_char >test_char.h
ld.so.1: ./gen_test_char: fatal: libcs.so: open failed: No such file or directory

So despite "-L/usr/local/sybase/lib" the linker could not find the database library.
In your INSTALL file you suggest the following:
"[...]If you are not on Linux and you see this error, a quick-fix is to create a symbolic
link to the shared lib from one of the directories on your link path.  Something
like 'ln -s /usr/local/lib/mysql/libmysqlclient.so /usr/lib'."

Normally you do not really want to do this. Adding /usr/local/sybase/lib into the system environment variable LD_LIBRARY_PATH worked for me.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-21 18:07 UTC] jim at cvs dot php dot net
Added note to INSTALL.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 22:01:31 2024 UTC