Boost cannot find headers for UUID on CentOS

367 Views Asked by At

I'm trying to compile code with g++ (-I/usr/include flag is present and yum install boost-devel qt-devel has been executed)

but have an error

boost/uuid/uuid_generators.hpp: No such file or directory

Is it because of an old boost version or is it related to invocation? ls /usr/include/boost/ does not show presence of this folder too.

Linux version 2.6.32-042stab140.4 (kbuild-rh6-x64) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) )

g++ --version
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)

boost version boost-1.41.0

1

There are 1 best solutions below

0
Most Wanted On

Ok, so the solution was to install boost version higher than 1.42.0 to have that header available as suggested in comments.

Installing it (1.55.0) from different repository solved the issue

$ yum install http://repo.okay.com.mx/centos/6/x86_64/release/okay-release-1-1.noarch.rpm
$ yum install boost-devel