Comments (4)
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 [email protected]
on 30 Jan 2012 at 4:59
from mitlm.
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 [email protected]
on 28 Feb 2012 at 6:36
from mitlm.
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 [email protected]
on 19 May 2012 at 5:42
from mitlm.
Hi, can you please try mitlm 0.4.1 installation and report results?
Original comment by [email protected]
on 27 Mar 2013 at 1:22
from mitlm.
Related Issues (20)
- estimate-lm segfaults when specifying a vocab file HOT 4
- estimate n-gram cannot find libmitlm.so.0 HOT 2
- smoothing failed when saving
- Fail to install mitln.0.4 on Cygwin HOT 2
- build fails due to ambiguous call HOT 3
- compilation error because an included file "unordered_map" is not found HOT 8
- Compilation error related to the 'fortran_wrapper'
- Error loading arpa format lm HOT 1
- ./.libs/libmitlm.so: undefined reference to `__cxa_get_exception_ptr'
- maximum line length HOT 2
- Release 0.4.1Steps to build MITLM trunk on OS X Yosemite HOT 2
- cutoff
- Tokens beginning with # cause a crash when using count files
- Crash where suffix of an ngram not present in count file
- LM building error in makefile HOT 5
- Where is Lectures.txt?
- interpolate-ngram: mixing lms with numerical values is not implemented or not?
- Installation issues. estimate-ngram: command not found HOT 2
- Interpolation assertion `!anyTrue(isnan(bows))' failed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitlm.