Elinks javascript5/28/2023 ![]() ![]() ![]() What I want to ask is how do I make elinks aware of it, coz JS doesnt come with an install script, so I dont exactly know where to put it. I got the Spidermonkey JS source from Mozilla and created a build. There isnt anything we could call complete, but some bits could help with the most common ECMAScript usage. I just compiled elinks, and in the configure options, it said Javascript works if Spidermonkey is loaded on the system. If anyone has had success compiling JavaScript support into elinks, please advise. Yes, there is some ECMAScript support in ELinks. on the other hand the repo has commits as recently as last year. The 1.8.5 version requirement was added to the elinks NEWS file in 2011. It sort of looks like the installed SpiderMonkey is not recent enough, but I don't know whether version "24.8.1" is in the same timeline as the "1.8.5" that the configure script is looking for - perhaps it's too new and elinks got left behind. There exists a /usr/include/mozjs/js/RequiredDefines.h, so I think I'm on the right track. There is a directory /usr/include/mozjs but it doesn't have a child directory mozjs. In that case, what I wanted to make sure is what Ill be getting in the future if I use this, 'elinks-git' PKGBUILD. To the PKG_CONFIG_PATH environment variableĬonfigure:9236: checking for SpiderMonkey (1.8.5 or later) in pkg-config mozilla-jsĬonfigure:9270: gcc -o conftest -g -O2 -Wall -include /usr/include/mozjs/mozjs/js/RequiredDefines.h -I/usr/include/nspr -I/usr/include/mozjs -include /usr/include/mozjs/mozjs/js/RequiredDefines.h -I/usr/include/nspr -I/usr/include/mozjs conftest.c -lmozjs -ldl -lz -lbz2 >&5Ĭc1: fatal error: /usr/include/mozjs/mozjs/js/RequiredDefines.h: No such file or directory And so the Arch official 'elinks' package will support javascript. Perhaps you should add the directory containing `mozjs185.pc' Package mozjs185 was not found in the pkg-config search path. elinks builds successfully and works, but without JavaScript.Ĭonfig.log has the following: configure:9236: checking for SpiderMonkey (1.8.5 or later) in pkg-config mozjs185.CONFIG_SCRIPTING_SPIDERMONKEY=yes Is turned on in nf.libmozjs-dev 24.8.1esr-2~deb7u1 from the Debian repos.I've got the latest elinks ( ) from git cloned under my home directory.The elinks manual says if the SpiderMonkey library is installed then the configure script "should" recognize it and enable JavaScript support. ![]()
0 Comments
Leave a Reply. |