Error while loading shared libraries:

I'm trying to run the command sudo pip install --upgrade virtualenv, but I keep receiving the following error:

/opt/bitnami/python/bin/.python2.7.bin: error while loading shared libraries: cannot open shared object file: No such file or directory

I've attempted to use the recommendation on this link [Bitnami - /opt/bitnami/python/bin/.python2.7.bin: error while loading shared libraries:](Bitnami - /opt/bitnami/python/bin/.python2.7.bin: error while loading shared libraries: and no prevai), but it was not helpful.

Why do I receive the error?


I figured this out.

  1. You have to be in the root level by issueing the sudo su command.

  2. Now while in root level run the following command . /opt/bitnami/scripts/

  3. I'm loggin into my server using SSH, apparently I have to follow the same steps every session.

installing virtualenv using pip installs it in bitnami stack hence to use virtualenv we need to execute shell script this script gives powers to virtualenv but we need to run it everytime so better to install virtualenv in root of the system using sudo apt-get

install virtualenv in root

sudo apt-get install python-virtualenv

So while maplesyrup's answer is good, I have found a solution that works better in practice.

Run sudo echo '. /opt/bitnami/scripts/' >> /opt/bitnami/.bitnamirc

This will append the script call in maplesyrup's answer, but then it will be called at every logon. The only downside is you have to enter your password immediately after logging in through ssh, but it is much better than having to manually call the script each time you login.

The required file is not in directory. usually this happened because the update which replaced the certain version of the file and with the newer version (e.g. replaced by to fix this, first you should check the library directory (/usr/lib) if a version version of the file is exist then you can create a link to that that file named with the file that is missing.

the following example is creating a link named with the missing file ( that linked to but be CAREFULL because this might cause your terminal unable to get input if the certain* is lost

cd /usr/lib
ln -sf -T

this solution works for me.

Need Your Help

Using SNMP4J to retrieve MIB info over TCP instead of UDP

tcp udp snmp snmp4j pdu

Using the SNMP4J library I am able to successfully retrieve information from multiple agents using SNMP over UDP. I am running into a situation where I need to retrieve information from an agent us...