Compiling MongoDB r2.0.2 on ubuntu 10.04 resulted in an error

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

I encountered this error after running "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 64-bit ubuntu 10.04. gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5), version for 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 

Does anyone have the same problem? Similar errors were reported for this jsscan file in earlier versions, but have been fixed since.

+4
source share
2 answers

Dude, it worked! Do it:

 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

+4
source

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

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

He worked for me without any extra tricks.

+4
source

Source: https://habr.com/ru/post/1389434/


All Articles