LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-22-2010, 09:51 AM   #1
twaddlac
Member
 
Registered: Jun 2010
Posts: 34

Rep: Reputation: 0
Question Problems Installing readline.so.6


Hello!

I'm having a bit of a problem installing the readline.so.6 on my CentOS machine. I have a 64-bit system and already have readline.so.5 installed. I need version 6 in order to run an application called mothur (http://www.mothur.org/) as it won't compile without it. I have downloaded the package and when I used the "make install" command I received the following output:

Code:
/bin/sh ./support/mkinstalldirs /usr/local/include \
		/usr/local/include/readline /usr/local/lib \
		/usr/local/share/info /usr/local/share/man/man3
for f in readline.h chardefs.h keymaps.h history.h tilde.h rlstdc.h rlconf.h rltypedefs.h; do \
		/usr/bin/install -c -m 644 ./$f /usr/local/include/readline ; \
	done
( if test -d doc ; then \
		cd doc && \
		make  infodir=/usr/local/share/info DESTDIR= install; \
	  fi )
make[1]: Entering directory `/home/Alan/readline-6.1/doc'
/bin/sh ../support/mkdirs /usr/local/share/info /usr/local/share/man/man3
if test -n "" ; then \
		/bin/sh ../support/mkdirs  ; \
	fi
if test -f readline.info; then \
		/usr/bin/install -c -m 644 readline.info /usr/local/share/info/readline.info; \
	else \
		/usr/bin/install -c -m 644 ./readline.info /usr/local/share/info/readline.info; \
	fi
if test -f rluserman.info; then \
		/usr/bin/install -c -m 644 rluserman.info /usr/local/share/info/rluserman.info; \
	else \
		/usr/bin/install -c -m 644 ./rluserman.info /usr/local/share/info/rluserman.info; \
	fi
if test -f history.info; then \
		/usr/bin/install -c -m 644 history.info /usr/local/share/info/history.info; \
	else \
		/usr/bin/install -c -m 644 ./history.info /usr/local/share/info/history.info; \
	fi
if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
		install-info --dir-file=/usr/local/share/info/dir \
			/usr/local/share/info/readline.info ; \
		install-info --dir-file=/usr/local/share/info/dir \
			/usr/local/share/info/history.info ; \
		install-info --dir-file=/usr/local/share/info/dir \
			/usr/local/share/info/rluserman.info ; \
	else true; fi
/usr/bin/install -c -m 644 ./readline.3 /usr/local/share/man/man3/readline.3
/usr/bin/install -c -m 644 ./history.3 /usr/local/share/man/man3/history.3
if test -n "" ; then \
		if test -f readline.html; then \
			/usr/bin/install -c -m 644 readline.html /readline.html; \
		else \
			/usr/bin/install -c -m 644 ./readline.html /readline.html; \
		fi ; \
		if test -f history.html; then \
			/usr/bin/install -c -m 644 history.html /history.html; \
		else \
			/usr/bin/install -c -m 644 ./history.html /history.html; \
		fi ; \
		if test -f rluserman.html; then \
			/usr/bin/install -c -m 644 rluserman.html /rluserman.html; \
		else \
			/usr/bin/install -c -m 644 ./rluserman.html /rluserman.html; \
		fi ; \
	fi
make[1]: Leaving directory `/home/Alan/readline-6.1/doc'
test -d shlib || mkdir shlib
( cd shlib ; make  all )
make[1]: Entering directory `/home/Alan/readline-6.1/shlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Alan/readline-6.1/shlib'
( cd examples ; make  DESTDIR= install )
make[1]: Entering directory `/home/Alan/readline-6.1/examples'
/bin/sh ../support/mkdirs /usr/local/share/readline
make[1]: Leaving directory `/home/Alan/readline-6.1/examples'
mv /usr/local/lib/libreadline.a /usr/local/lib/libreadline.old
/usr/bin/install -c -m 644 libreadline.a /usr/local/lib/libreadline.a
test -n "ranlib" && ranlib /usr/local/lib/libreadline.a
mv /usr/local/lib/libhistory.a /usr/local/lib/libhistory.old
/usr/bin/install -c -m 644 libhistory.a /usr/local/lib/libhistory.a
test -n "ranlib" && ranlib /usr/local/lib/libhistory.a
( cd shlib ; make  DESTDIR= install )
make[1]: Entering directory `/home/Alan/readline-6.1/shlib'
/bin/sh ../support/mkdirs /usr/local/lib
/bin/sh ../support/shlib-install -O linux-gnu -V pc -d /usr/local/lib -b /usr/local/bin -i "/usr/bin/install -c -m 644" libhistory.so.6.1
/bin/sh ../support/shlib-install -O linux-gnu -V pc -d /usr/local/lib -b /usr/local/bin -i "/usr/bin/install -c -m 644" libreadline.so.6.1
install: you may need to run ldconfig
make[1]: Leaving directory `/home/Alan/readline-6.1/shlib'
note: the second to last line in the output says: "you may need to run ldconfig".

I'm a noob to the whole linux world and I don't know what to do (though I have tried running ldconfig and with no luck). Any suggestions/ideas/directions would be greatly appreciated!

Thank you very much!
 
Old 07-22-2010, 10:20 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,899

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

readline is installed under /usr/local. You can add /usr/local/lib in /etc/ld.so.conf and run ldconfig.
Before trying to compile the other application you can use:
Code:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
so its aware of the presence of needed libraries in /usr/local/lib

Regards
 
1 members found this post helpful.
Old 07-22-2010, 02:55 PM   #3
twaddlac
Member
 
Registered: Jun 2010
Posts: 34

Original Poster
Rep: Reputation: 0
It's still not working and I'm getting the same error message. Should I run ldconfig as the report says? If so, how do I that?
 
Old 07-22-2010, 03:25 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,899

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
It's not an error message, just a reminder. I've already told you what you have to do prior running ldconfig
Did you try to compile the other application and see what happens?
 
Old 07-26-2010, 09:03 AM   #5
twaddlac
Member
 
Registered: Jun 2010
Posts: 34

Original Poster
Rep: Reputation: 0
Yes I did try to compile it and it was still acting the same. Am I supposed to type it EXACTLY as you said or are do I need to substitute the actual path to where the library is located for LD_LIBRARY_PATH?

Also, word of mouth has it that the program I am trying to install requires readline.so.6 and I have version 5. I don't know if that's what's causing the program to not compile but it's something to keep in mind!

Thanks again!
 
Old 07-26-2010, 11:42 AM   #6
twaddlac
Member
 
Registered: Jun 2010
Posts: 34

Original Poster
Rep: Reputation: 0
A simple restart and the command made everything work! Thank you very much for your help!
 
  


Reply

Tags
centos5, readline


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Readline command issue... ddenton Linux - General 8 05-16-2010 11:10 PM
Where is readline on Linux? endfx Linux - Software 4 02-06-2008 01:43 PM
Using cat readline within cat readline while loop demxkn66 Programming 5 12-16-2007 05:10 PM
Installing the latest version of octave readline libraries missing matuk_444 Ubuntu 1 08-02-2007 10:12 PM
readline compile feetyouwell Programming 1 10-06-2004 06:01 PM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration