Shared host and shared libs

Post Reply
tracker197
Posts: 1
Joined: Thu Jul 29, 2004 2:12 pm

Shared host and shared libs

Post by tracker197 »

I tried doing an install on a shared web host, and got the following error:

Checking for existing version..........*** Failed ***
---------------------------------------------------------------------
Errors indicate a shared library needed by Texis could not be found:
*** /home/pyrite/lib/search/install-tmp/usr/local/morph3/bin/monitor: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory ***
This is often caused by incompatible changes between versions of the
OS or C lib, eg. the version Texis was created with and your version.
Install the above missing library from your OS media if possible.
Your Linux version appears to be 2.4.26
You may also be able to FTP the lib from ftp://ftp.thunderstone.com/pub/linux/

*** Aborting installation due to above error ***

Since I don't have root access, how do I get the install script to see the shared lib I downloaded from the ftp site for my kernel?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Shared host and shared libs

Post by mark »

By setting the environment variable LD_LIBRARY_PATH to the directory containing the libs (or adding to it if that variable already exists).
david190
Posts: 2
Joined: Fri Jun 16, 2006 11:42 pm

Shared host and shared libs

Post by david190 »

I am having the same trouble. I downloaded the libs.tar.gz from /pub/linux/v2.4.9-21 and I am installing to

/home/user123/morph3

I have tried two solutions.

1) Setting LD_LIBRARY_PATH does not seem to make any difference.

Here is the library directory:

user123@user123lus.net [~]# cd /home/user123/webinatorlib/lib

user123@user123lus.net [~/webinatorlib/lib]# ls
./ ld-2.2.4.so* libc-2.2.4.so* libcrypt-2.2.4.so* libdl-2.2.4.so* libm-2.2.4.so* libpthread-0.9.so* libtermcap.so.2@
../ ld-linux.so.2@ libc.so.6@ libcrypt.so.1@ libdl.so.2@ libm.so.6@ libpthread.so.0@ libtermcap.so.2.0.8*

here is the variable setting:

LD_LIBRARY_PATH=/home/user123/webinatorlib/lib

2) Altered the install script to copy the contents of /home/user123/webinatorlib/lib to the unpacked install bin directory:
/home/user123/morph3/install-tmp/usr/local/morph3/bin

Both these two options result in:

Install dir [ENTER for /usr/local/morph3]: /home/user123/morph3
Checking install dir...Ok
Checking tar file...Ok
Unpacking Webinator files...Ok
Checking for existing version.............*** Failed ***
---------------------------------------------------------------------
Errors indicate a shared library needed by Texis could not be found:
*** /home/user123/morph3/install-tmp/usr/local/morph3/bin/monitor: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory ***
This is often caused by incompatible changes between versions of the
OS or C lib, eg. the version Texis was created with and your version.
Install the above missing library from your OS media if possible.
Your Linux version appears to be 2.6.9
You may also be able to FTP the lib from ftp://ftp.thunderstone.com/pub/linux/

*** Aborting installation due to above error ***
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Shared host and shared libs

Post by mark »

The libs must be in a place specified by LD_LIBRARY_PATH or in the system lib directory (/lib, /usr/lib, etc). Placing the libs in the morph3/bin directory won't do anything. Also, if you're running the program setuid, which is the default setup, LD_LIBRARY_PATH probably won't work.
david190
Posts: 2
Joined: Fri Jun 16, 2006 11:42 pm

Shared host and shared libs

Post by david190 »

Thanks.

It appears that the error message is being generated by the install script before we ever get webinator to actually run. Can setuid problems affect the install script?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Shared host and shared libs

Post by mark »

Yes, setuid can affect the install because the install test runs the software.
Post Reply