Built on May 13 2013 23:58:58
Standard, IPv6, gzip, bzip2, UTF-8, Periodic Saving, Viewer (Search
History, Timer, Marks), Cascading Style Sheets, Protocol
(Authentication, File, CGI, Finger, FSP, FTP, HTTP, URI rewrite, User
protocols), SSL (GnuTLS), MIME (Option system, Mailcap, Mimetypes
files), LED indicators, Bookmarks, Cookies, Form History, Global
History, Scripting (Perl), Goto URL History
sudo apt-get install libmozjs185-dev pkg-config
Now let’s download a tarball of the experimental code snapshot (Mine was on 20140208), extract the code and configure the build:
tar xjvf elinks-current-0.13.tar.bz2
Now scroll up a bit, and make sure SpiderMonkey has been enabled in configure log:
Browser scripting ............... SpiderMonkey
In case it has not been enabled, check config.log to miss which library or package is missing.
Time to build and install elinks:
sudo make install
If you want elinks to be the default text-based browser (www-browser), you may have to remove elinks package (apt-get remove elinks), and add it back to alternatives:
sudo update-alternatives --install /usr/bin/elinks www-browser /usr/local/bin/elinks 70
Now make sure it selected by default:
sudo update-alternatives --config www-browser
There are 4 choices for the alternative www-browser (providing /usr/bin/elinks).
Selection Path Priority Status
* 0 /usr/local/bin/elinks 70 auto mode
1 /usr/bin/links2 69 manual mode
2 /usr/bin/lynx 40 manual mode
3 /usr/bin/w3m 25 manual mode
4 /usr/local/bin/elinks 70 manual mode
Press enter to keep the current choice[*], or type selection number:
You can also set the default Desktop browser (Chromium, Firefox..) using the command line by replacing www-browser, by x-www-browser.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.