Molecule Tutorials - Herong's Tutorial Examples - v1.21, by Dr. Herong Yang
Compile PyMol Source Code
This section provides a tutorial on how to download PyMol open source edition source code and compile it on macOS. Compilation failed with 'GL/glew.h' file not found.
If you want to install the open source edition of PyMol from source code, you can try these steps:
1. Go to PyMol GitHub repository at github.com/schrodinger/pymol-open-source.
2. Click "Clone or Download > Download ZIP". A ZIP file will be downloaded and unzip in your ~/Download directory.
3. Go to downloaded source directory ~/Download/pymol-open-source-master. And verify source code files.
4. Run the following command to try to compile the code:
herong$ cd ~/Download/pymol-open-source-master herong$ python setup.py install --prefix=~/pymol running install running build running build_py running build_ext building 'pymol._cmd' extension cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 ... c++ -std=c++11 -arch x86_64 -arch i386 -pipe -D_PYMOL_LIBPNG ... layer0/os_gl.h:68:9: fatal error: 'GL/glew.h' file not found #include<GL/glew.h> ^~~~~~~~~~~ 1 error generated. ...
Obviously, the compilation process failed. It looks like missing some required package. I will check on this later.
Table of Contents