42_EXAM icon indicating copy to clipboard operation
42_EXAM copied to clipboard

Readline installation

Open egepaksoy opened this issue 2 years ago • 10 comments

I get can't install readline library error. How to install manually or fix it. I'm currently on Ubuntu.

egepaksoy avatar Feb 12 '23 16:02 egepaksoy

Hi, You can use this command on Ubuntu : sudo apt-get install libreadline6 libreadline6-dev

JCluzet avatar Feb 12 '23 17:02 JCluzet

Hello! I have the same problem with installing readline library. When I use sudo apt-get install libreadline6 libreadline6-dev it gives me an error

E: Unable to locate package libreadline6

As I understood this package is not available for Ubuntu 18.04, as it ships with libreadline5 and libreadline7. I tried to create a symlink from libreadline7 to libreadline6 as a workaround with this code, but it didn't help. What can I do? :)

$ cd /lib/x86_64-linux-gnu/
$ sudo ln -s libreadline.so.7.0 libreadline.so.6

Captain-Deer avatar Feb 16 '23 12:02 Captain-Deer

Hi, Did you try to do the command sudo apt-get update && sudo apt-get upgrade ?

JCluzet avatar Feb 16 '23 12:02 JCluzet

Yeah, but it still doesn't work. I fixed this problem E: Unable to locate package libreadline6 by installing libreadline6 manually from here (http://archive.ubuntu.com/ubuntu/pool/main/r/readline6/libreadline6_6.3-8ubuntu2_amd64.deb)

However, when I run the exam, it checks the readline library and doesn't find it.

Can't install readline library... Please install it manually or write an Issue on Github...
make: *** [Makefile:23: grade] Error 1

No chance of preparing for the exam from home :(

Captain-Deer avatar Feb 16 '23 14:02 Captain-Deer

I have the same problem here when try to start GradeMe from home, I tried every solutions up there but nothing works

HugoDdev avatar Feb 21 '23 11:02 HugoDdev

I have the same issue. That's weird, because it works fine on my second machine, also ubuntu

yastchurka avatar Mar 21 '23 22:03 yastchurka

Hi 👋🏼

Do you have the c++ compiler ? (clang++ or g++ )

JCluzet avatar Mar 21 '23 23:03 JCluzet

Hey, Thanks for the reply. Yes I do. My problem doesn't differ much from the one already mentioned on github (readline library). It seems to me there is a problem related to dependencies of the library. However on the other machine I have (also Ubuntu), everything works. There I use gcc compiler and looks like different version of the library was installed. So far I can't tell much more. I'll investigate further and answer in github, if I won't give up.

All the best! Radek

22.03.2023 00:10:47 JCluzet @.***>:

Hi 👋🏼

Do you have the c++ compiler ? (clang++ or g++ )

— Reply to this email directly, view it on GitHub[https://github.com/JCluzet/42_EXAM/issues/89], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AZEQQAKMIIWM2QHJSIPEDC3W5IYPDANCNFSM6AAAAAAUZNGLDQ]. You are receiving this because you commented.[Verfolgungsbild][https://github.com/notifications/beacon/AZEQQAKHB6ZIBHMYD4DEMG3W5IYPDA5CNFSM6AAAAAAUZNGLDSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSYENNXG.gif]

yastchurka avatar Mar 22 '23 11:03 yastchurka

Alright, I managed to make it work. First of all I removed and purged readline library, then I removed the old compiler, switched to cc and then I installed readline again with sudo apt-get install libreadline-dev. I think there was a problem with conflicting dependencies. Also i think I tried to install the old version of the library. 8.1.2 is the newest at the moment.

yastchurka avatar Mar 25 '23 14:03 yastchurka

I had the same problem on Ubuntu 22.10

Turns out some dependencies for the compiler were missing. sudo apt install build-essential will install the compiler and other tools that you may need for building software from source.

nunom4chado avatar Apr 03 '23 15:04 nunom4chado