Re: [Moses-support] RandLM make Error

2014-11-20 Thread Miles Osborne
LDHT is not really supported, but looking at your error message it seems
that you need to install Google Sparse Hash.

On Wed Nov 19 2014 at 12:47:27 PM Hieu Hoang hieu.ho...@ed.ac.uk wrote:

 There is a script within the randlm project that compiles just the library
 needed to integrate the library into Moses.

 https://sourceforge.net/p/randlm/code/HEAD/tree/trunk/manual-compile/compile.sh
 It's been a while since people have asked about RandLM, I'm not sure who's
 still using it and who has time  experience to take care of it.

 On 19 November 2014 11:50, Achchuthan Yogarajah achch1...@gmail.com
 wrote:

 Hi Everyone,

 when i build RandLM with the following command
 make
 i got some error

 Making all in RandLM
 make[1]: Entering directory `/home/achchuthan/randlm-0.2.5/src/RandLM'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/achchuthan/randlm-0.2.5/src/RandLM'
 Making all in LDHT
 make[1]: Entering directory `/home/achchuthan/randlm-0.2.5/src/LDHT'
 /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
 -I. -I../..  -I./  -fPIC -Wno-deprecated -Wall -ggdb -DTIXML_USE_TICPP -g
 -O2 -MT libLDHT_la-Client.lo -MD -MP -MF .deps/libLDHT_la-Client.Tpo -c -o
 libLDHT_la-Client.lo `test -f 'Client.cpp' || echo './'`Client.cpp
 libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I./ -fPIC
 -Wno-deprecated -Wall -ggdb -DTIXML_USE_TICPP -g -O2 -MT
 libLDHT_la-Client.lo -MD -MP -MF .deps/libLDHT_la-Client.Tpo -c Client.cpp
 -fPIC -DPIC -o .libs/libLDHT_la-Client.o
 In file included from Client.cpp:6:0:
 Client.h:8:34: fatal error: google/sparse_hash_map: No such file or
 directory
  #include google/sparse_hash_map
   ^
 compilation terminated.
 make[1]: *** [libLDHT_la-Client.lo] Error 1
 make[1]: Leaving directory `/home/achchuthan/randlm-0.2.5/src/LDHT'
 make: *** [all-recursive] Error


 --


 *Thanks  Regards,**Yogarajah Achchuthan*
 [ LinkedIn http://lk.linkedin.com/in/achchuthany/ Twitter
 https://twitter.com/achchuthany Facebook
 https://www.facebook.com/achchuthany ]


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




 --
 Hieu Hoang
 Research Associate
 University of Edinburgh
 http://www.hoang.co.uk/hieu

  The University of Edinburgh is a charitable body, registered in
 Scotland, with registration number SC005336.

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


[Moses-support] RandLM make Error

2014-11-19 Thread Achchuthan Yogarajah
Hi Everyone,

when i build RandLM with the following command
make
i got some error

Making all in RandLM
make[1]: Entering directory `/home/achchuthan/randlm-0.2.5/src/RandLM'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/achchuthan/randlm-0.2.5/src/RandLM'
Making all in LDHT
make[1]: Entering directory `/home/achchuthan/randlm-0.2.5/src/LDHT'
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
-I../..  -I./  -fPIC -Wno-deprecated -Wall -ggdb -DTIXML_USE_TICPP -g -O2
-MT libLDHT_la-Client.lo -MD -MP -MF .deps/libLDHT_la-Client.Tpo -c -o
libLDHT_la-Client.lo `test -f 'Client.cpp' || echo './'`Client.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I./ -fPIC
-Wno-deprecated -Wall -ggdb -DTIXML_USE_TICPP -g -O2 -MT
libLDHT_la-Client.lo -MD -MP -MF .deps/libLDHT_la-Client.Tpo -c Client.cpp
-fPIC -DPIC -o .libs/libLDHT_la-Client.o
In file included from Client.cpp:6:0:
Client.h:8:34: fatal error: google/sparse_hash_map: No such file or
directory
 #include google/sparse_hash_map
  ^
compilation terminated.
make[1]: *** [libLDHT_la-Client.lo] Error 1
make[1]: Leaving directory `/home/achchuthan/randlm-0.2.5/src/LDHT'
make: *** [all-recursive] Error


-- 


*Thanks  Regards,**Yogarajah Achchuthan*
[ LinkedIn http://lk.linkedin.com/in/achchuthany/ Twitter
https://twitter.com/achchuthany Facebook
https://www.facebook.com/achchuthany ]
___
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


Re: [Moses-support] RandLM make Error

2014-11-19 Thread Tom Hoar
The attached Bash script (renamed to .txt for email) compiles RandLM on 
Ubuntu 12.04 and 14.04. The paths and logging in this script might not 
be what you want, but you can modify as you see fit.


Note that the Debian package manager includes packages called 
sparsehash and libsparsehash-dev. It describe them as Google's 
extremely memory-effecient C++ hash_map implementation. I do not 
remember that one of these packages is a dependency of RandLM, but your 
error seems to hint that it could be.


The resulting binaries worked fine on 12.04. We just recently learned 
that although the package compiles on 14.04, the resulting binaries do 
not run. The above dependency might also be the source of our error, but 
we haven't had time to debug the problem.


Tom


On 11/19/2014 07:47 PM, Hieu Hoang wrote:
There is a script within the randlm project that compiles just the 
library needed to integrate the library into Moses.

https://sourceforge.net/p/randlm/code/HEAD/tree/trunk/manual-compile/compile.sh
It's been a while since people have asked about RandLM, I'm not sure 
who's still using it and who has time  experience to take care of it.


On 19 November 2014 11:50, Achchuthan Yogarajah achch1...@gmail.com 
mailto:achch1...@gmail.com wrote:


Hi Everyone,

when i build RandLM with the following command
make
i got some error

Making all in RandLM
make[1]: Entering directory `/home/achchuthan/randlm-0.2.5/src/RandLM'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/achchuthan/randlm-0.2.5/src/RandLM'
Making all in LDHT
make[1]: Entering directory `/home/achchuthan/randlm-0.2.5/src/LDHT'
/bin/bash ../../libtool  --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I../..  -I./  -fPIC -Wno-deprecated -Wall
-ggdb -DTIXML_USE_TICPP -g -O2 -MT libLDHT_la-Client.lo -MD -MP
-MF .deps/libLDHT_la-Client.Tpo -c -o libLDHT_la-Client.lo `test
-f 'Client.cpp' || echo './'`Client.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I./ -fPIC
-Wno-deprecated -Wall -ggdb -DTIXML_USE_TICPP -g -O2 -MT
libLDHT_la-Client.lo -MD -MP -MF .deps/libLDHT_la-Client.Tpo -c
Client.cpp -fPIC -DPIC -o .libs/libLDHT_la-Client.o
In file included from Client.cpp:6:0:
Client.h:8:34: fatal error: google/sparse_hash_map: No such file
or directory
 #include google/sparse_hash_map
  ^
compilation terminated.
make[1]: *** [libLDHT_la-Client.lo] Error 1
make[1]: Leaving directory `/home/achchuthan/randlm-0.2.5/src/LDHT'
make: *** [all-recursive] Error


-- 


*Thanks  Regards,
**Yogarajah Achchuthan*
[ LinkedIn http://lk.linkedin.com/in/achchuthany/ Twitter
https://twitter.com/achchuthany Facebook
https://www.facebook.com/achchuthany ]


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




--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu



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


#! /bin/bash
#set -e

project=randlm
make_bin=$(dirname `readlink -f ${0}`)
if [ $EUID -ne 0 -a ${make_bin} == /usr/local/bin ] ; then
echo 'This script must be run as root/super user' 12
exit 1
elif [ $EUID -eq 0 -a ! ${make_bin} == /usr/local/bin ] ; then
echo 'This script can not be run as root/super user' 12
exit 1
fi
parent=$(dirname ${make_bin})



usage() {
cat - EOF
usage: ${0##*/} options

This script compiles RandLM and places the results in 
subfolders under the --prefix folder.

OPTIONS:
   -p|-Pprefix directory (${parent})
   -u|-Uuninstall
   -h|-HShow this message
EOF
}




# parse command line
while getopts hHuUp:P: OPTION ; do
case $OPTION in
h|H)
usage
exit 0
;;
p|P)
prefix=$OPTARG
;;
u|U)
uninstall=1
;;
*)
usage
exit 1
;;
esac
done









prefix=${prefix:-${parent}}
bin=${prefix}/bin
uninstall=${uninstall:-0}
libdir=${prefix}/lib/${project}


pushd ${parent}/src/${project} /dev/null

if [ $uninstall -eq 1 ] ; then

make -j${procs} uninstall
exitcode=(${PIPESTATUS[*]})

[ -d ${libdir} ]  find ${libdir} -depth -type d -empty 
-exec rmdir {} \;

if [ -d ${bin} ] ; then
# remove broken simlinks