cmake and boost library installation problem

Thread Tools Search this Thread
Top Forums Programming cmake and boost library installation problem
# 1  
Old 03-14-2012
cmake and boost library installation problem

hi all,

I am new to linux and C++ programming so I'm posting in hope of some help.

I am trying to install a C++ library using boost and cmake but I keep gettin this error in the terminal:

CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1199 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:184 (find_package)

---- your help is appreciated.
# 2  
Old 03-14-2012
Chances are you just need to install boost ( library AND dev package ). How to do that depends on your distribution. Don't try compiling it by hand -- boost is huge enough it would take a very long time, and your distro almost certainly has precompiled versions anyway.

What distribution of linux do you have?
# 3  
Old 03-14-2012
hi friend, thanks for the reply.

I am using Fedora 16.I am following the installation at:

(I left out the http in the above address , since I cant post websites as I'm new to this forum).

I am downloaded Boost_1_49_0. I extracted the .tar file.
I tried using : ./configure to install but I get the follwoing from terminal :

bash: ./configure: No such file or directory

---- your advice is appreciated
# 4  
Old 03-14-2012
Like I said, I suggest not building boost from scratch. There's almost certainly a pre-compiled version for your distribution. There's good odds you even have boost already, just not its headers. By downloading the tar, and trying to ./configure, you're trying to build boost from scratch.

In fact, what library are you trying to build? There might be a package for that too.

Building it yourself is a last resort, not a first one.
# 5  
Old 03-14-2012
yum install boost-devel
# 6  
Old 03-14-2012
thanks... yum install boost-devel worked.

I am now running into more problems. The library called "Liblas", which I am trying to install can be found at :

(I left out the http in the above address , since I cant post websites as I'm new to this forum).

I am following the steps on this web site. So after running :
$ yum install boost-devel

I ran on terminal :
$ cmake -G "Unix Makefiles"

This work fined. next I ran on :
$ make

Then I went on to :
$ make install

At $ make install , it builds 100% but I am getting an error as follows:

-- Install configuration: "Release"
CMake Error at cmake_install.cmake:36 (FILE):
file cannot create directory: /usr/local/share/liblas/doc. Maybe need
administrative privileges.

make: *** [install] Error 1

--- can you suggest what I should do?

---------- Post updated at 08:26 PM ---------- Previous update was at 08:17 PM ----------

I think I figure out what to do as follows:
$ sudo make install

Now I am trying to read a file called "lasinfo" as:
$ lasinfo ../test/data/TO_core_last_clip.las

But I am getting the following error:

lasinfo: error while loading shared libraries: cannot open shared object file: No such file or directory

---- again, your help is appreciated
# 7  
Old 03-14-2012
You probably installed it under /usr/local/lib. Which isn't a bad thing in of itself -- makes it easy to tell apart from the things which your system was able to install automatically. But the dynamic loader doesn't look in there by default... If so, you'll need to
LD_LIBRARY_PATH="/usr/local/lib" lasinfo

or somesuch.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Problem to download cmake extra modules v 1.7

Hello. I am currently trying to compile kde-baseapps. I issue this command: which returns So I need this ECM stuff. I found this: extra-cmake-modules.git - Extra modules and scripts for CMake.. When I click in the corresponding link in the column, I receive this: This also happens... (2 Replies)
Discussion started by: colt
2 Replies

2. Programming

Boost library path for cmake & make

I was compiling a downloaded open source pkg. Following the install instruction, I did $ mkdir build; cd build; cmake ../; make but got error message:make: *** No rule to make target 'usr/lib64/lib64/'. needed by ../bin.gam-create. stop make: *** Error 2 make: *** Error... (1 Reply)
Discussion started by: yifangt
1 Replies

3. Fedora

How to download latest version of cmake using tar xzf?

...... (3 Replies)
Discussion started by: larry burns
3 Replies

4. Programming

Boost.Test and CMake

Hi, I just started using CMake and the Boost Libraries. In this progress I encountered some problems. One of these problems is combining Boost unit tests with cmake. I don't know how to set the whole project up. I tried to set up a simple test project. This contains a main.cpp a comp.cpp and the... (0 Replies)
Discussion started by: ElCoyote
0 Replies

5. Solaris

cmake installation problem

hi guys.. i installed cmake in solaris 5.10..... x86 i checked pkginfo | grep -i cmake ... it installed but when excuted cmake it showing following error in output bash-3.00# cmake cmake: fatal: open failed: No such file or directory help me anyone before... (3 Replies)
Discussion started by: coolboys
3 Replies

6. Linux

./configure problem for libsf library due to apparently missing libdb library.

Hello, ./configure script fails to configure libsf. Please check the following last few lines of configure script error. checking for db1/db.h... no checking for db.h... yes checking for dbopen in -ldb1... no configure: error: No libdb? No libsf. But find command shows the following; ... (4 Replies)
Discussion started by: vectrum
4 Replies

7. Solaris

boost thread not accessible to boost::move error

Hi All I am working unders Sun Solaris and I am not "/opt/boost/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>). Do you know if there are other solutions other than... (2 Replies)
Discussion started by: manustone
2 Replies
Login or Register to Ask a Question

Featured Tech Videos