Skip to content

Instantly share code, notes, and snippets.

@filipsPL
Created July 7, 2020 08:11
Show Gist options
  • Save filipsPL/79da3606530545f7d032dbf7bc5567c9 to your computer and use it in GitHub Desktop.
Save filipsPL/79da3606530545f7d032dbf7bc5567c9 to your computer and use it in GitHub Desktop.
Installing pymol from sources under Ubuntu 20.04 LTS

Single time procedure

sudo apt-get install git build-essential python3-dev libglew-dev \
   libpng-dev libfreetype6-dev libxml2-dev \
   libmsgpack-dev python3-pyqt5.qtopengl libglm-dev libnetcdf-dev freeglut3-dev

pip3 install PyQt5

git clone --depth=1 https://github.com/schrodinger/pymol-open-source.git

cd pymol-open-source

git clone --depth=1 https://github.com/rcsb/mmtf-cpp.git
cd mmtf-cpp
git pull
cd ..
cp -r mmtf-cpp/include/mmtf* include/

Update/compile

This procedure can be executed to update and (re)compile pymol

cd pymol-open-source


cd mmtf-cpp
git pull
cd ..
cp -r mmtf-cpp/include/mmtf* include/

# pymol

git pull

prefix=$HOME/progs/pymol-open-source-build
rm -rf build $prefix

mkdir -p $prefix

python3 setup.py install --home=$prefix
#python3 setup.py --glut install --home=$prefix
@tiendu
Copy link

tiendu commented May 17, 2023

Install freetype from conda if anyone faces the problem of ft2build.h.

mamba install -c anaconda freetype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment