惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

博客园 - BugSlayer

Research on Unsupervised Word Alignment Based on Inversion Transduction Grammar Feature-Based ITG for Unsupervised Word Alignment 模型 算法 代码 三层 这半年的收获 new blog 松口气 运动运动 来新第三周 来新一周之流水账 research is not a career,it is a life style. 冷冷的天,冷冷的心 这样写英文Email,对方会感觉你很有礼貌,很有风度 (转) 真的要走了 北大网络实验室论文简单分级情况 人生很短,做些有意义的事情 没有真性的人生,哪来真切的学问! Conjugate prior ubuntu10.10 下面安装vmware-tools 解决需要指定 c header file 的问题 python 线程同步
joshua srilm 编译问题解决方法 转
BugSlayer · 2011-07-06 · via 博客园 - BugSlayer

Yes, I had a very similar error on my  Ubuntu machine: 

$uname -a 
Linux sailor 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 
2010 x86_64 GNU/Linux 

I confirm that Mirko's fix worked. For the unwashed, here's what I did 
step by step: 

1. Grabbed latest SRILM (v. 1.5.11) and installed to: 

/home/farrar/Software/LM/srilm 

2. Changed SRILM variable in my Makefile to: 

SRILM = /home/farrar/Software/LM/srilm 

3. I edited my srilm/sbin/machine-type script to look like this 
excerpt: 

else if (`uname -m` == x86_64) then 
    set MACHINE_TYPE = i686-m64 
    #set MACHINE_TYPE = i686 
    else 

4. compiled SRILM as follows: 

$ make MAKE_PIC=yes World 

Step 4 should give no errors. 

5. Grabbed latest Joshua and ran the following: 

farrar@sailor:~/Software/MT/joshua$ ant 
Buildfile: build.xml 

init: 

set-srilm: 

set-java-home: 

srilm: 
     [exec] make: Entering directory `/home/farrar/Software/MT/joshua/ 
src/joshua/decoder/ff/lm/srilm' 
     [exec] g++  -c -fPIC srilm.c -I/usr/local/include/ -I/home/farrar/ 
Software/LM/srilm/include 
     [exec] swig -c++ -java -package joshua.decoder.ff.lm.srilm - 
outdir . srilm_java.i 
     [exec] g++  -c -fPIC srilm_java_wrap.cxx -I/usr/local/include/ -I/ 
home/farrar/Software/LM/srilm/include -I/usr/lib/jvm/java-6- 
sun-1.6.0.20/include/ -I/usr/lib/jvm/java-6-sun-1.6.0.20/include/ 
linux 
     [exec] g++  -fPIC -shared srilm.o srilm_java_wrap.o -loolm - 
ldstruct -lmisc -L/home/farrar/Software/LM/srilm/lib/i686-m64 -o 
libsrilm.so 
     [exec] cp libsrilm.so http://www.cnblogs.com/http://www.cnblogs.com/http://www.cnblogs.com/lib 
     [exec] make: Leaving directory `/home/farrar/Software/MT/joshua/ 
src/joshua/decoder/ff/lm/srilm' 

compile: 
    [javac] Compiling 441 source files to /home/farrar/Software/MT/ 
joshua/bin 
    [javac] Note: Some input files use or override a deprecated API. 
    [javac] Note: Recompile with -Xlint:deprecation for details. 
    [javac] Note: Some input files use unchecked or unsafe operations. 
    [javac] Note: Recompile with -Xlint:unchecked for details. 

BUILD SUCCESSFUL 
Total time: 13 seconds