Xymon Mailing List Archive search

hobbit compile issue

4 messages in this thread

list Steve McConnell · Wed, 23 Jan 2008 21:12:14 -0500 ·
I am trying to compile hobbit 4.2.0 on a Solaris 2.8 machine.

my configure statement is: ./configure.server --prefix=/local/apps/hobbit --pcreinclude /local/apps/pcre/include --pcrelib /local/apps/pcre/lib

the configure works, as does the make and make install, however when I do an ldd on hobbitd I get the following:

/local/apps/hobbit/server/bin# ldd hobbitd
        libpcre.so.0 =>  (file not found)
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/sun4u/lib/libc_psr.so.1

 libpcre.so.0 exists in /local/apps/pcre/lib

/local/apps/pcre/lib# ls -la
total 386
drwxr-xr-x    3 root     other         512 Jan 16 12:07 .
drwxr-xr-x    6 root     other         512 Jan 16 09:28 ..
-rw-r--r--    1 root     other      141744 Jan 16 12:07 libpcre.a
-rwxr-xr-x    1 root     other         799 Jan 16 12:07 libpcre.la
lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so -> libpcre.so.0.0.1
lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so.0 -> libpcre.so.0.0.1
-rwxr-xr-x    1 root     other      118540 Jan 16 12:07 libpcre.so.0.0.1


/local/apps/pcre/lib# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

I am successfully running hobbit server on a linux box, but I need to have this install run on Solaris.

Anyone have any suggestions?


thanks

steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX
list Larry Barber · Wed, 23 Jan 2008 21:52:56 -0600 ·
You need to add the paths to the libraries to the LD_LIBRARY_PATH
environmental variable.

Thanks,
Larry Barber
quoted from Steve McConnell

On Jan 23, 2008 8:12 PM, <user-d0c05d6d01c9@xymon.invalid> wrote:
I am trying to compile hobbit 4.2.0 on a Solaris 2.8 machine.

my configure statement is: ./configure.server --prefix=/local/apps/hobbit
--pcreinclude /local/apps/pcre/include --pcrelib /local/apps/pcre/lib

the configure works, as does the make and make install, however when I do
an ldd on hobbitd I get the following:

/local/apps/hobbit/server/bin# ldd hobbitd
        libpcre.so.0 =>  (file not found)
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/sun4u/lib/libc_psr.so.1

libpcre.so.0 exists in /local/apps/pcre/lib

/local/apps/pcre/lib# ls -la
total 386
drwxr-xr-x    3 root     other         512 Jan 16 12:07 .
drwxr-xr-x    6 root     other         512 Jan 16 09:28 ..
-rw-r--r--    1 root     other      141744 Jan 16 12:07 libpcre.a
-rwxr-xr-x    1 root     other         799 Jan 16 12:07 libpcre.la
lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so ->
libpcre.so.0.0.1
lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so.0 ->
libpcre.so.0.0.1
-rwxr-xr-x    1 root     other      118540 Jan 16 12:07 libpcre.so.0.0.1


/local/apps/pcre/lib# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

I am successfully running hobbit server on a linux box, but I need to have
this install run on Solaris.

Anyone have any suggestions?


thanks

steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX
list Steve McConnell · Wed, 23 Jan 2008 23:08:29 -0500 ·
Thanks to Larry and Vernon Everette for the quick replies. Your suggestions  (both suggested specifying LD_LIBRARY_PATH) worked like a charm. (moves on feeling sheepish for not thinking of that in the first place)

And Thank You to Henrik for a most excellent piece of software.


Thanks

steve


steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX


"Larry Barber" <user-6ef9c2864140@xymon.invalid> 23-Jan-2008 22:52
Please respond to user-ae9b8668bcde@xymon.invalid

 To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] hobbit compile issue
quoted from Larry Barber


You need to add the paths to the libraries to the LD_LIBRARY_PATH environmental variable. 
Thanks,
Larry Barber

On Jan 23, 2008 8:12 PM, < user-d0c05d6d01c9@xymon.invalid> wrote:

I am trying to compile hobbit 4.2.0 on a Solaris 2.8 machine. 
my configure statement is: ./configure.server --prefix=/local/apps/hobbit --pcreinclude /local/apps/pcre/include --pcrelib /local/apps/pcre/lib 
the configure works, as does the make and make install, however when I do an ldd on hobbitd I get the following: 
/local/apps/hobbit/server/bin# ldd hobbitd         libpcre.so.0 =>  (file not found)         libresolv.so.2 =>        /usr/lib/libresolv.so.2         libsocket.so.1 =>        /usr/lib/libsocket.so.1         libnsl.so.1 =>   /usr/lib/libnsl.so.1         libc.so.1 =>     /usr/lib/libc.so.1         libdl.so.1 =>    /usr/lib/libdl.so.1         libmp.so.2 =>    /usr/lib/libmp.so.2         /usr/platform/sun4u/lib/libc_psr.so.1 
libpcre.so.0 exists in /local/apps/pcre/lib

/local/apps/pcre/lib# ls -la total 386 drwxr-xr-x    3 root     other         512 Jan 16 12:07 . drwxr-xr-x    6 root     other         512 Jan 16 09:28 .. -rw-r--r--    1 root     other      141744 Jan 16 12:07 libpcre.a -rwxr-xr-x    1 root     other         799 Jan 16 12:07 libpcre.la lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so -> libpcre.so.0.0.1 lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so.0 -> libpcre.so.0.0.1 -rwxr-xr-x    1 root     other      118540 Jan 16 12:07 libpcre.so.0.0.1 

/local/apps/pcre/lib# gcc -v Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 
I am successfully running hobbit server on a linux box, but I need to have this install run on Solaris. 
Anyone have any suggestions? 

thanks 
steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX
list Mike Rowell · Fri, 25 Jan 2008 11:44:25 -0000 ·
Although to make sure nothing breaks if at a later date someone changes
the LD_LIBRARY_PATH you  should really compile in the paths in the
binaries by adding -R/local/apps/pcre/lib to the -L/local/apps/pcre/lib
entry in the Makefile...  
 
Mike
quoted from Larry Barber

 
From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid] Sent: 24 January 2008 03:53
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] hobbit compile issue

 
You need to add the paths to the libraries to the LD_LIBRARY_PATH
environmental variable. 
Thanks,
Larry Barber

On Jan 23, 2008 8:12 PM, < user-d0c05d6d01c9@xymon.invalid
<mailto:user-d0c05d6d01c9@xymon.invalid> > wrote:


I am trying to compile hobbit 4.2.0 on a Solaris 2.8 machine. 
my configure statement is: ./configure.server
--prefix=/local/apps/hobbit --pcreinclude /local/apps/pcre/include
--pcrelib /local/apps/pcre/lib 
the configure works, as does the make and make install, however when I
do an ldd on hobbitd I get the following: 
/local/apps/hobbit/server/bin# ldd hobbitd         libpcre.so.0 =>  (file not found)         libresolv.so.2 =>        /usr/lib/libresolv.so.2         libsocket.so.1 =>        /usr/lib/libsocket.so.1         libnsl.so.1 =>   /usr/lib/libnsl.so.1         libc.so.1 =>     /usr/lib/libc.so.1         libdl.so.1 =>    /usr/lib/libdl.so.1         libmp.so.2 =>    /usr/lib/libmp.so.2         /usr/platform/sun4u/lib/libc_psr.so.1 
libpcre.so.0 exists in /local/apps/pcre/lib

/local/apps/pcre/lib# ls -la total 386 drwxr-xr-x    3 root     other         512 Jan 16 12:07 . drwxr-xr-x    6 root     other         512 Jan 16 09:28 .. -rw-r--r--    1 root     other      141744 Jan 16 12:07 libpcre.a -rwxr-xr-x    1 root     other         799 Jan 16 12:07 libpcre.la lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so ->
libpcre.so.0.0.1 lrwxrwxrwx    1 root     other          16 Jan 16 12:07 libpcre.so.0 ->
libpcre.so.0.0.1 -rwxr-xr-x    1 root     other      118540 Jan 16 12:07 libpcre.so.0.0.1


/local/apps/pcre/lib# gcc -v Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 
I am successfully running hobbit server on a linux box, but I need to
have this install run on Solaris. 
Anyone have any suggestions? 

thanks 
steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX


This email has been scanned for all viruses by the MessageLabs service.


This email has been scanned for all viruses by the MessageLabs service. ________________________________________________________________________