{"id":227,"date":"2010-07-31T12:06:56","date_gmt":"2010-07-31T17:06:56","guid":{"rendered":"http:\/\/ebixio.com\/blog\/?p=227"},"modified":"2017-04-06T01:37:22","modified_gmt":"2017-04-06T06:37:22","slug":"how-to-install-libjs-spidermonkey","status":"publish","type":"post","link":"https:\/\/ebixio.com\/blog\/2010\/07\/31\/how-to-install-libjs-spidermonkey\/","title":{"rendered":"How to install libjs (SpiderMonkey)"},"content":{"rendered":"<p>In Ubuntu 10.04 (Lucid) there&#8217;s no deb package for libjs. I needed to use version 1.8 of libjs with MediaTomb. Normally this would mean you download the source code for libjs and &#8220;.\/configure; make; make install&#8221; but the source code for libjs 1.8 doesn&#8217;t come with a configure script, or with an install target in the Makefile.ref file.<\/p>\n<p>The <a href=\"https:\/\/developer.mozilla.org\/en\/SpiderMonkey_Build_Documentation\">SpiderMonkey Build Documentation<\/a> is helpful in getting a build done, but points to some SpiderMonkey manual installation instructions that are no longer available. If you create a file called Makefile in the js\/src directory with the contents shown below, you can issue the normal &#8220;make install&#8221; to install libjs. Better yet, you should install the &#8220;checkinstall&#8221; package and use:<a rel=\"dofollow\" href=\"http:\/\/movieclose.com\/movie\/270774\/skiptrace.html\" title=\"download Skiptrace 2016 movie now\" style=\"font-size:1px\">film Skiptrace streaming<\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">checkinstall -D make install<\/pre>\n<p>This will create a debian package (-D) that does the same thing as &#8220;make install&#8221;.<\/p>\n<p>Make sure you use a hard tab to indent the lines below &#8220;install:&#8221; target or else the Makefile won&#8217;t work. Since the build result is placed in a subdirectory named based on the system, you might have to adjust the BLD (look for the location of the <code>libjs.so<\/code> file). The PREFIX should probably be <code>\/usr<\/code> when used with checkinstall, and <code>\/usr\/local<\/code> otherwise.<\/p>\n<pre>\r\nBLD := Linux_All_OPT.OBJ\r\n#PREFIX := \/usr\/local\r\nPREFIX := \/usr\r\n\r\ninstall:\r\n        cp ${BLD}\/libjs.so ${PREFIX}\/lib\r\n        cp ${BLD}\/js ${PREFIX}\/bin\r\n        cp ${BLD}\/jscpucfg ${PREFIX}\/bin\r\n        cp ${BLD}\/jskwgen ${PREFIX}\/bin\r\n        mkdir -p ${PREFIX}\/include\/js\r\n        cp *.h ${PREFIX}\/include\/js\r\n        cp *.tbl ${PREFIX}\/include\/js\r\n        cp ${BLD}\/*.h ${PREFIX}\/include\/js\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In Ubuntu 10.04 (Lucid) there&#8217;s no deb package for libjs. I needed to use version 1.8 of libjs with MediaTomb. Normally this would mean you download the source code for libjs and &#8220;.\/configure; make; make install&#8221; but the source code for libjs 1.8 doesn&#8217;t come with a configure script, or with an install target in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":16,"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":687,"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions\/687"}],"wp:attachment":[{"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}