[mira_talk] Re: Help with the Mira 3.9.16 installation with Boost library on Mac osx

  • From: Sebastian Juenemann <jueneman@xxxxxxxxxxxxxxxxxxxxxxxx>
  • To: mira_talk@xxxxxxxxxxxxx
  • Date: Wed, 15 May 2013 10:44:05 +0200

On 05/15/13 08:49, Austen Chen wrote:
Thank you Sebastian for your help. I should have added more detailed
information in my first email.

What happened was that if I did this: ./bootstrap.sh
--with-libraries=thread,regex,system

I got this error during MIRA configure script:

checking whether the Boost::Filesystem library is available... yes
configure: error: Could not link against boost_system !


But if I did this:./bootstrap.sh --with-libraries=thread,regex, system,
filesystem

Then I got the following:

checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... Yes


checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... Yes


checking whether the Boost::IOStreams library is available... yes
configure: error: Could not link against boost_filesystem !

I could be wrong but it looks like that MIRA had no problem locating the
boost_system if I added filesystem, and then something else became the
problem (in this case the Boost::IOStreams library). It seems like that I
need to keep adding more and moreŠthat's why I stopped and thought that
there must be a more concise way of doing it. Or to make it simply should
I install the complete boost library on my computer first? Any help on
this?

Really looks like your boost is not compete. Of course it would be helpful if you can check whether you have the most recent version of BOOST installed on your system and if it's installed complete or not. Also, why not using just:

./bootstrap.sh --with-libraries=all ?

If you still have problems locating the boost libs than you should try further and point to the boost location via './configure --with-boost= ' and '--with-boost-libdir='



Thanks

Aus

On 15/05/13 12:12 AM, "Sebastian Juenemann"
<jueneman@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

On 05/14/13 15:47, Austen Chen wrote:
Dear all,

I was trying to install Mira 3.9.16 on my Mac osx 10.8.3. Then I
realised that I also needed to install the Boost library. After
searching on the MIRA_talk  I found the following instructions (see
below) and I was following that instructions using the latest version of
boost_1_53_0. however i was getting this error from the MIRA configure
script:

checking whether the Boost::Filesystem library is available... yes
configure: error: Could not link against boost_system !

I then added system to
./bootstrap.sh --with-libraries=thread,regex, system

but still got the same error.

I then added filesystem to
./bootstrap.sh --with-libraries=thread,regex, system, filesystem

But still could not get it to work. Maybe Mira 3.9.16 requires more
components installed? But how many more?

Austen - this does not help as you're already linking against these
libraries. What MIRA does say here is that it can not _find_ them, i.e.
the boost_system lib can't be found but is (explicit) required
(--with-libraries=...). Were there normally installed on your system, as
boost::filesystem could be found? What may help:

./configure --help

You can try to provide an additional parameter for configure to _find_
your required boost library, i.e.:

--with-boost-libdir=[path to boost]

If this does not help, as e.g. they are located at different
directories, you can try to export the CFLAGS/CXXFLAGS and LDFLAGS
environmental variables pointing to desired include and lib directories,
respectively.

If you have system or compiler special boost libs, you need to tell the
linker to use those instead of the default ones by providing these
information via './configure --with-boost-system=[library]'.

I hope this helps,

- Sebastian


I was wondering if anyone could update the instructions of the boost
library for this latest version of MIRA?

Thank you so much in advance

Aus

(02-15-2011) Just a note for anyone using my instructions above, they've
been fine for me up to and including MIRA 3.2.0.

As of MIRA 3.2.1 you'll also need the BOOST regex library - I was
getting this error from the MIRA configure script:
Code:

checking whether the Boost::Regex library is available... yes
configure: error: Could not link against boost_thread !

So, install BOOST again (I tried with BOOST 1.42.0 initially since I
already had that, then again with the latest release, BOOST 1.45.0) but
with regex this time:
Code:

cd boost_1_45_0
./bootstrap.sh --with-libraries=thread,regex
./bjam
./bjam install --prefix=$HOME

Then:
Code:

cd mira-3.2.1
./configure --with-boost=$HOME
make
make check



--
Sebastian Jünemann
CeBiTec - Center for Biotechnology
Bielefeld University, D-33594 Bielefeld, Germany
Office: V6-147 -- Phone: +49-(0)521-106-4827    
eMail: jueneman@xxxxxxxxxxxxxxxxxxxxxxxx

--
You have received this mail because you are subscribed to the mira_talk
mailing list. For information on how to subscribe or unsubscribe, please
visit http://www.chevreux.org/mira_mailinglists.html




--
Sebastian Jünemann
CeBiTec - Center for Biotechnology
Bielefeld University, D-33594 Bielefeld, Germany
Office: V6-147 -- Phone: +49-(0)521-106-4827    
eMail: jueneman@xxxxxxxxxxxxxxxxxxxxxxxx

--
You have received this mail because you are subscribed to the mira_talk mailing 
list. For information on how to subscribe or unsubscribe, please visit 
http://www.chevreux.org/mira_mailinglists.html

Other related posts: