Xymon Mailing List Archive search

cgi can't see libpcre

4 messages in this thread

list David Mostardi · Thu, 24 Aug 2006 23:51:10 +0100 ·
Most of my new hobbit installation (Solaris 9) has come up fine, but I can't
click through any of the colored icons. The error from Apache error_log is:

[Thu Aug 24 15:25:22 2006] [error] [client 145.36.246.222] Premature end of
script headers: /usr/local/hobbit/cgi-bin/bb-hostsvc.sh
ld.so.1: /usr/local/bb/bb1.9i-btf/bin/hobbitsvc.cgi: fatal: libpcre.so.0:
open failed: No such file or directory

There were no pcre errors during the build process. I used the
"-R/usr/local/lib" trick mentioned in the "known problems" page, and the
user "hobbit" has the directory in its library path. Perhaps there is some
special place where I'll need to manually add a reference to the PCRE
libraries?

Thank you,

David Mostardi
Advisory Systems Manager
Elsevier MDL 
2440 Camino Ramon, Suite XXX
San Ramon CA XXXXX
XXX.XXX.XXXX
www.mdl.com <www.mdl.com>
list Galen Johnson · Thu, 24 Aug 2006 22:00:40 -0400 ·
quoted from David Mostardi
Mostardi, David (MDL US) wrote:
Most of my new hobbit installation (Solaris 9) has come up fine, but I can't click through any of the colored icons. The error from Apache error_log is:

[Thu Aug 24 15:25:22 2006] [error] [client 145.36.246.222] Premature end of script headers: /usr/local/hobbit/cgi-bin/bb-hostsvc.sh

ld.so.1: /usr/local/bb/bb1.9i-btf/bin/hobbitsvc.cgi: fatal: libpcre.so.0: open failed: No such file or directory

There were no pcre errors during the build process. I used the "-R/usr/local/lib" trick mentioned in the "known problems" page, and the user "hobbit" has the directory in its library path. Perhaps there is some special place where I'll need to manually add a reference to the PCRE libraries?

Thank you,

*David Mostardi*
Advisory Systems Manager
*Elsevier MDL*
2440 Camino Ramon, Suite XXX
San Ramon CA XXXXX
XXX.XXX.XXXX
_www.mdl.com_
Hey David,

You may need to use crle...check the man page for usage...I've found on occasion I've had to use it to get the libraries to work for various applications when LD_LIBRARY_PATH and friends failed to work.  IIRC, 'crle -l' will show you your library paths as Solaris sees them.

=G=
list Sladewig · Fri, 25 Aug 2006 06:59:37 -0500 ·
Mostardi, David (MDL US) said the following, On 08/24/2006 05:51 PM:
quoted from Galen Johnson
Most of my new hobbit installation (Solaris 9) has come up fine, but I can't
click through any of the colored icons. The error from Apache error_log is:

[Thu Aug 24 15:25:22 2006] [error] [client 145.36.246.222] Premature end of
script headers: /usr/local/hobbit/cgi-bin/bb-hostsvc.sh
ld.so.1: /usr/local/bb/bb1.9i-btf/bin/hobbitsvc.cgi: fatal: libpcre.so.0:
open failed: No such file or directory
What does ldd /usr/local/bb/bb1.9i-btf/bin/hobbitsvc.cgi report?
It will show you the dependencies of the program and whether or not they 
are satisfied. Your LD_LIBRARY_PATH env will enter into this equation so 
remove it if necessary.
quoted from Galen Johnson
There were no pcre errors during the build process. I used the
"-R/usr/local/lib" trick mentioned in the "known problems" page, and the
user "hobbit" has the directory in its library path. Perhaps there is some
special place where I'll need to manually add a reference to the PCRE
libraries?
Did you also have -L/usr/local/lib in your Makefile? Maybe it was missed 
altogether when compiling.
quoted from Galen Johnson
Thank you,

David Mostardi
Advisory Systems Manager
Elsevier MDL 
2440 Camino Ramon, Suite XXX
San Ramon CA XXXXX
XXX.XXX.XXXX
www.mdl.com <www.mdl.com> 

list Greg L Hubbard · Fri, 25 Aug 2006 08:50:15 -0500 ·
"No pcre errors during the build process" doesn't mean much.

I found that if you DON'T modify the makefile at all the compile and
installation will proceed just fine all the way through "make install"
and then the binaries that need PCRE won't load.  So I had to "make
clean" then change the makefile, then go through the whole make again.

Besides all the other good advice already provided by others, I have
some "is it plugged in" questions -- no offense:

A) Did you "make clean" to force make to recompile and relink everything
after you changed the Makefile to explicitly include the pcre libraries?

B) Did you modify the Makefile correctly (I am the King of Typos
myslef)?

Good luck!

GLH 
quoted from Galen Johnson

-----Original Message-----
From: Galen Johnson [mailto:user-d2ff723b6cb6@xymon.invalid] 
Sent: Thursday, August 24, 2006 9:01 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] cgi can't see libpcre

Mostardi, David (MDL US) wrote:
Most of my new hobbit installation (Solaris 9) has come up fine, but I
can't click through any of the colored icons. The error from Apache 
error_log is:

[Thu Aug 24 15:25:22 2006] [error] [client 145.36.246.222] Premature 
end of script headers: /usr/local/hobbit/cgi-bin/bb-hostsvc.sh

ld.so.1: /usr/local/bb/bb1.9i-btf/bin/hobbitsvc.cgi: fatal: 
libpcre.so.0: open failed: No such file or directory

There were no pcre errors during the build process. I used the 
"-R/usr/local/lib" trick mentioned in the "known problems" page, and 
the user "hobbit" has the directory in its library path. Perhaps there
is some special place where I'll need to manually add a reference to 
the PCRE libraries?

Thank you,

*David Mostardi*
Advisory Systems Manager
*Elsevier MDL*
2440 Camino Ramon, Suite XXX
San Ramon CA XXXXX
XXX.XXX.XXXX
_www.mdl.com_
Hey David,

You may need to use crle...check the man page for usage...I've found on
occasion I've had to use it to get the libraries to work for various
applications when LD_LIBRARY_PATH and friends failed to work.  IIRC,
'crle -l' will show you your library paths as Solaris sees them.

=G=