Search code examples
glmpymol

how to solve the glm problem when installing pymol?


I am trying to install pymol in CentOS 7 system. I installed the dependency glm-devel-0.9.6.3-1.el7.noarch by yum:

sudo yum install glm-devel.

During compiling I got an error related to glm as following:

layer1/SceneView.cpp:34:61: error: no matching function for call to ‘equal(const vec3&, const vec3&, float)’

Could anyone tell why this error appears? I will appreciate any help!

Best regards.


Solution

  • install pymol in CentOS 7

    Build example with updated glm-devel

    # yum install mmtf-cpp-devel.x86_64 glew-devel.x86_64 libpng-devel freetype-devel msgpack-devel libxml2-devel python36-qt5-devel.x86_64  freeglut-devel mesa-libGL-devel.x86_64 python3-devel
    
    # yum install ./glm-devel-0.9.9.6-6.el7.noarch.rpm
         ## works with the default python3 (3.6.8) and g++ -4.8.5
    

    Link, glm-devel-0.9.9.6-6.el7 https://drive.google.com/file/d/1BXygEWqpvlbZg867dsXuW47T67Z0V0Q8/view?usp=sharing

    https://github.com/schrodinger/pymol-open-sourcehttps://github.com/schrodinger/pymol-open-source/blob/master/INSTALL

    git clone https://github.com/schrodinger/pymol-open-source.git
    cd pymol-open-source/
    python3 setup.py build
    
    # python3 setup.py install
    
    pymol       ## the pymol GUI opens OK
    

    There is also a binary version available, with python 3.7 included : https://pymol.org/2/https://pymol.org/installers/PyMOL-2.5.2_293-Linux-x86_64-py37.tar.bz2tar xvf PyMOL-2.5.2_293-Linux-x86_64-py37.tar.bz2

    cd pymol/ && ./pymol