building Mozilla Spider Monkey on Ubuntu
I'm trying to build spider 开发者_Python百科monkey on ubuntu 10.04 (lucid). However, when I run autoconf2.13 on the js/src directory, it tells me there is no configure.in file. I can't just do the usual ./configure > make > sudo make install , either. What's up with it?
Same thing happened here. I think that they definitely could benefit from an build instructions update.
Here is what I had to do...
Download the latest source via mercurial - run the following and then go get some coffee (you make need to install Mercurial if not already install - repo version works fine):
hg clone http://hg.mozilla.org/mozilla-central/js
Then I had to cd in: cd js/src
Then you can pick up where the Mozilla instructions lead you:
autoconf2.13
./configure
make
sudo make install
Hope this helps!
The command given in the previous answer results in 404 Not Found. I used:
hg clone http://hg.mozilla.org/mozilla-central
which probably does the whole tree. And 1 cup of coffee will not be enough. Perhaps 3 pots, it takes agggggeeeesssss.
For me works as follows in Ubuntu 10.04:
make BUILD_OPT=1 -f Makefile.ref
The option apparently is only for optimizing the code. Then I copy by hand the files where they should be to be used by my programs. I only really need the bin so it was easy.
Here you have the official documentation the new one that explain where to copy the headers and executables and the old one that I used for the compilation.
It was useful too this link and this one.
精彩评论