Moses-support Digest, Vol 97, Issue 39

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Re: Cannot install moses, bjam failes due to not finding
boost libraries (lib64 in particular) (Hieu Hoang)
2. Re: Cannot install moses, bjam failes due to not finding
boost libraries (lib64 in particular) (Daniel Seita)


----------------------------------------------------------------------

Message: 1
Date: Sun, 16 Nov 2014 17:49:41 +0000
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] Cannot install moses, bjam failes due to
not finding boost libraries (lib64 in particular)
To: Daniel Seita <takeshidanny@gmail.com>
Cc: moses-support@mit.edu
Message-ID: <5468E3B5.9010905@gmail.com>
Content-Type: text/plain; charset="utf-8"


On 16/11/14 17:41, Daniel Seita wrote:
> Thanks for the assistance. Unfortunately, I am still running into
> problems. First, to answer the questions about libboost_thread, I have
> the following files:
>
> /usr/local/Cellar/boost/1.56.0/lib/libboost_thread-mt.a
> /usr/local/Cellar/boost/1.56.0/lib/libboost_thread-mt.dylib
>
> I'm not sure what the difference of libboost_thread-mt.a versus
> libboost_thread.a means.
-mt.a is called a tagged name.
.a is called a system name
It's just an annoying file name difference. Moses changed from using
tagged to using system a few months ago so you must have the system format.
https://www.mail-archive.com/moses-support%40mit.edu/msg10653.html
>
> But in any case, I just uninstalled boost and tried to install it
> again using your way and the sourceforge link. Notice that this
> installs boost *1.55* instead of 1.56. I installed boost, put it in my
> home directory, and then untarred it, and boostrapped it. But then
> this command fails:
>
> ./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static
> install || echo failure
>
it should work with v.1.55 and 1.56
> There were so many errors that this gave me that I'm not sure how to
> interpret them, so I've attached it in a log file in case it helps. I
> got the log by running:
>
> ./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static
> install >> boost_build.log
>
read the doc carefully. You must run this 1st
./bootstrap.sh
> And in any case I do not see any file that contains "libboost_thread"
> in it in the lib64 directory. I am not sure what the issue is with boost.
>
> Thanks,
> Daniel
>
>
> On Sun, Nov 16, 2014 at 8:09 AM, Hieu Hoang <hieuhoang@gmail.com
> <mailto:hieuhoang@gmail.com>> wrote:
>
> Hi daniel
>
> On 15/11/14 22:02, Daniel Seita wrote:
>> Hello everyone,
>>
>> I'm having some trouble installing boost, because it fails when
>> running ./bjam -j8. I'm using Mac OS X 10.9.5. I have *g++*
>> installed in:
>>
>> /usr/local/bin/g++-4.9
> fyi, I think bjam will use the default c++ compiler on your
> laptop, unless you tell it to. So it's actually using clang, not
> g++, as you can see in the error message below
>>
>> and *boost* installed, via homebrew, in:
>>
>> ls /usr/local/Cellar/boost/1.56.0/
>> INSTALL_RECEIPT.json include lib
>>
>> Notice that the above directory has the *include *and the *lib*
>> directories, as required (according to bjam --help). Here is the
>> command I ran:
>>
>> ./bjam --with-boost=/usr/local/Cellar/boost/1.56.0 -j8
>>
>> And I get a ton of errors that look the same, e.g.,
>>
>> darwin.link
>> lm/bin/darwin-4.2.1/release/debug-symbols-on/link-static/threading-multi/query
>> ld: warning: directory not found for option
>> '-L/usr/local/Cellar/boost/1.56.0/lib64'
>> ld: library not found for -lboost_thread
>> clang: error: linker command failed with exit code 1 (use -v to
>> see invocation)
>>
>> *It seems like the error is that the installer expects 'lib64'
>> instead of 'lib'.* (Or could it be 'lib64' /and/ 'lib'?) I did
>> some searching but wasn't sure how to get the lib64 files. Does
>> anyone have any idea? I have attached my build log.
> the compiler looks in both lib and lib64 (if available) for the
> library files. In your lib directory, is there a file called
> libboost_thread.so
> or
> libboost_thread.a
> ?
> Personally, I would uninstall the boost library from homebrew and
> compile my own boost library. Follow these instructions if you
> want to do the same
> http://www.statmt.org/moses/?n=Development.GetStarted
>
>>
>> Thanks,
>> Daniel
>>
>>
>> _______________________________________________
>> Moses-support mailing list
>> Moses-support@mit.edu <mailto:Moses-support@mit.edu>
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20141116/d0c6996f/attachment-0001.htm

------------------------------

Message: 2
Date: Sun, 16 Nov 2014 10:27:49 -0800
From: Daniel Seita <takeshidanny@gmail.com>
Subject: Re: [Moses-support] Cannot install moses, bjam failes due to
not finding boost libraries (lib64 in particular)
To: Hieu Hoang <hieuhoang@gmail.com>
Cc: moses-support@mit.edu
Message-ID:
<CAKUmyF5fV7bt_td+uQkf_znwZ4dnpNP8QhUibtuukuyzam9WPA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Sorry if I wasn't clear in my last email. I did run ./boostrap.sh first
before running ./b2.

And with regards to tagged vs system, the discussion you linked to seems to
imply that the system name is the default. But by running "brew install
boost", which seems to be the standard way to get boost on Macs, I get the
tagged file names, e.g., libboost_thread-mt.a, in my boost directories. So
how can the system be the default, but more importantly, how can I "have
the system format"? Running ./bjam with --layout=tagged or --layout=system
resulted in the same errors as in my first post.

Thanks,
Daniel


On Sun, Nov 16, 2014 at 9:49 AM, Hieu Hoang <hieuhoang@gmail.com> wrote:

>
> On 16/11/14 17:41, Daniel Seita wrote:
>
> Thanks for the assistance. Unfortunately, I am still running into
> problems. First, to answer the questions about libboost_thread, I have the
> following files:
>
> /usr/local/Cellar/boost/1.56.0/lib/libboost_thread-mt.a
> /usr/local/Cellar/boost/1.56.0/lib/libboost_thread-mt.dylib
>
> I'm not sure what the difference of libboost_thread-mt.a versus
> libboost_thread.a means.
>
> -mt.a is called a tagged name.
> .a is called a system name
> It's just an annoying file name difference. Moses changed from using
> tagged to using system a few months ago so you must have the system format.
> https://www.mail-archive.com/moses-support%40mit.edu/msg10653.html
>
>
> But in any case, I just uninstalled boost and tried to install it again
> using your way and the sourceforge link. Notice that this installs boost
> *1.55* instead of 1.56. I installed boost, put it in my home directory,
> and then untarred it, and boostrapped it. But then this command fails:
>
> ./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static
> install || echo failure
>
> it should work with v.1.55 and 1.56
>
> There were so many errors that this gave me that I'm not sure how to
> interpret them, so I've attached it in a log file in case it helps. I got
> the log by running:
>
> ./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static
> install >> boost_build.log
>
> read the doc carefully. You must run this 1st
> ./bootstrap.sh
>
> And in any case I do not see any file that contains "libboost_thread" in
> it in the lib64 directory. I am not sure what the issue is with boost.
>
> Thanks,
> Daniel
>
>
> On Sun, Nov 16, 2014 at 8:09 AM, Hieu Hoang <hieuhoang@gmail.com> wrote:
>
>> Hi daniel
>>
>> On 15/11/14 22:02, Daniel Seita wrote:
>>
>> Hello everyone,
>>
>> I'm having some trouble installing boost, because it fails when running
>> ./bjam -j8. I'm using Mac OS X 10.9.5. I have *g++* installed in:
>>
>> /usr/local/bin/g++-4.9
>>
>> fyi, I think bjam will use the default c++ compiler on your laptop,
>> unless you tell it to. So it's actually using clang, not g++, as you can
>> see in the error message below
>>
>>
>> and *boost* installed, via homebrew, in:
>>
>> ls /usr/local/Cellar/boost/1.56.0/
>> INSTALL_RECEIPT.json include lib
>>
>> Notice that the above directory has the *include *and the *lib*
>> directories, as required (according to bjam --help). Here is the command I
>> ran:
>>
>> ./bjam --with-boost=/usr/local/Cellar/boost/1.56.0 -j8
>>
>> And I get a ton of errors that look the same, e.g.,
>>
>> darwin.link
>> lm/bin/darwin-4.2.1/release/debug-symbols-on/link-static/threading-multi/query
>> ld: warning: directory not found for option
>> '-L/usr/local/Cellar/boost/1.56.0/lib64'
>> ld: library not found for -lboost_thread
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>
>> *It seems like the error is that the installer expects 'lib64' instead
>> of 'lib'.* (Or could it be 'lib64' *and* 'lib'?) I did some searching
>> but wasn't sure how to get the lib64 files. Does anyone have any idea? I
>> have attached my build log.
>>
>> the compiler looks in both lib and lib64 (if available) for the library
>> files. In your lib directory, is there a file called
>> libboost_thread.so
>> or
>> libboost_thread.a
>> ?
>> Personally, I would uninstall the boost library from homebrew and compile
>> my own boost library. Follow these instructions if you want to do the same
>> http://www.statmt.org/moses/?n=Development.GetStarted
>>
>>
>> Thanks,
>> Daniel
>>
>>
>> _______________________________________________
>> Moses-support mailing listMoses-support@mit.eduhttp://mailman.mit.edu/mailman/listinfo/moses-support
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20141116/c94f7444/attachment.htm

------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 97, Issue 39
*********************************************

0 Response to "Moses-support Digest, Vol 97, Issue 39"

Post a Comment