Closed StrangeTcy closed 6 years ago
I would assume that you need to install boost regex lib. I'm surprised that cmake didn't detect that, it should according to https://github.com/opencog/moses/blob/master/CMakeLists.txt#L141
Can you paste cmake's output before installing boost regex?
BTW, we typically do not compile with root privilege, only install with it. But I don't think it is the cause of your problem, if it is, then it's a bug.
To the best of my knowledge, I have all boost libs installed (that is, I have installed the libboost-all-dev
package from Ubuntu repositories). Still, I should check for the regex lib specifically.
Anyway, just running cmake
outputs this:
-- Build type: Release
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- program_options
-- regex
-- serialization
-- system
-- thread
-- chrono
-- atomic
-- Boost version 105800 found.
-- Found Boost::program_options
-- Found Boost::math
-- Found CxxTest.
-- Found CogUtil version 2.0.2 at /usr/local/lib/libcogutil.so
-- CogUtil found.
-- MPI was found.
-- Valgrind Prefix:
-- VALGRIND was found.
-- VALGRIND devel headers found.
-- Python libs found.
-- Cython ( 0.23.4 >= 0.19.0) found.
-- Python destination dir found: /usr/lib/python2.7/dist-packages
fatal: No names found, cannot describe anything.
CMake Warning (dev) at CMakeLists.txt:338 (ADD_CUSTOM_TARGET):
Policy CMP0037 is not set: Target names should not be reserved and should
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
The target name "test" is reserved or not valid for certain CMake features,
such as generator expressions, and may result in undefined behavior.
This warning is for project developers. Use -Wno-dev to suppress it.
The following components will be built:
-----------------------------------------------
ComboReduct - Library for reduction of combo program trees.
Doxygen - Code documentation.
Feature selection - MOSES based feature selection tool.
MOSES - Meta-Optimizing Semantic Evolutionary Search.
Python bindings - Python (cython) bindings.
Unit tests - Unit tests.
The following components WILL NOT be built:
-----------------------------------------------
Python tests - Python bindings nose tests.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/me/opencog/moses/build
So it'd seem that cmake
does find all the boost libraries necessary, and then, for some reason, make
fails to use it.
Actually, I'm having the same problem with Ubuntu 17.10. Will look into that tomorrow.
Yep, that seems to have solved it. Thanks!
A freshly cloned moses repo fails to be made. The system used is Ubuntu 16.04 x64, the exact line was
sudo make
, and the result was as follows: