Dear Pymol users,

I have encountered a problem while trying to install pymol from the source code on Centos 7.

I am running the following script for installation:

*****

#!/bin/bash -e
 
prefix=/home/christos/PROGRAMS/PYMOL/OPEN-SOURCE/pymol
modules=$prefix/modules
 
python setup.py build install \
    --home=$prefix \
    --install-lib=$modules \
    --install-scripts=$prefix

****

and I get the following error:

*********************************************

python2.7 -o build/lib.linux-x86_64-2.7/pymol/_cmd.so
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1

******************************************

I have been unable to overcome this problem. I think it is related with the fact that I installed NVIDIA drivers on my system but cannot be sure. 

Does anyone have any suggestions regarding the error I am getting?

I have installed all but one dependencies with the command:

 yum install subversion gcc gcc-c++ kernel-devel python-devel tkinter python-pmw glew-devel freeglut-devel libpng-devel freetype-devel

The package python-pmw was not found so I had to manually install that one.

I also tried to do

yum install pymol 

however there was no pymol package available.

Is there a repository for centos 7 that includes pymol?

Thank you for considering my problem,

Christos Deligkaris, PhD
Assistant Professor of Physics, Drury University
900 N Benton Ave, Springfield MO, 65802
Office Phone: (417) 873-7234
www2.drury.edu/christos @DeligkarisGroup +ChristosDeligkaris