LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems Installing readline.so.6 (https://www.linuxquestions.org/questions/linux-software-2/problems-installing-readline-so-6-a-821507/)

twaddlac 07-22-2010 09:51 AM

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!:newbie:

bathory 07-22-2010 10:20 AM

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

twaddlac 07-22-2010 02:55 PM

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?

bathory 07-22-2010 03:25 PM

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?

twaddlac 07-26-2010 09:03 AM

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!

twaddlac 07-26-2010 11:42 AM

A simple restart and the command made everything work! Thank you very much for your help!


All times are GMT -5. The time now is 01:18 AM.