95 | | * Download the source code, either from mozilla site or from our site |
| 95 | * `wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.60.tar.gz` |
| 96 | * `tar -xzf js-1.60.tar.gz` |
| 97 | * `cd js/src` |
| 98 | * `JS_THREADSAFE=1 INCLUDES=-I/usr/include/nspr OTHER_LIBS=-L/usr/lib make -f Makefile.ref` |
| 99 | * `make -f Makefile.ref export` |
| 100 | * `cd ../../dist/Linux_All_DBG.OBJ` |
| 101 | * `sudo cp lib/* /usr/lib` |
| 102 | * `sudo mkdir /usr/include/js` |
| 103 | * `sudo cp include/* /usr/include/js` |
| 104 | * `sudo ldconfig` |
97 | | * Unpack in a temporary directory (let's call it $temp) |
98 | | |
99 | | * Change the directory into $temp/js/src/ cd $temp/js/src |
100 | | |
101 | | * Build the source using make -f Makefile.ref all followed by make -f Makefile.ref export |
102 | | |
103 | | * This last step will have put all the built binaries, libraries and headers in either $temp/dist/Linux_All_DBG.OBJ for linux systems, or $temp/dist/Darwin_DBG.OBJ for mac os x |
104 | | |
105 | | * Change directory into $temp/dist/Linux_All_DBG.OBJ (or Darwin_DBG_OBJ) cd $temp/dist/Linux_All_DBG.OBJ |
106 | | |
107 | | * Copy everything under include/ into the place where the compiler usually looks for header files (usually /usr/include) into a new directory called js, ie: cd include followed cp * /usr/include/js (Note: you might need to use su or sudo to get permission to copy these files) |
108 | | |
109 | | * Copy everything under lib/ into the directory where the runtime directories are located (usually /usr/lib) cd ../lib followed by cp * /usr/lib (Note: you might need to use su or sudo to get permission to copy these files) |
110 | | |
111 | | * Run ldconfig (if you don't, the library might not be found at runtime) |
112 | | |
113 | | * You are free to copy the binaries under bin/ into your system binary path as well (usuall /usr/bin), but it won't be necessary to build the engine |
| 106 | The process on OS X should be similar, but with `../../dist/Darwin_DBG.OBJ`. |