Re: [elinks-users] Cannot configure elinks with spidermonkey with no root access
Well. I couldnt get the old spidermonkey 1.7.0 to compile. But I tried with the latest git version of elinks 0.13 and js 1.8.5 Exported all the paths (overdid it I suppose) export PKG_CONFIG_PATH=/home/droidzone/myapps/lib:$PKG_CONFIG_PATH:/home/droidzone/myapps/lib/pkgconfig export LD_LIBRARY_PATH=/home/droidzone/myapps/lib:$PKG_CONFIG_PATH:/home/droidzone/myapps/lib/pkgconfig The config for spidermonkey was: ./configure --prefix=/home/droidzone/myapps Verified that the libs were present: droidzone@gooey:~/sources/elinks-0.13-20121201$ ls ~/myapps/lib/ libcord.a libgc.a libmozjs185-1.0.a libpanel.a libcord.lalibgc.lalibmozjs185.solibpanel_g.a libcord.solibgc.solibmozjs185.so.1.0pkgconfig libcord.so.1 libgc.so.1 libmozjs185.so.1.0.0 terminfo libcord.so.1.0.3 libgc.so.1.0.3 libncurses++.a libform.a libmenu.a libncurses.a libform_g.a libmenu_g.a libncurses_g.a Configured elinks with all the options I could think of (even though I read that --with-spidermonkey=dir is deprecated in new version) ./configure --prefix=/home/droidzone/myapps ./configure --prefix=/home/droidzone/myapps --with-spidermonkey ./configure --prefix=/home/droidzone/myapps --with-spidermonkey=yes ./configure --prefix=/home/droidzone/myapps --with-spidermonkey=/home/droidzone/myapps ./configure --prefix=/home/droidzone/myapps --with-spidermonkey=/home/droidzone/myapps --includedir=/home/droidzone/myapps/lib ./configure --prefix=/home/droidzone/myapps --with-spidermonkey=/home/droidzone/myapps --includedir=/home/droidzone/myapps/include/js ./configure --prefix=/home/droidzone/myapps --includedir=/home/droidzone/myapps/include/js ./configure --prefix=/home/droidzone/myapps --includedir=/home/droidzone/myapps/include None of those work.. Complete config.log of my last attempt: http://pastebin.com/zYt4hkZp Is there a way to hardcode my directory into the script somehow? On Sat, Dec 1, 2012 at 8:03 PM, witekfl gglate...@gmail.com wrote: Droidzone dz at droidzone.in writes: I'm attaching the relevant part of config.log in case someone can help.. configure:8894: checking for SpiderMonkey (1.5 RC3a or later) Oops. What I said before applies to 0.13. For 0.12 compile js-1.7.0 and install and build elinks: ./configure --with-spidermonkey=/path/to/js If that fails, try to --includedir=/path/to/js If that fails, try 0.13. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Cannot configure elinks with spidermonkey with no root access
Droidzone dz at droidzone.in writes: I'm trying to compile elinks on a server on which I have non-root access. I have downloaded Spidermonkey source, compiled it with cd ~/source/js-1.8.5/js/src ; ./configure --prefix=/home/droidzone/myapps ; make ; make install If you want to compile elinks-0.12 or 0.13, set PKG_CONFIG_PATH (man pkg-config)and LD_LIBRARY_PATH appropriately. Spidermonkey install is fine Now I downloaded elinks 0.11.7 and tried configure ./configure --prefix=/home/droidzone/myapps However it always shows: Spidermonkey...no ECMAScript (JavaScript) . no Browser scripting ... no What is the correct procedure to build elinks with javascript support on a machine with no root access? For 0.11.7 you need the older version of SpiderMonkey and ./configure --help tells what options to pass. 0.11.7 is obsolete. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Cannot configure elinks with spidermonkey with no root access
I tried the following. Compiled spidermonkey: cd js-1.8.5/js/src ./configure --prefix=/home/droidzone/myapps make ; make install Exported paths export PKG_CONFIG_PATH=/home/droidzone/myapps/lib:/home/droidzone/myapps:/home/droidzone/myapps/bin export LD_LIBRARY_PATH=/home/droidzone/myapps/lib:/home/droidzone/myapps Cpnfigured elinks cd ~/sources/elinks-0.12-20121201 ./configure --prefix=/home/droidzone/myapps --with-spidermonkey=yes It still doesnt find spidermonkey: ECMAScript (JavaScript) . no Browser scripting ... no On Sat, Dec 1, 2012 at 4:29 PM, witekfl gglate...@gmail.com wrote: PKG_CONFIG_PATH ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Cannot configure elinks with spidermonkey with no root access
I'm attaching the relevant part of config.log in case someone can help.. configure:8894: checking for SpiderMonkey (1.5 RC3a or later) configure:8933: gcc -o conftest -g -O2 -Wall -I/home/droidzone/myapps/include/js -I/home/droidzone/myapps/include/js conftest.c -L/home/droidzone/myapps/lib -ljs -ld\ l -lz 5 /usr/bin/ld: cannot find -ljs collect2: ld returned 1 exit status configure:8933: $? = 1 configure: failed program was: | /* confdefs.h */ ... | /* end confdefs.h. */ | #define XP_UNIX |#include jsapi.h | int | main () | { | JS_GetReservedSlot(NULL, NULL, 0, NULL) | ; | return 0; | } configure:8933: gcc -o conftest -g -O2 -Wall -I/home/droidzone/myapps/include/js -I/home/droidzone/myapps/include/js conftest.c -L/home/droidzone/myapps/lib -lsmjs -\ ldl -lz 5 /usr/bin/ld: cannot find -lsmjs collect2: ld returned 1 exit status configure:8933: $? = 1 configure: failed program was: | /* confdefs.h */ ... |#include jsapi.h | int | main () | { | JS_GetReservedSlot(NULL, NULL, 0, NULL) | ; | return 0; | } configure:8933: gcc -o conftest -g -O2 -Wall -I/home/droidzone/myapps/include/js -I/home/droidzone/myapps/include/js conftest.c -L/home/droidzone/myapps/lib -lmozjs \ -ldl -lz 5 /usr/bin/ld: cannot find -lmozjs collect2: ld returned 1 exit status configure:8933: $? = 1 configure: failed program was: | /* confdefs.h */ etc On Sat, Dec 1, 2012 at 7:31 PM, Droidzone d...@droidzone.in wrote: I tried the following. Compiled spidermonkey: cd js-1.8.5/js/src ./configure --prefix=/home/droidzone/myapps make ; make install Exported paths export PKG_CONFIG_PATH=/home/droidzone/myapps/lib:/home/droidzone/myapps:/home/droidzone/myapps/bin export LD_LIBRARY_PATH=/home/droidzone/myapps/lib:/home/droidzone/myapps Cpnfigured elinks cd ~/sources/elinks-0.12-20121201 ./configure --prefix=/home/droidzone/myapps --with-spidermonkey=yes It still doesnt find spidermonkey: ECMAScript (JavaScript) . no Browser scripting ... no On Sat, Dec 1, 2012 at 4:29 PM, witekfl gglate...@gmail.com wrote: PKG_CONFIG_PATH ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Cannot configure elinks with spidermonkey with no root access
Droidzone dz at droidzone.in writes: I'm attaching the relevant part of config.log in case someone can help.. configure:8894: checking for SpiderMonkey (1.5 RC3a or later) Oops. What I said before applies to 0.13. For 0.12 compile js-1.7.0 and install and build elinks: ./configure --with-spidermonkey=/path/to/js If that fails, try to --includedir=/path/to/js If that fails, try 0.13. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Cannot configure elinks with spidermonkey with no root access
Droidzone dz at droidzone.in writes: ./configure --prefix=/home/droidzone/myapps Complete config.log of my last attempt: http://pastebin.com/zYt4hkZp configure:9058: checking for SpiderMonkey (1.8.5 or later) in pkg-config mozjs185 Package nspr was not found in the pkg-config search path. Perhaps you should add the directory containing `nspr.pc' Build nspr and repeat. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Cannot configure elinks with spidermonkey with no root access
Yes, that was it. It's configured and compiled. It doesnt open javascript links at opensource.samsung.com, but I suppose that's out of scope of the discussion. Thank you for your help. On Sat, Dec 1, 2012 at 11:18 PM, witekfl gglate...@gmail.com wrote: Droidzone dz at droidzone.in writes: ./configure --prefix=/home/droidzone/myapps Complete config.log of my last attempt: http://pastebin.com/zYt4hkZp configure:9058: checking for SpiderMonkey (1.8.5 or later) in pkg-config mozjs185 Package nspr was not found in the pkg-config search path. Perhaps you should add the directory containing `nspr.pc' Build nspr and repeat. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users