Red language console error: libreadline.so.6: cannot open shared object file
Asked Answered
O

3

5

I'm new to the Red programming language.

I tried to test it by downloading the Linux binary. But when I execute it on the console, I get an error that says:

root@xxx-linux:/home/xxx/Downloads# ./red-042
Pre-compiling Red console...
/tmp/red/console: error while loading shared libraries:
libreadline.so.6: cannot open shared object file: No such file or directory

I searched on Google for this error, but couldn't find anything.

My operating system is 64-bit Linux Ubuntu 14.04 LTS

Ostensorium answered 2/6, 2014 at 11:23 Comment(0)
O
9

I succeeded to make it work using this command on Ubuntu, which installs 32bit "multilib" version of libreadline:

sudo apt-get install libreadline6:i386
Ostensorium answered 2/6, 2014 at 12:13 Comment(0)
S
3

32bit version of libreadline is required. There is already work to replace this dependency here https://github.com/qtxie/red/tree/new-console but it was not merged to the master yet.

Savonarola answered 2/6, 2014 at 11:50 Comment(0)
J
0

I also came across this issue after upgrading to 64 bit Ubuntu 18.04, and after spending some time looking into the issue I found that after upgrade libreadline package was missing, so I installed libreadline package using

sudo apt-get install libreadline-dev

But this also didn't solve my problem. Then I figured out that it installed the upgraded version of the libreadline package i.e libreadline.so.7.0. As a workaround I created its symlink so I can continue my work with libreadline.so.6.

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

And this worked wonders and my problem with libreadline package was solved.

Jaquiss answered 11/2, 2020 at 13:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.