Issue 36 in opencc: Nodejs安装opencc总是不成功,不知道是什么问题。

147 views
Skip to first unread message

ope...@googlecode.com

unread,
Aug 5, 2013, 4:49:56 PM8/5/13
to open-chine...@googlegroups.com
Status: New
Owner: ----
Labels: Priority-Low

New issue 36 by noodleb...@gmail.com: Nodejs安装opencc总是不成功,不知道是什
么问题。
http://code.google.com/p/opencc/issues/detail?id=36

Traceback (most recent call last):
File "/usr/local/lib/node_modules/node-gyp/gyp/gyp", line 18, in <module>
sys.exit(gyp.main(sys.argv[1:]))
File "/usr/lib/pymodules/python2.7/gyp/__init__.py", line 471, in main
options.circular_check)
File "/usr/lib/pymodules/python2.7/gyp/__init__.py", line 111, in Load
depth, generator_input_info, check, circular_check)
File "/usr/lib/pymodules/python2.7/gyp/input.py", line 2378, in Load
depth, check)
File "/usr/lib/pymodules/python2.7/gyp/input.py", line 358, in
LoadTargetBuildFile
includes, True, check)
File "/usr/lib/pymodules/python2.7/gyp/input.py", line 208, in
LoadOneBuildFile
raise Exception("%s not found (cwd: %s)" % (build_file_path,
os.getcwd()))
Exception: binding.gyp not found (cwd: /home/ubuntu/webot-douban-event)
while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/usr/local/lib/node_modules/node-gyp/lib/configure.js:424:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(child_process.js:784:12)
gyp ERR! System Linux 3.8.0-19-generic
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/ubuntu/webot-douban-event
gyp ERR! node -v v0.10.4
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok

还了很多个nodejs版本也不行。

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

ope...@googlecode.com

unread,
Aug 5, 2013, 5:20:53 PM8/5/13
to open-chine...@googlegroups.com

Comment #1 on issue 36 by byvo...@gmail.com: Nodejs安装opencc总是不成功,不
知道是什么问题。
http://code.google.com/p/opencc/issues/detail?id=36

請你嘗試從github獲取代碼,並使用cmake編譯,看看是否還有問題。

ope...@googlecode.com

unread,
Aug 5, 2013, 5:31:51 PM8/5/13
to open-chine...@googlegroups.com

Comment #2 on issue 36 by noodleb...@gmail.com: Nodejs安装opencc总是不成
功,不知道是什么问题。
http://code.google.com/p/opencc/issues/detail?id=36

您好,cmake错误提示:
ubuntu@ip-172-31-46-25:~/webot-douban-event/node_modules/opencc/build$ make
[ 78%] Built target libopencc
[ 78%] Built target libopencc_static
[ 78%] Built target opencc_dict
[ 78%] Building simp_to_trad_phrases.ocd
Killed
make[2]: *** [data/simp_to_trad_phrases.ocd] Error 137
make[1]: *** [data/CMakeFiles/ocds.dir/all] Error 2
make: *** [all] Error 2

只有ubuntu自带源能够安装,但是我需要部署nodejs应用,安装不上opencc会很麻
烦,有什么办法解决么?

ope...@googlecode.com

unread,
Aug 5, 2013, 6:09:04 PM8/5/13
to open-chine...@googlegroups.com

Comment #4 on issue 36 by byvo...@gmail.com: Nodejs安装opencc总是不成功,不
知道是什么问题。
http://code.google.com/p/opencc/issues/detail?id=36

根據你的錯誤信息,可能是內存不足導致,你是否在資源十分受限的虛擬機上編譯?如
果是,可以考慮在資源豐富的計算機上編譯,然後複製上去。

ope...@googlecode.com

unread,
Aug 5, 2013, 6:10:04 PM8/5/13
to open-chine...@googlegroups.com

Comment #3 on issue 36 by byvo...@gmail.com: Nodejs安装opencc总是不成功,不
知道是什么问题。
http://code.google.com/p/opencc/issues/detail?id=36

根據你的錯誤信息,可能是內存不足導致,你是否在資源十分受限的虛擬機上編譯?如
果是,可以考慮在資源豐富的計算機上編譯,然後複製上去。

ope...@googlecode.com

unread,
Aug 6, 2013, 12:31:30 AM8/6/13
to open-chine...@googlegroups.com

Comment #5 on issue 36 by noodleb...@gmail.com: Nodejs安装opencc总是不成
功,不知道是什么问题。
http://code.google.com/p/opencc/issues/detail?id=36

非常感谢您不厌其烦的帮我解答,我在配置豆瓣同城微信公共平台代码,有没有什么办
法解决npm install opencc 安装不上的问题呢?

ope...@googlecode.com

unread,
Aug 6, 2013, 4:36:32 AM8/6/13
to open-chine...@googlegroups.com

Comment #6 on issue 36 by byvo...@gmail.com: Nodejs安装opencc总是不成功,不
知道是什么问题。
http://code.google.com/p/opencc/issues/detail?id=36

不要在虛擬機上 npm install opencc ,在你的計算機上運行,然後把node_modules裏
面的opencc目錄複製到虛擬機的相同目錄中。
Reply all
Reply to author
Forward
0 new messages