在ubuntu 10.04上编译MongoDB r2.0.2导致错误

发布于 2024-12-25 12:54:35 字数 952 浏览 1 评论 0原文

我正在按照 http://www.mongodb.org/ 的说明从源代码编译 MongoDB display/DOCS/Building+for+Linux

我在运行“scons all”后遇到了这个错误:

rty/js-1.7/jsscan.c
third_party/js-1.7/jsscan.c:112:22: error: jsautokw.h: No such file or directory
third_party/js-1.7/jsscan.c: In function 'FindKeyword':
third_party/js-1.7/jsscan.c:122: warning: label 'test_guess' defined but not used
third_party/js-1.7/jsscan.c:119: warning: label 'got_match' defined but not used
scons: *** [third_party/js-1.7/jsscan.o] Error 1
scons: building terminated because of errors

我使用的是 64 位 ubuntu 10.04。 gcc版本4.4.3(Ubuntu 4.4.3-4ubuntu5),scons版本是:

script: v1.2.0.d20100117.r4629, 2010/01/17 22:23:21, by scons on scons-dev
engine: v1.2.0.d20100117.r4629, 2010/01/17 22:23:21, by scons on scons-dev

有人有同样的问题吗?在早期版本中,此 jsscan 文件也报告了类似的错误,但此后已得到修复。

I am compiling MongoDB from source with instructions from http://www.mongodb.org/display/DOCS/Building+for+Linux

I ran into this error after ran "scons all":

rty/js-1.7/jsscan.c
third_party/js-1.7/jsscan.c:112:22: error: jsautokw.h: No such file or directory
third_party/js-1.7/jsscan.c: In function 'FindKeyword':
third_party/js-1.7/jsscan.c:122: warning: label 'test_guess' defined but not used
third_party/js-1.7/jsscan.c:119: warning: label 'got_match' defined but not used
scons: *** [third_party/js-1.7/jsscan.o] Error 1
scons: building terminated because of errors

I am on a 64 bit ubuntu 10.04. gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5), scons version is:

script: v1.2.0.d20100117.r4629, 2010/01/17 22:23:21, by scons on scons-dev
engine: v1.2.0.d20100117.r4629, 2010/01/17 22:23:21, by scons on scons-dev

Does anyone have the same problem? There are similar errors reported for this jsscan file in earlier versions, but has been fixed since.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

这样的小城市 2025-01-01 12:54:35

老兄,成功了!这样做:

sudo apt-get remove xulrunner-1.9.2-dev xulrunner-1.9.2
curl -O ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
tar zxvf js-1.7.0.tar.gz
cd js/src
export CFLAGS="-DJS_C_STRINGS_ARE_UTF8"
make -f Makefile.ref
sudo JS_DIST=/usr make -f Makefile.ref export

然后再次运行 scons all

Dude it worked! Do this:

sudo apt-get remove xulrunner-1.9.2-dev xulrunner-1.9.2
curl -O ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
tar zxvf js-1.7.0.tar.gz
cd js/src
export CFLAGS="-DJS_C_STRINGS_ARE_UTF8"
make -f Makefile.ref
sudo JS_DIST=/usr make -f Makefile.ref export

Then run scons all again

自在安然 2025-01-01 12:54:35

无需卸载“xulrunner-1.9.2-dev”和“xulrunner-1.9.2”,因为它还会卸载您以后可能需要的其他软件包。
只需安装较新版本的 scons 软件包(我使用的是 scons-2.1.0)。

  1. 下载 scons-2.1.0.tar.gz
  2. 安装并使用已安装的版本,而不是 Ubuntu 10.04 的 scons v1.2.0 存储库包。

它对我有用,没有任何额外的技巧。

There is no need to uninstall "xulrunner-1.9.2-dev" and "xulrunner-1.9.2" as it's also uninstalls other packages you may need later.
Just install the newer version of scons package (I used for it scons-2.1.0).

  1. Download scons-2.1.0.tar.gz
  2. Install it and use the installed one instead of the scons v1.2.0 repository package for Ubuntu 10.04.

It worked for me without any additional tricks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文