[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

python not working on RHEL6

On Wed, Oct 3, 2018 at 12:01 AM <mchathuranga4 at gmail.com> wrote:
> Hi All,
> I'm a beginner on this. I was trying to install a new python version which is 2.7.5. My OS(RHEL6) had already installed version 2.6. so I downloaded the tar and unzipped it then executed
> ./configure --prefix=/usr       \
>             --enable-shared     \
>             --with-system-expat \
>             --with-system-ffi   \
>             --enable-unicode=ucs4 &&
> make
> afterwards
> sudo make install &&
> sudo chmod -v 755 /usr/lib/libpython2.7.so.1.0

Not sure what the point of the chmod is, but whatever. I don't think
it's breaking anything.

> http://www.linuxfromscratch.org/blfs/view/7.4/general/python2.html This is what I followed and which got me here.
> everything was successfully finished.
> afterwards when I type python in the terminal I get below error:
> python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

What happens if you type "python2.6" or "python2.7"?