Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running boost bcp tool: "The Boost path appears to have been incorrectly set"

Tags:

c++

boost

Trying to run Boost's bcp tool, I get the following error:

**** exception(205): std::runtime_error: The Boost path appears to have been incorrectly set: could not find boost/version.hpp in 
******** errors detected; see standard output for details ********

The error message appears exactly as above, with the path it tries to search empty. I have tried solving it by setting the BOOST_ROOT environment variable, but the same error comes back, and the searched path is still empty. The system is Mac OS X 10.9.1.

like image 366
Balthazar Avatar asked Jan 04 '14 00:01

Balthazar


1 Answers

OK, I solved it by adding the following command line option:

--boost=/path/to/boost_directory

Naively I had assumed bcp would find this directory in an environment variable that was supposed to be set, because most of the examples in the documentation didn't include the option. Now I see in the docs that if the option is not specified, "then the current path is assumed to be the root directory of the Boost tree".

http://www.boost.org/doc/libs/1_55_0/tools/bcp/doc/html/index.html#bcp.syntax.options

like image 56
Balthazar Avatar answered Sep 21 '22 23:09

Balthazar