amit-bhavsar / mitlm

Automatically exported from code.google.com/p/mitlm
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Build issue on Red Hat Scientific Linux #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Check out trunk (r48)
2. ./autogen.sh
3. make

What is the expected output? What do you see instead?

Build fails with:

make[1]: *** No rule to make target `lbfgs.lo', needed by `libmitlm.la'.  Stop.
make[1]: Leaving directory `/home/stephen/mitlm2'
make: *** [all-recursive] Error 1

This can be fixed by editing the Makefile produced by autogen.sh:

--- Makefile.orig   2011-03-08 14:19:53.000000000 +0200
+++ Makefile    2011-03-08 14:20:26.000000000 +0200
@@ -75,7 +75,7 @@
    src/Vocab.lo src/PerplexityOptimizer.lo src/Lattice.lo \
    src/Smoothing.lo src/NgramModel.lo src/NgramVector.lo \
    src/MaxLikelihoodSmoothing.lo src/KneserNeySmoothing.lo \
-   src/InterpolatedNgramLM.lo lbfgs.lo lbfgsb.lo \
+   src/InterpolatedNgramLM.lo src/optimize/lbfgs.lo src/optimize/lbfgsb.lo \
    src/WordErrorRateOptimizer.lo
 libmitlm_la_OBJECTS = $(am_libmitlm_la_OBJECTS)
 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)

but I don't know what the underlying cause is.

What version of the product are you using? On what operating system?

trunk (r48)

Linux srvslngrd003.uct.ac.za 2.6.18-194.3.1.el5 #1 SMP Fri May 7 01:43:09 EDT 
2010 x86_64 x86_64 x86_64 GNU/Linux

Red Hat Scientific Linux SL release 5.4 (Boron)

Please provide any additional information below.

autoconf (GNU Autoconf) 2.59

Original issue reported on code.google.com by smarqu...@gmail.com on 8 Mar 2011 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
I have the same issue on Debian 5

Original comment by dhla...@gmail.com on 24 Mar 2011 at 9:21

GoogleCodeExporter commented 9 years ago
Unfortunately I don't have any of those distribution (I'm using Debian wheezy).
I guess the problem is the version of automake/autoconf used. I'm using 
automake 1.11.1 and autoconf 2.68.

Here you can find the generated file (you can try the usual configure, make and 
make install). Anyway keep in mind that issue 14 is not fixed in this package.

Original comment by giuliop...@gmail.com on 16 May 2011 at 5:40

Attachments:

GoogleCodeExporter commented 9 years ago
I have the same issue on redhat EL 5

Original comment by karthick...@gmail.com on 13 Sep 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Had the same problem with svn mitim-r48 on Debian 5.0.8 running Linux version 
2.6.38-11-generic (buildd@allspice) (gcc version 4.5.2 (Ubuntu/Linaro 
4.5.2-8ubuntu4) ) #48-Ubuntu SMP Fri Jul 29 19:02:55 UTC 2011

I applied this patch file to the make and it worked for me

./autogen.sh
patch Makefile mitim.patch
make
make install

Original comment by dexteru...@gmail.com on 22 Sep 2011 at 12:37

Attachments:

GoogleCodeExporter commented 9 years ago
This issue should be fixed by mitlm 0.4.1. If it is not, please re-open this 
bug.

Original comment by giuliop...@gmail.com on 27 Mar 2013 at 1:19