Cmake cannot find openbabel

I found sevral older posts about this topic, but none of the remedies suggested seem to work. I tried to install Avogdro on two different Linux boxes:

CentOS Linux release 7.3.1611 (Core)
Mint (VERSION=“14.04.1 LTS, Trusty Tahr”)

In both cases, cmake fails with

CMake Error at cmake/modules/FindOpenBabel2.cmake:69 (message):
Could NOT find OpenBabel 2.3 or later

I installed obenbabel from the repositories (epel in the case of CentOS), so it should be properly registered:
[root]# yum install openbabel

Package openbabel-2.3.2-2.el7.x86_64 already installed and latest version

… and similarly for the Mint package manager.

Any ideas?


Do you have pkg-config installed? We used this with Avogadro to assist in finding packages (e.g. Open Babel) because it used to be standard on almost all Linux systems.

If not, you can manually set the path to Open Babel headers.

Hi Geoff,
Thanks. The mentioning of “headers” pointed me in the right direction: It is actually openbabel-devel that needs to be installed, not just openbabel. It compiled now!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.