# Error in readline installing new

**URL:** <https://forum.mothur.org/t/error-in-readline-installing-new/883>\
**Category:** mothur bugs\
**Created:** [April 30, 2012, 4:19pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883 "2012-04-30T16:19:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgia](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@georgia](https://forum.mothur.org/u/georgia)\
**Post date:** [April 30, 2012, 4:19pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/1 "2012-04-30T16:19:21Z")

</div>

I downloaded 1.24.1 as an executable for Linux and attempted to install in in Ubuntu. I get the message “./mothur: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory” when trying to run. I get it in both 32 and 64 bit. The executable without readline works fine. I assume this is because I am running readline6, so the .5 file is replaced by a .6?

Trying to compile from source, I get the following:

georgia@georgia-U56E:~/mothur/Mothur.source$ make  
gfortran -c -m64 \*.f  
g++ -O3 -mtune=native -march=native -m64 -DBIT\_VERSION -DRELEASE\_DATE="“3/16/2012"” -DVERSION="“1.24.1"” -DMOTHUR\_FILES=""/home/georgia/mothur"" -DUSE\_READLINE -I. -c -o ace.o ace.cpp  
In file included from calculator.h:5:0,  
from ace.h:16,  
from ace.cpp:10:  
mothur.h:66:33: fatal error: readline/readline.h: No such file or directory  
compilation terminated.

Which I assume is related to the above error. I really love using readline in interactive mode, would like to see this fixed 🙂

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [May 1, 2012, 1:09pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/2 "2012-05-01T13:09:22Z")

</div>

It seems mothur is not able to find where you have readline installed on your machine. Can you tell me what “apt-file search readline/readline.h” returns?

---

<div class="post-metadata">

**Author:** ![georgia](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@georgia](https://forum.mothur.org/u/georgia)\
**Post date:** [May 3, 2012, 12:39pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/3 "2012-05-03T12:39:22Z")

</div>

guile-1.6-dev: /usr/include/guile-readline/readline.h  
libreadline-gplv2-dev: /usr/include/readline/readline.h  
libreadline6-dev: /usr/include/readline/readline.h

---

<div class="post-metadata">

**Author:** ![FM\_Kerckhof](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/fm_kerckhof/32/32_2.png) [@FM\_Kerckhof](https://forum.mothur.org/u/FM_Kerckhof)\
**Post date:** [July 12, 2012, 7:05pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/4 "2012-07-12T19:05:18Z")

</div>

I am experiencing the same problem with the install of the new mothur 1.26 whereas I never had this problem before.  
I am running mothur on a 64 bit 24-core system with Ubuntu 12.04 LTS server installed.  
The result of apt-file search readline/readline.h is:

guile-1.6-dev: /usr/include/guile-readline/readline.h  
libreadline-gplv2-dev: /usr/include/readline/readline.h  
libreadline6-dev: /usr/include/readline/readline.h

this is the same output as Georgia

How do I resolve this issue?

---

<div class="post-metadata">

**Author:** ![FM\_Kerckhof](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/fm_kerckhof/32/32_2.png) [@FM\_Kerckhof](https://forum.mothur.org/u/FM_Kerckhof)\
**Post date:** [July 12, 2012, 7:37pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/5 "2012-07-12T19:37:51Z")

</div>

You can mark this issue as resolved: after digging somewhat deeper I found out that although there apparently are links to the readline.h it wasn’t there.  
I found out that I didn’t have the libreadline-dev installed. I had it previously installed on ubuntu 11.10 (former OS of the server) and somehow it got removed when updating to 12.04 LTS without removing the links I guess (my best guess, wouldn’t know how I was ever able to compile mothur 1.24 from source if this was not the case).

So after executing apt-get install libreadline-dev the installation didn’t give the issue anymore.

Sorry for bothering you all.  
I hope this post might help other people with the same question as me resolve this issue in the future.

Kind regards,

Frederiek - Maarten Kerckhof

---

<div class="post-metadata">

**Author:** ![FM\_Kerckhof](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/fm_kerckhof/32/32_2.png) [@FM\_Kerckhof](https://forum.mothur.org/u/FM_Kerckhof)\
**Post date:** [July 12, 2012, 7:46pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/6 "2012-07-12T19:46:39Z")

</div>

I’m sorry

I guess I spoke too soon: the compilation from source code continues until -lncurses cannot be found:

(…) stxwx.o -lreadline -lncurses  
/usr/bin/ld: cannot find -lncurses  
collect2: ld returned 1 exit status  
make: \*\*\* [mothur] Error 1

I fail to find any information regarding -lncurses

all suggestions on solving this problem are very welcome

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [July 13, 2012, 1:07pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/7 "2012-07-13T13:07:18Z")

</div>

Do you have ncurses installed?

---

<div class="post-metadata">

**Author:** ![FM\_Kerckhof](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/fm_kerckhof/32/32_2.png) [@FM\_Kerckhof](https://forum.mothur.org/u/FM_Kerckhof)\
**Post date:** [July 13, 2012, 3:59pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/8 "2012-07-13T15:59:15Z")

</div>

Hi,

Thank you for your reply.  
I’m not quite sure if I have ncurses installed.  
As I am saying, when compiling mothur 1.24 from source I never experienced any issue however I switched the OS on my server from ubuntu server 11.10 to 12.04 LTS.  
When I tried sudo apt-get install ncurses I get the following output:  
Package ncurses is not available, but is referred to by another package.  
This may mean that the package is missing, has been obsoleted, or  
is only available from another source

E: Package ‘ncurses’ has no installation candidate

If anyone knows how to install the correct package refering to ncurses, feel free to let me know (i have a 64-bit system).

Kind regards,

Frederiek - Maarten Kerckhof

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [July 13, 2012, 4:55pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/9 "2012-07-13T16:55:04Z")

</div>

Not sure about 12.04, but I found this link with a similar issue and resolution:

> <https://stackoverflow.com/questions/5961062/couldnt-find-package-libncurses5-dev>

---

<div class="post-metadata">

**Author:** ![FM\_Kerckhof](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/fm_kerckhof/32/32_2.png) [@FM\_Kerckhof](https://forum.mothur.org/u/FM_Kerckhof)\
**Post date:** [July 13, 2012, 6:31pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/10 "2012-07-13T18:31:43Z")

</div>

Sarah,

Thank you very much!  
lib64ncurses5-dev solved the issue.  
Mothur 1.26 is up and running and I immediately could make use of the new get.coremcrobiome for my upcoming paper (which will, of course, include proper referencing to Mothur).

Kind regards,

Frederiek - Maarten Kerckhof  
Laboratory of microbial ecology and technology (LabMET), Ghent University, Belgium  
[http://www.labmet.ugent.be](http://www.labmet.ugent.be)  
[frederiekmaarten.kerckhof@ugent.be](mailto:frederiekmaarten.kerckhof@ugent.be)

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [January 24, 2014, 8:36pm UTC](https://forum.mothur.org/t/error-in-readline-installing-new/883/11 "2014-01-24T20:36:17Z")

</div>

[http://www.mothur.org/wiki/How\_to\_Resolve\_Readline\_Issues](http://www.mothur.org/wiki/How_to_Resolve_Readline_Issues)
