Computer Science Canada

Question about installing boost 1.37 on Ubuntu Linux.

Author:  smallgirl [ Thu Dec 04, 2008 8:29 am ]
Post subject:  Question about installing boost 1.37 on Ubuntu Linux.

I did a lot of google search, but I haven't found a complete tutorial how to install boost<> under Linux. I also visited boost.org, but the tutorial that they showed was just too vague to me. I got boost 1.35 installed under synaptic manager, however it doesn't work for some updated libraries on Boost 1.37, especially the "boost regex". I used to install successfully boost under Windows( VC++ 2008 followed one tutorial online using Bjam ), but for Linux, I tried for 4 months already, I asked several forums but seem like not a lot of people care about it, really frustrated Sad ! If anyone done it before, could you show me how to install and build it ! I really thanks and appreciate it. Thanks everyone. Wink

Author:  Unforgiven [ Thu Dec 04, 2008 10:32 am ]
Post subject:  RE:Question about installing boost 1.37 on Ubuntu Linux.

You're just looking to install the libraries? Apt is your friend.

mikeward@aji:~$ apt-cache search libboost
libboost-dbg - Boost C++ Libraries with debug symbols
libboost-dev - Boost C++ Libraries development files
libboost-doc - Boost.org libraries documentation
libboost-python-dev - Boost.Python Library development files
libboost-python1.34.1 - Boost.Python Library
libboost-date-time-dev - set of date-time libraries based on generic programming concepts
libboost-date-time1.34.1 - set of date-time libraries based on generic programming concepts
libboost-filesystem-dev - filesystem operations (portable paths, iteration over directories, etc) in C++
libboost-filesystem1.34.1 - filesystem operations (portable paths, iteration over directories, etc) in C++
libboost-graph-dev - generic graph components and algorithms in C++
libboost-graph1.34.1 - generic graph components and algorithms in C++
libboost-iostreams-dev - Boost.Iostreams Library development files
libboost-iostreams1.34.1 - Boost.Iostreams Library
libboost-program-options-dev - program options library for C++
libboost-program-options1.34.1 - program options library for C++
libboost-regex-dev - regular expression library for C++
libboost-regex1.34.1 - regular expression library for C++
libboost-serialization-dev - serialization library for C++
libboost-serialization1.34.1 - serialization library for C++
libboost-signals-dev - managed signals and slots library for C++
libboost-signals1.34.1 - managed signals and slots library for C++
libboost-test-dev - components for writing and executing test suites
libboost-test1.34.1 - components for writing and executing test suites
libboost-thread-dev - portable C++ multi-threading
libboost-thread1.34.1 - portable C++ multi-threading
libboost-wave-dev - C99/C++ preprocessor library
libboost-wave1.34.1 - C99/C++ preprocessor library


EDIT: I'm an illiterate idiot, you said you're looking for 1.37 specifically. I'll see if I can find a PPA for it.

Author:  Unforgiven [ Thu Dec 04, 2008 10:37 am ]
Post subject:  RE:Question about installing boost 1.37 on Ubuntu Linux.

I didn't find an update, but later today I'll try and pull out the laptop and install it from source on there, and assuming I have no problems, I'll post instructions command-by-command.

Usually, it's as simple as unpacking, then just "./configure", "make", and "sudo make install", but we'll see.

Author:  smallgirl [ Thu Dec 04, 2008 4:28 pm ]
Post subject:  RE:Question about installing boost 1.37 on Ubuntu Linux.

Even though if you won't be able make it work, I really thanks and appreciate your help Very Happy ! You're such a nice person that I've met Very Happy ! Seriously, thanks a lot Unforgiven Very Happy. Kiss ^_9 ! But I believe that you can Mr. Green !

Author:  Unforgiven [ Thu Dec 04, 2008 6:28 pm ]
Post subject:  RE:Question about installing boost 1.37 on Ubuntu Linux.

So, I downloaded the libraries from the site, specifically boost_1_37_0.tar.bz2.

Unpack it with "tar -xjvf filename".

cd boost_1_37_0

./configure

ran make, then realized I didn't have g++ installed, so installed that via apt-get

ran make again, and got a warning at the end of the compilation:

failed updating 60 targets, skipped 6 targets, and updated 617 targets.

So, just to be sure, I'd look and see if boost has a forum or IRC channel you could ask in. Give it a shot first, but then go and just tell them the situation and see if they know of a solution or something like that.

Author:  md [ Thu Dec 04, 2008 8:37 pm ]
Post subject:  RE:Question about installing boost 1.37 on Ubuntu Linux.

pacman -S boost

Oh, Ubuntu linux Wink These things need clarifying Razz

Author:  smallgirl [ Fri Dec 05, 2008 12:51 am ]
Post subject:  RE:Question about installing boost 1.37 on Ubuntu Linux.

Thanks a lot Unforgiven, for Visual C++ with pre-install SDK, I followed this tutorial http://www.quantnet.org/forum/showthread.php?t=2221&page=2 and it worked pretty well. Today, I played around with it a bit, and try to do similarly like the way they showed under VC++, but it didn't work.
I jumped to this step :
Quote:

tools\jam\src\bin.ntx86\bjam.exe --build-type=complete

And on my Ubuntu, it has the folder "bin.linuxx86", inside there I also saw bjam but when I tried :
Quote:

./bjam --build-type=complete

It said that bjam not found...etc.
I've just let you know and maybe you will figure out faster Wink !

Author:  smallgirl [ Fri Dec 05, 2008 1:39 am ]
Post subject:  RE:Question about installing boost 1.37 on Ubuntu Linux.

Just found this, and I think it's really close :
http://shoddykid.blogspot.com/2008/07/getting-started-with-boost.html#bboostlin
but the step :
Quote:
This directory will henceforth be referred to as BOOST_BUILD_ROOT. On my system, I have chosen ~/boost as the BOOST_BUILD_ROOT.

I don't understand about the BOOST_BUILD_ROOT means.
I tried :
Quote:

BOOST_BUILD_ROOT=~home/my_name/Desktop/boost
export BOOST_BUILD_ROOT

( I created a folder called 'boost' on Desktop )
It didn't say or complain anything
but how could I get to BOOST_BUILD_ROOT directory, is it a real directory or it's just an alias for .../boost ?


: