Singular
https://www.singular.uni-kl.de/forum/

libreadline error
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2246
Page 1 of 1

Author:  vinay [ Thu Mar 14, 2013 1:39 pm ]
Post subject:  libreadline error

I was trying to install Singular-3-1-6 on a server using tar.gz files. I do not have a root access on this server. (I cannot even compile the code on this server.)

Apparently it seems the server does not have libreadline.so.6 installed and the administers refuse to do so. The error I am getting is

Code:
Singular: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

The current versions of libreadline installed are:
Code:
vinay.wagh@master:~/ $> locate libreadline.so
/usr/lib/libreadline.so.4
/usr/lib/libreadline.so.4.3
/usr/lib64/libreadline.so.4
/usr/lib64/libreadline.so
/usr/lib64/libreadline.so.4.3

Actually all of them link to /usr/lib64/libreadline.so.4.3.

So is there any other way?
e.g. If I create a link to the above lib somewhere in my homedir and pass that path to Singular?

Or download copy libreadlin.so.6 somewhere in my homedir?

The details of the system are:
Code:
vinay.wagh@master:~ $> uname -a
Linux master 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
v


Thanks

VInay

Author:  Guest [ Thu Mar 14, 2013 3:51 pm ]
Post subject:  Re: libreadline error

Did you download
Singular-3-1-6-x86_64-Linux.tar.gz
or
Singular-3-1-6-x86_64-Linux-static.tar.gz ?

Try the static version.

Author:  vinay [ Sun Mar 17, 2013 5:14 am ]
Post subject:  Re: libreadline error

Following the instructions on http://www.singular.uni-kl.de/index.php/singular-download/109.html, I downloaded

Code:
Singular-3-1-6-x86_64-Linux.tar.gz
Singular-3-1-6-share.tar.gz


Following instructions at the end of the page (although they are not applicable to my system):
Code:
For ix86-Linux systems:
Due to some incompatibilities of shared libraries, the start-up of Singular might fail with messages like
   Can not find shared library ...
For DEBIAN systems, try to do ln -s /usr/lib/libncurses.so /usr/lib/libncurses.so.4.
If this fails (and on other systems) download and install Singular-3-x-x-ix86-Linux-static.tar.gz.

I also installed Singular-3-1-6-IA64-Linux-static.tar.gz.

However the error is persistent.


VInay

Author:  hannes [ Mon Mar 18, 2013 6:45 pm ]
Post subject:  Re: libreadline error

Singular-3-1-6-IA64-Linux-static.tar.gz. is for itanium CPUs.
Install Singular-3-1-6-x86_64-Linux-static.tar.gz for a static version
for a x86_64 (amd64) CPU.
If you want to fix the dynamic version (not recommend, see: man ld.so),
put a copy or a link to some
readline version (version 4 to 7 should work) into a separate directory and add it to LD_LIBRARY_PATH,
for example:
Code:
mkdir /home/vinay/lib
ln -s /usr/lib/libreadline.so.4 /home/vinay/lib/libreadline.so.6
export LD_LIBRARY_PATH=/home/vinay/lib
Singular

Author:  vinay [ Tue Apr 02, 2013 1:21 pm ]
Post subject:  Re: libreadline error

Sorry for the delayed reply, but it is not working.

Code:
vinay@vinay-pc:~/Code $> echo $LD_LIBRARY_PATH
/home/vinay.wagh/LIB_READLINE/
vinay@vinay-pc:~/Code $> l `echo $LD_LIBRARY_PATH`
total 4
lrwxrwxrwx  1 vinay.wagh fac 25 Mar 19 10:31 libreadline.so.6 -> /usr/lib/libreadline.so.4
vinay@vinay-pc:~/Code $>


When I try to run Singular, I get the same message as earlier:
Code:
Singular: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory


VInay

Author:  gorzel [ Tue Apr 02, 2013 5:25 pm ]
Post subject:  Re: libreadline error

Please check whether your are calling indeed the x86.static version.

To do so, proceed as follows.
Change to the directory where you have untared the tar.gz file e.g.
Code:
cd /tmp/Singular/3-1-6/x86_64-Linux
s
Then start that Singular file in the following form:
Code:
./Singular -v

You should see detailed information, such as:
Code:
Singular for x86_64-Linux version 3-1-6 (3160)  Jsan 28 2013 07:07:08
with
        factory(@(#) factoryVersion = 3.echo $LD_LIBRARY_PATH1.6),libfac(3.1.6,December 2012),
        GMP(5.0),NTL(5.5.2),64bit,static readline,Plural,fan/cone,DBM,
        dynamic modules,OM_CHECK=0,OM_TRACK=0,random=1364915111

Observe, that this Singular-3-1-6 version is built static with the readline, i.e.
it is not trying to load the shared object libreadline.[b]so./b].

Author:  vinay [ Wed Apr 03, 2013 1:38 pm ]
Post subject:  Re: libreadline error

Deleting the whole directory and re-unzipping all the files did the trick. Still dont know what the problem was!

Anyways, thanks for the help.

VInay

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/