[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Error when running on Solaris 9
Michael Nemeth wrote:
Didn't seam to work either way! I ended up lv -s from
/usr/local/lib/xxx.so to /usr/bin.xxx.so
Maybe sol 9 bug or missing patch.
The system loader/linker can't find your lib.
Assuming you have the .so lib in /usr/local/lib.
You can add -R to the Makefile
PCRELIBS = -L/usr/local/lib -R/usr/local/lib -lpcre
The -R "hard code" the path to the library into the executable so env
variable will be needed. The -L told it where to find it while compiling.
Or use crle to add /usr/local/lib to system wide runtime linking
environment. See man crle. Be VERY CAREFUL with this or you will end up
booting from cdrom to repair. Be sure to include the existing library paths!
crle -c /var/ld/ld.config -l /usr/lib:/usr/lib/secure:/usr/local/lib
I usally use the latter as nowadays gcc uses a .so for all its generated
programs and then dragging around the LD_LIBRARY_PATH isn't needed.
libpcre.so.0 => /usr/local/lib/libpcre.so.0
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libdl.so.1 => /usr/lib/libdl.so.1
Henrik Stoerner wrote:
On Mon, Sep 19, 2005 at 11:42:58AM -0400, Michael Nemeth wrote:
Just built the lastest snapshot on a Solaris 9.
I got it to compile but when I run I get in variour log files:
ld.so.1 /path to hobbit program/ : fatal : libpcre.so: open failed
no such file or directory
Add the directory where you have the PCRE library installed to the
LD_LIBRARY_PATH setting for your Hobbit user. E.g. set it in the
If you don't want to put it there, the easiest solution is probably
to add the definition to the top-level Makefile for Hobbit, like
then running "make clean; make; make install" again.
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk