环境
Rocky Linux release 8.5
anaconda
dnf install freeglut-devel
dnf install -y mesa-dri-drivers
编译
git clone https://github.com/schrodinger/pymol-open-source.git
git clone https://github.com/rcsb/mmtf-cpp.git
mv mmtf-cpp/include/mmtf* pymol-open-source/include/
cd pymol-open-source
source /opt/app/anaconda/bin/activate
conda create -n pymol python=3.10
conda activate pymol
conda install -c anaconda netcdf4
conda install conda-forge::glm
conda install conda-forge::glew
conda install anaconda::libxml2
conda install conda-forge::freetype
conda install conda-forge::mesalib
pip install Pmw
export prefix=/opt/app/pymol
pip install Mesa
conda install conda-forge::freetype
pip install PyGLM
pip install PyGlew
pip install -U omicverse
python setup.py build install --home=$prefix --glut
/opt/app/pymol/bin/pymol