Hi,
I have removed the old boost libraries...
I have installed the new one in /usr/local/boost in the following way
(thanks to Musa suggestions):
./bootstrap.sh --prefix=/usr/local/boost --exec-prefix=/usr/local/boost
--libdir=/usr/local/boost/lib --includedir=/usr/local/boost/include >& log
./bjam >> log
./bjam install --prefix=/usr/local/boost >> log


I run
./configure --with-srilm=/home/turchmo/Libraries/srilm/
--with-xmlrpc-c=/home/turchmo/Libraries/xmlrpc-c/xmlrpc-c-config
--with-boost=/usr/local/boost/  --enable-threads

without
--with-boost-thread=boost_thread-gcc41-mt
because it does not find this label.
configure: error: Could not link against boost_thread-boost_thread-gcc41-mt
!

In this way, i can compile moses... but when I run the test:
moses: error while loading shared libraries: libboost_thread.so.1.41.0:
cannot open shared object file: No such file or directory

this library is not in /usr/local/boost/lib, but it is in the boost folder
in
boost_1_41_0/bin.v2/libs
how can I tell to moses to look for it there?


thanks
Marco


On Mon, Nov 23, 2009 at 10:41 AM, marco turchi <marco.tur...@gmail.com>wrote:

> Hi
> thanks a lot for the advices...
>
> I compiled again the boost libraries 1.41.0 using the flag --prefix=/usr.
> Now i have:
> 1)all the headers are inside the /usr/include/boost.
> 2)an old version (1.33) of the boost libboost_* are in /usr/lib64
> 3)new version of the boost libboost_* are in boost_1_41_0/bin.v2/libs/
>
> I run
> ./configure --with-srilm=/home/turchmo/Libraries/srilm/
> --with-xmlrpc-c=/home/turchmo/Libraries/xmlrpc-c/xmlrpc-c-config
> --with-boost=/home/turchmo/Libraries/boost_1_41_0/
> --with-boost-thread=boost_thread-gcc41-mt --enable-threads
>
> but i got the same messsage:
> checking for boostlib >= 1.35.0... configure: error: ....
>
> the problem is that the configure finds an old version (1.33...) that has
> been installed with linux...
>
> Thanks a lot
>  Marco
>
>
>
> On Sat, Nov 21, 2009 at 11:17 AM, Barry Haddow <bhad...@inf.ed.ac.uk>wrote:
>
>> Hi Marco
>>
>> Yes, the boost automake is a bit awkward. You could try
>> replacing --with-boost-thread=boost_thread-gcc43-mt
>> with --with-boost-thread=boost_thread-gcc41-mt, since you're using gcc
>> 4.1.
>> This label is part of the versioning suffix that boost adds to the shared
>> libraries.
>>
>> Also, check that the boost include files are
>> in /home/turchmo/Libraries/boost_1_41_0/include. This is probably where it
>> is
>> looking for them.
>>
>> If none of this works, then post your config.log so I can have a look at
>> it,
>>
>> regards
>> Barry
>>
>> On Friday 20 November 2009 18:35:34 marco turchi wrote:
>> > Hi,
>> > I'm trying to install Moses server on a linux machine at 64-bit, gcc
>> > 4.1.2-46. I have installed the boost library, but when I run the
>> configure
>> > file, it does not find them:
>> >
>> > ./configure --with-srilm=/home/turchmo/Libraries/srilm/
>> > --with-xmlrpc-c=/home/turchmo/Libraries/xmlrpc-c/xmlrpc-c-config
>> > --with-boost=/home/turchmo/Libraries/boost_1_41_0/  --enable-threads
>> >
>> > ...
>> >
>> > checking for ranlib... ranlib
>> > checking for XMLRPC-C... ok
>> > configure: Building threaded moses
>> > checking for boostlib >= 1.35.0... configure: error: We could not detect
>> > the boost libraries (version 1.35 or higher). If you have a staged boost
>> > library (still not installed) please specify $BOOST_ROOT in your
>> > environment and do not give a PATH to --with-boost option.  If you are
>> sure
>> > you have boost installed, then check your version number looking in
>> > <boost/version.hpp>. See http://randspringer.de/boost for more
>> > documentation.
>> >
>> > in the moses documentation it is written that if i work on 64-bit
>> machine,
>> > I may have to add:
>> > --with-boost-thread=boost_thread-gcc43-mt
>> >
>> > I tried but I got the same error. What is it the label
>> > "boost_thread-gcc43-mt"?  is it a link to something?
>> >
>> > Please can u help to understand what it is going here?
>> >
>> > Thanks
>> > Marco
>>
>>
>>
>>
>
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to