[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: Tue, 14 May 2013 16:42:32 +0200

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

Other related posts: