Open GoogleCodeExporter opened 9 years ago
I had the same problem on OS X 10.6 Snow Leopard, and was able to successfully
build with the steps described above.
Original comment by robert.t...@gmail.com
on 30 Jan 2012 at 4:59
Hi, I am OS X 10.6 Snow Leopard.
I followed the steps but the error that I get on make DEBUG=1 is:
g++ -g -Wall -fPIC -fmessage-length=0 -Isrc -O0 -fno-inline -c -o
src/util/RefCounter.o src/util/RefCounter.cpp
g++ -g -Wall -fPIC -fmessage-length=0 -Isrc -O0 -fno-inline -c -o
src/util/Logger.o src/util/Logger.cpp
g++ -g -Wall -fPIC -fmessage-length=0 -Isrc -O0 -fno-inline -c -o
src/util/CommandOptions.o src/util/CommandOptions.cpp
g++ -g -Wall -fPIC -fmessage-length=0 -Isrc -O0 -fno-inline -c -o src/Vocab.o
src/Vocab.cpp
g++ -g -Wall -fPIC -fmessage-length=0 -Isrc -O0 -fno-inline -c -o
src/NgramVector.o src/NgramVector.cpp
g++ -g -Wall -fPIC -fmessage-length=0 -Isrc -O0 -fno-inline -c -o
src/NgramModel.o src/NgramModel.cpp
src/vector/Operations.h: In static member function ‘static T OpIsNan::Eval(T)
[with T = double]’:
src/vector/VectorClosures.h:103: instantiated from ‘typename
TypeInfo<UnaryVectorClosure<Op, V> >::ElementType UnaryVectorClosure<Op,
V>::ConstIterator::operator*() const [with Op = OpIsNan, V =
DenseVector<double>]’
src/vector/VectorOps.h:77: instantiated from ‘bool anyTrue(const
Vector<I>&) [with V = UnaryVectorClosure<OpIsNan, DenseVector<double> >]’
src/NgramModel.cpp:388: instantiated from here
src/vector/Operations.h:133: error: no matching function for call to
‘isnan(double&)’
make: *** [src/NgramModel.o] Error 1
Any Ideas? Could this be a Boost issue. I have boost 1.45 installed, but not
sure whether mitlm knows the path to it.
Original comment by Joro.Dzh...@gmail.com
on 28 Feb 2012 at 6:36
The above tips were very helpful, thanks. I had a handfull of more troubles
installing this in Lion, here are some pointers for others:
* Some functions were not found I had to go and edit the code to std::min and
similar in some instances. (I believe this might be fixed in SVN).
* I didn't want to use brew, so I installed a gfortran precompiled version from
here: http://gcc.gnu.org/wiki/GFortranBinaries
* The library that I needed to symlink was in a different directory:
/usr/local/gfortran/lib/libgfortran.a
* I needed to link two more libraries: /usr/local/gfortran/lib/libquadmath.a
/usr/local/gfortran/lib/gcc/x86_64-apple-darwin11/4.6.2/libgcc.a and
/usr/local/gfortran/lib/gcc/x86_64-apple-darwin11/4.6.2/libgcc_eh.a
* I needed to add these to the makefile too -lquadmath -lgcc -lgcc_eh
Original comment by sand...@gmail.com
on 19 May 2012 at 5:42
Hi, can you please try mitlm 0.4.1 installation and report results?
Original comment by giuliop...@gmail.com
on 27 Mar 2013 at 1:22
Original issue reported on code.google.com by
tiago.he...@gmail.com
on 25 Aug 2011 at 2:37