Bitnami - / opt / bitnami / python / bin / .python2.7.bin: error loading shared libraries: libreadline.so.5

I get the following problem when starting django or ipython notebook

/opt/bitnami/python/bin/.python2.7.bin: Error loading shared libraries: libreadline.so.5

However, libreadline.so.5 exists on my system after it is hosted, as shown below.

root @linux: / opt / bitnami / scripts # find libreadline.so.5 /opt/bitnami/common/lib/libreadline.so.5 /opt/bitnami/common/lib/libreadline.so.5.2

I also exported the path to the environment variable (where libreadlive.so.5 is located), but it doesn't seem to solve my problem (see below)

export LD_LIBRARY_PATH = $ {LD_LIBRARY_PATH}: $ HOME / opt / bitnami / common / lib

There is also a script provided by bitnami, which is located in /opt/bitnami/scripts/setenv.sh. But even after doing it, I'm still stuck.

Anyone can help me with this.

+4
source share
1 answer

Can you do the following and see if it solves your problem?

./opt/bitnami/scripts/setenv.sh

(note the space between the dot and the outline of the script)

And what do you do that gives you this error?

+7
source

Source: https://habr.com/ru/post/1438834/


All Articles