|
From: Michael M. <mci...@pi...> - 2005-01-20 14:32:25
|
It seems that my rlib extensions are being installed in the wrong
directory. I do not know why. Anybody have any ideas?
I am running Redhat 7.0, PHP & PHP-Devel 4.3.6, mySQL & mySQL-devel
(newest, 4.something).
This is an excerpt when I run "make install":
----------------------------------------------------------
Libraries have been installed in:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
----------------------------------------------------------
When I try a .php script to execute the rlib library, I get:
Warning: dl(): Unable to load dynamic library './librlib.so' -
./librlib.so: cannot open shared object file: No such file or directory
in /home/volunteer/public_html/html/report_users.php on line 4
Fatal error: Call to undefined function: rlib_init() in
/home/volunteer/public_html/html/report_users.php on line 48
Somebody please help.
|