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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-21 18:07 UTC] jim at cvs dot php dot net
Added note to INSTALL.
 [2024-10-16 09:49 UTC] git@php.net
Automatic comment on behalf of cracksalad (author) and web-flow (committer)
Revision: https://github.com/php/doc-en/commit/6b53a028fb43eb697c961c81053543fc51bc9028
Log: Fix #1369 + #1370: adding GearmanClient::setXXXCallback documentation (#3861)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 21:00:02 2026 UTC