YangXiangGcc / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

wget get 400 error meo ...... #309

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
......实则如此这般......宿主系统ubuntu ver 12.04 Linux-Kernel ver 
......倒无有太多关联,御得chroot搭载Linux from Scratch ver 7.3 
Linux-Kernel ver 
3.8.1......亦未有太多关联,总归chroot其间搭载sunpinyin ver 
2.0.3,吟唱scons --prefix=/usr无论如何皆映现......

=================================================

wget http://open-gram.googlecode.com/files/lm_sc.t3g.arpa.tar.bz2
--2013-06-21 20:08:51--  
http://open-gram.googlecode.com/files/lm_sc.t3g.arpa.tar.bz2
Resolving open-gram.googlecode.com (open-gram.googlecode.com)... 173.194.72.82, 
2404:6800:4008:c01::52
Connecting to open-gram.googlecode.com 
(open-gram.googlecode.com)|173.194.72.82|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-06-21 20:08:52 ERROR 404: Not Found.

make: *** [lm_sc.t3g.arpa.tar.bz2] Error 8
make: Leaving directory `/Cireoneko/sunpinyin-2.0.3/raw'
scons: *** [rawlm] Error 2
scons: building terminated because of errors.

=============================================

实为wget链接之误,宿主系统其间亦启而不得,404......现如今s
unpinyin ver 2.0.3编译而不得......此外亦有得贰处其误......

g++ -o src/lexicon/genPYT.o -c -O2 -g -pipe -DHAVE_CONFIG_H 
-DSUNPINYIN_DATA_DIR='"/usr/lib/sunpinyin/data"' -I. -Isrc -Isrc/lexicon 
-Isrc/slm -Isrc/slm/tslmpack -Isrc/slm/slmprune -Isrc/slm/slmseg 
-Isrc/slm/tools -Isrc/slm/tslminfo -Isrc/slm/ids2ngram -Isrc/slm/mmseg 
-Isrc/slm/tslmendian -Isrc/slm/slmbuild -Isrc/slm/thread -Isrc/slm/slminfo 
-Isrc/slm/getWordFreq -Isrc/ime-core -Isrc/pinyin src/lexicon/genPYT.cpp
src/lexicon/genPYT.cpp: In function 'int main(int, char**)':
src/lexicon/genPYT.cpp:117:50: error: 'getopt' was not declared in this scope
src/lexicon/genPYT.cpp:120:28: error: 'optarg' was not declared in this scope
scons: *** [src/lexicon/genPYT.o] Error 1
scons: building terminated because of errors.

须当于src/lexicon/genPYT.cpp其间添得#include 
<getopt.h>方得以继续编译......亦有得此处......

g++ -o src/ime-core/ic_history.os -c -O2 -g -pipe -DHAVE_CONFIG_H 
-DSUNPINYIN_DATA_DIR='"/usr/lib/sunpinyin/data"' -fPIC -I. -Isrc -Isrc/lexicon 
-Isrc/slm -Isrc/slm/tslmpack -Isrc/slm/slmprune -Isrc/slm/slmseg 
-Isrc/slm/tools -Isrc/slm/tslminfo -Isrc/slm/ids2ngram -Isrc/slm/mmseg 
-Isrc/slm/tslmendian -Isrc/slm/slmbuild -Isrc/slm/thread -Isrc/slm/slminfo 
-Isrc/slm/getWordFreq -Isrc/ime-core -Isrc/pinyin src/ime-core/ic_history.cpp
src/ime-core/ic_history.cpp: In member function 'bool 
CBigramHistory::loadFromFile(const char*)':
src/ime-core/ic_history.cpp:186:36: error: 'read' was not declared in this scope
src/ime-core/ic_history.cpp:190:14: error: 'close' was not declared in this 
scope
scons: *** [src/ime-core/ic_history.os] Error 1
scons: building terminated because of errors.

须于src/ime-core/ic_history.cpp之处添得 #include <unistd.h> 
......编译之际御得GCC ver 4.7.2......

或是咱宿主系统与chroot其间系统缘由罢喵,若非如此,须当��
�加修补,免得旁的众位编译不得,虽说如此,却更望实为咱L
inux造诣浅浅之过罢喵......

编译与造梦sunpinyin,多加辛苦,多有叨扰喵......

Original issue reported on code.google.com by naiyeqia...@gmail.com on 21 Jun 2013 at 12:23