Thursday, February 22, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  6] [ 0]  / answers: 1 / hits: 2460  / 12 Months ago, sat, april 1, 2023, 3:38:25

I am trying to build cint from sources on Ubuntu 12.04. However it complains about libreadline:

~/Desktop/cint-5.18.00 » ./configure      
Guessing architecture to be linuxx8664gcc
Using current CINT core
Please install the package "libreadline or [lib]readline-dev[el]"!

I have libreadline6, libreadline-dev and libreadline6-dev installed. What should I do?


Using --readlinelib option below I am able to run configure, make and make install:


But when I try to run it I get:

~/Desktop/cint-5.18.00 » cint
cint: error while loading shared libraries: cannot open shared object file: No such file or directory


More From » 12.04


  • Search for shared lib using using:


    Then run configure with --readlinelib option:

    ./configure --readlinelib=/lib/x86_64-linux-gnu/ --prefix=/usr/local
    sudo make install

  • If cint couldn't find the shared lib

    sudo ln /usr/local/lib/ /usr/lib/

    or you may add /usr/local/lib to ld load path:

    sudo echo "/usr/local/lib" >> /etc/
    sudo ldconfig

    But keep in mind this not recommended, Local installed lib's may conflict with Distribution installed libs. So make links instead if you get such problems.

  • If it didn't work. There are multiple readline lib versions. see if they work.

    If your OS is 64bit install:

    sudo apt-get install lib64readline6-dev:i386

    I have checked it and it does work. Otherwise check the other one of 32bit:

    sudo apt-get install lib32readline6-dev

[#27436] Saturday, April 1, 2023, 12 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 212
Total Questions: 118
Total Answers: 120

Location: Dominica
Member since Mon, Jun 22, 2020
4 Years ago