Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: libreadline error
PostPosted: Thu Mar 14, 2013 1:39 pm 

Joined: Sat Oct 01, 2005 11:40 am
Posts: 40
Location: IIT Guwahati, Guwahati, Assam, INDIA
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: libreadline error
PostPosted: Thu Mar 14, 2013 3:51 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject: Re: libreadline error
PostPosted: Sun Mar 17, 2013 5:14 am 

Joined: Sat Oct 01, 2005 11:40 am
Posts: 40
Location: IIT Guwahati, Guwahati, Assam, INDIA
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: libreadline error
PostPosted: Mon Mar 18, 2013 6:45 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: libreadline error
PostPosted: Tue Apr 02, 2013 1:21 pm 

Joined: Sat Oct 01, 2005 11:40 am
Posts: 40
Location: IIT Guwahati, Guwahati, Assam, INDIA
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: libreadline error
PostPosted: Tue Apr 02, 2013 5:25 pm 

Joined: Wed Mar 03, 2010 5:08 pm
Posts: 108
Location: Germany, Münster
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].


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: libreadline error
PostPosted: Wed Apr 03, 2013 1:38 pm 

Joined: Sat Oct 01, 2005 11:40 am
Posts: 40
Location: IIT Guwahati, Guwahati, Assam, INDIA
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:06 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group