CMake was unable to find CityHash


I am trying compile 15.7 on CentOS 6.7, but when I run ‘./ setup’, I get an error is as follows:

CMake Error at cmake/Modules/FindCityHash.cmake:29 (message):
  CMake was unable to find CityHash
Call Stack (most recent call first):
  CMakeLists.txt:270 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/scidb/SciDB/scidbtrunk/stage/build/CMakeFiles/CMakeOutput.log". ERROR: Command setup failed: Abnormal return code: 1 on command ['cmake', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DCMAKE_INSTALL_PREFIX=/opt/scidb/15.7', '/home/scidb/SciDB/scidbtrunk'] ERROR: Make sure commands setup,make,install,start are performed (in that order) before stop,stopForce,tests

What can I do to solve this problem?


Did you first run "deployment/ prepare_toolchain " ?
That should have created an /opt/scidb/15.7/3rdparty/cityhash directory which is what FindCityHash is looking for.


I have already run "deployment/ prepare_toolchain ",but, it doesn`t work. So, lastly, I install the cityhash solely, the problem was fixed.


Can you please tell how you installed cityhash solely? I am trying to install SciDB and I am stuck because of this problem.


download cityhash at,then install it

./configure \
--prefix=/opt/scidb/15.7/3rdparty/cityhash \
--sysconfdir=/opt/scidb/15.7/3rdparty/cityhash \
--includedir=/opt/scidb/15.7/3rdparty/cityhash/include/cityhash \
--bindir=/opt/scidb/15.7/3rdparty/cityhash/bin \
--libdir=/opt/scidb/15.7/3rdparty/cityhash/lib \
--datarootdir=/opt/scidb/15.7/3rdparty/cityhash/share \
--datadir=/opt/scidb/15.7/3rdparty/cityhash/share \
--mandir=/opt/scidb/15.7/3rdparty/cityhash/share/man \
--docdir=/opt/scidb/15.7/3rdparty/cityhash/share/doc \
--htmldir=/opt/scidb/15.7/3rdparty/cityhash/share/doc \
 CFLAGS="-g -O3" \
 CXXFLAGS="-g -O3"
 sudo make install

after the completion, you will find cityhash dirctory in /opt/sicdb/15.7/3rdparty


Thank you! I got cityhash installed as per your steps. However, now the ./ setup command is giving the following error:
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message):
Unable to find the requested Boost libraries.

Boost version: 1.54.0

Boost include path: /opt/scidb/15.12/3rdparty/boost

Could not find the following Boost libraries:


No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Call Stack (most recent call first):
CMakeLists.txt:270 (find_package)

CMake Error at CMakeLists.txt:273 (message):
Could not find any version of boost (1.54 required)

I have installed boost at that location /opt/scidb/15/12/3rdparty/boost. And the boost folder and libs folder contain the above mentioned packages. Did anyone face this issue?