Installation error during "make"

84 views
Skip to first unread message

Lorenzo Pietrangeli

unread,
Jul 3, 2012, 9:03:16 AM7/3/12
to ukb...@googlegroups.com
Hello,
I'm trying to install ukb-0.1.6, but on the stdout I got the follow error:

g++ -c -O3 -Wall -Wno-deprecated -o globalVars.o -I /opt/boost_1_50_0/ globalVars.cc

g++ -c -O3 -Wall -Wno-deprecated -o fileElem.o -I /opt/boost_1_50_0/ fileElem.cc
fileElem.cc: In function ‘std::string ukb::path_string(const boost::filesystem::path&)’:
fileElem.cc:20: error: ‘const class boost::filesystem::path’ has no member named ‘file_string’
fileElem.cc: In function ‘std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > ukb::extract_input_files(const std::string&, const std::string&)’:
fileElem.cc:56: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
fileElem.cc: In function ‘bool ukb::exists_file(const std::string&)’:
fileElem.cc:78: error: invalid conversion from ‘bool (*)(const std::string&)’ to ‘void*’
fileElem.cc:78: error:   initializing argument 2 of ‘boost::filesystem::path::path(const Source&, typename boost::enable_if<boost::filesystem::path_traits::is_pathable<typename boost::decay<T>::type>, void>::type*) [with Source = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’
fileElem.cc: In function ‘std::string ukb::basename(const std::string&)’:
fileElem.cc:91: error: invalid conversion from ‘bool (*)(const std::string&)’ to ‘void*’
fileElem.cc:91: error:   initializing argument 2 of ‘boost::filesystem::path::path(const Source&, typename boost::enable_if<boost::filesystem::path_traits::is_pathable<typename boost::decay<T>::type>, void>::type*) [with Source = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’
fileElem.cc:93: error: conversion from ‘boost::filesystem::path’ to non-scalar type ‘std::string’ requested
fileElem.cc: In member function ‘void ukb::File_elem::fill(const std::string&)’:
fileElem.cc:136: error: conversion from ‘boost::filesystem::path’ to non-scalar type ‘std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ requested
fileElem.cc: In function ‘std::string ukb::dir_string(const Dir&) [with Dir = boost::filesystem::directory_entry]’:
fileElem.cc:62:   instantiated from here
fileElem.cc:30: error: ‘const class boost::filesystem::path’ has no member named ‘file_string’

/opt/boost_1_50_0/boost/system/error_code.hpp: At global scope:
/opt/boost_1_50_0/boost/system/error_code.hpp:214: warning: ‘boost::system::posix_category’ defined but not used
/opt/boost_1_50_0/boost/system/error_code.hpp:215: warning: ‘boost::system::errno_ecat’ defined but not used
/opt/boost_1_50_0/boost/system/error_code.hpp:216: warning: ‘boost::system::native_ecat’ defined but not used
make: *** [fileElem.o] Error 1

What can I do?

Further details:
  • MacOsX Lion
  • Boost 1.50.0

Aitor Soroa

unread,
Jul 3, 2012, 12:30:53 PM7/3/12
to ukb...@googlegroups.com
Hi Lorenzo,

On Tue, Jul 03, 2012 at 06:03:16AM -0700, Lorenzo Pietrangeli wrote:
> Hello,
> I'm trying to install ukb-0.1.6, but on the stdout I got the follow error:
>
> ...
>
> make: *** [fileElem.o] Error 1
>
> What can I do?
>
> Further details:
>
> - MacOsX Lion
> - Boost 1.50.0

the problem is in the boost version. You have several options:

- use boost version 1.43 or less

- get the ukb source code from github:

https://github.com/asoroa/ukb

check out the v0.1.6r2 tag and compile this version.

you can also compile the last version of the source code (which
corresponds to ukb 2.0. I expect to 'oficially' launch version 2.0 in a
few days, but in the meantime you have the source code there).

best,
aitor

Lorenzo Pietrangeli

unread,
Jul 5, 2012, 11:25:42 AM7/5/12
to ukb...@googlegroups.com
Thank you Aitor, it works (obviously)!

Best,
Lorenzo
Reply all
Reply to author
Forward
0 new messages