CMake was unable to find CityHash


#1

I am trying compile 15.7 on CentOS 6.7, but when I run ‘./run.py 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".
run.py: 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']
run.py: 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?


#2

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


#3

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


#4

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


#5

download cityhash at https://downloads.paradigm4.com/centos6.3/3rdparty_sources/cityhash-1.1.1.tar.gz,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"
  
 make
  
 sudo make install

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


#6

Thank you! I got cityhash installed as per your steps. However, now the ./run.py 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:

      boost_system
      boost_program_options
      boost_serialization
      boost_regex
      boost_filesystem
      boost_thread
      boost_date_time

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
Boost.
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?