파일방

elinks

구차니 2026. 1. 20. 14:28

시작은 lynx의 javascript 대응버전이었는데 영 찾기 힘드네..

빌드도 일단 실패

[링크 : https://askubuntu.com/questions/34687/is-there-a-text-mode-browser-which-supports-javascript]

[링크 : https://stackoverflow.com/questions/53769223/how-to-install-libmozjs185-dev-in-bionic/53906316#53906316]

 

$ sudo apt-cache search libmozjs
libmozjs-91-0 - SpiderMonkey JavaScript library
libmozjs-91-dev - SpiderMonkey JavaScript library - development headers
libmozjs-78-0 - SpiderMonkey JavaScript library
libmozjs-78-dev - SpiderMonkey JavaScript library - development headers
libmozjs-102-0 - SpiderMonkey JavaScript library
libmozjs-102-dev - SpiderMonkey JavaScript library - development headers

 

$ ./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-largefile     omit support for large files
  --disable-bookmarks     disable bookmark support
  --disable-xbel          disable XBEL bookmark support (requires expat)
  --enable-sm-scripting   enable ECMAScript browser scripting
  --disable-nls           do not use Native Language Support
  --enable-gettext        use System gettext for Native Language Support
  --disable-cookies       disable cookie support
  --disable-formhist      disable form history support
  --disable-globhist      disable global history support
  --disable-mailcap       disable mailcap support
  --disable-mimetypes     disable mimetypes files support
  --disable-ipv6          disable IPv6 support
  --enable-bittorrent     enable BitTorrent protocol support
  --disable-data          disable data protocol support
  --disable-uri-rewrite   disable URI rewrite support
  --enable-cgi            enable local CGI support
  --enable-dgi            enable DGI support
  --enable-finger         enable finger protocol support
  --enable-fsp            enable FSP protocol support
  --disable-ftp           disable ftp protocol support
  --disable-sftp           disable sftp protocol support
  --enable-gemini         enable gemini protocol support
  --enable-gopher         enable gopher protocol support
  --enable-nntp           enable nntp protocol support
  --enable-smb            enable Samba protocol support
  --disable-mouse         disable mouse support
  --disable-sysmouse      disable BSD sysmouse support
  --enable-88-colors      enable 88 color support
  --enable-256-colors     enable 256 color support
  --enable-true-color     enable true color support
  --enable-exmode         enable exmode (CLI) interface
  --disable-leds          disable LEDs support
  --disable-marks         disable document marks support
  --disable-css           disable Cascading Style Sheet support
  --enable-html-highlight HTML highlighting using DOM engine
  --disable-backtrace     disable backtrace support
  --enable-no-root        enable prevention of usage by root
  --enable-debug          enable leak debug and internal error checking
  --enable-fastmem        enable direct use of system allocation functions, not usable with --enable-debug
  --enable-own-libc       force use of internal functions instead of those of system libc
  --enable-small          reduce binary size as far as possible (but see the bottom of doc/small.txt!)
  --disable-utf-8         disable UTF-8 support
  --enable-reproducible   enable reproducible build
  --disable-codepoint      disable codepoint lookup

    Also check out the features.conf file for more information about features!


Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-static           enable build of static binary
  --with-xterm            how to invoke the X terminal emulator
  --without-gpm           disable gpm (mouse) support
  --with-terminfo         enable terminfo support
  --without-zlib          disable zlib support
  --without-bzlib         disable bzlib support
  --with-zstd             enable experimental zstd support
  --with-brotli           enable brotli
  --with-lzma             enable lzma encoding support
  --without-idn2          disable international domain names support
  --with-gssapi           enable GSSAPI support
  --with-mujs             enable MuJS engine
  --with-quickjs          enable Quickjs engine
  --with-spidermonkey     enable SpiderMonkey Mozilla Javascript engine
  --with-libcurl          enable curl
  --with-libcss           compile with libcss
  --with-libsixel         enable sixel graphics
  --with-guile            enable Guile support
  --with-perl             enable Perl support
  --with-python[=DIR]     enable Python support
  --with-luapkg=name      choose Lua version
  --without-tre           disable TRE regex search support
  --with-ruby             enable Ruby support
  --without-gnutls        disable GNUTLS SSL support
  --with-gnutls           enable GNUTLS SSL support
  --without-openssl       disable OpenSSL support
  --with-openssl[=DIR]    enable OpenSSL support (default)
  --with-nss_compat_ossl[=DIR]
                          NSS compatibility SSL libraries/include files
  --with-libev            compile with libev (libevent compatibility mode)
  --with-libevent         compile with libevent. Note that --with-libev has precedence
  --with-x                use the X Window System
  --with-libiconv=DIR     search for libiconv in DIR/include and DIR/lib
  --with-source-date-epoch=TIME
                          set source date epoch for reproducible builds

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  CPP         C preprocessor
  XMKMF       Path to xmkmf, Makefile generator for X Window System

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.

 

$ ./configure --enable-sm-scripting
checking for aclocal... aclocal
checking for autoconf... autoconf
checking for autoheader... autoheader
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for sys/time.h... yes
checking for sys/param.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for gnumake... no
checking for gmake... /usr/bin/gmake
checking for previous build to clean... done
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for ld... ld
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for git... /usr/bin/git
checking for sparse... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for python3... /usr/bin/python3
checking for xmlto... no
checking for dblatex... no
checking for pod2html... /usr/bin/pod2html
checking for doxygen... /usr/bin/doxygen
checking for BEOS... no
checking for DOS... no
checking for RISCOS... no
checking for WIN32... no
checking for EMX... no
checking for UNIX... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for wchar.h... (cached) yes
checking for wctype.h... yes
checking for fcntl.h... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for libgen.h... yes
checking for sigaction.h... no
checking for arpa/inet.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/in_system.h... no
checking for netinet/ip.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for netinet/in6_var.h... no
checking for ifaddrs.h... yes
checking for sys/cygwin.h... no
checking for io.h... no
checking for sys/fmutex.h... no
checking for sys/ioctl.h... yes
checking for sys/sockio.h... no
checking for sys/kd.h... yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... (cached) yes
checking for sys/utsname.h... yes
checking for net/if.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for pwd.h... yes
checking for termios.h... yes
checking for poll.h... yes
checking for stdalign.h... yes
checking for sys/un.h... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C99-conforming inline... yes
checking for typeof... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for size_t... yes
checking for off_t... yes
checking for ssize_t... yes
checking for long long... yes
checking for off_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for uint16_t... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of off_t... 8
checking size of intptr_t... 8
checking for variadic macros... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for getpagesize... yes
checking for working mmap... yes
checking for strftime... yes
checking for strptime... yes
checking for atoll... yes
checking for gethostbyaddr... yes
checking for herror... yes
checking for strerror... yes
checking for popen... yes
checking for uname... yes
checking for access... yes
checking for chmod... yes
checking for alarm... yes
checking for timegm... yes
checking for mremap... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strcasestr... yes
checking for strstr... yes
checking for strchr... yes
checking for strrchr... yes
checking for memmove... yes
checking for bcopy... yes
checking for stpcpy... yes
checking for strdup... yes
checking for index... yes
checking for isdigit... yes
checking for mempcpy... yes
checking for memrchr... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for getifaddrs... yes
checking for getpwnam... yes
checking for inet_aton... yes
checking for inet_pton... yes
checking for inet_ntop... yes
checking for fflush... yes
checking for fsync... yes
checking for fseeko... yes
checking for ftello... yes
checking for sigaction... yes
checking for gettimeofday... yes
checking for clock_gettime... yes
checking for setitimer... yes
checking for cygwin_conv_to_full_win32_path... no
checking for setenv... yes
checking for putenv... yes
checking for unsetenv... yes
checking for getuid... yes
checking for geteuid... yes
checking for wcwidth... yes
checking for fork... yes
checking for mkstemps... yes
checking for setpgid... yes
checking for getpgid... yes
checking for setpgrp... yes
checking for getpgrp... yes
checking for raise... yes
checking for kill... yes
checking for fpathconf... yes
checking for poll... yes
checking for sysconf(_SC_PAGE_SIZE)... yes
checking for C99 vsnprintf... yes
checking for dlopen in -ldl... yes
checking for socket... yes
checking for setsockopt... yes
checking for gethostbyname... yes
checking for gpm support... yes
checking for gpm.h... no
checking for terminfo support... disabled
checking for zlib support... yes
checking for zlib.h... yes
checking for gzclearerr in -lz... yes
checking for bzlib support... yes
checking for bzlib.h... no
checking for zstd support... yes
checking for zstd.h... no
checking for brotli... disabled
checking for lzma support... disabled
checking for idn2 support... yes
checking for idn2.h... no
checking for GSSAPI... no
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
checking for sys/consio.h... no
checking for machine/console.h... no
checking for MuJS... disabled
checking for QuickJS-NG... disabled
checking for SpiderMonkey... disabled
checking for SpiderMonkey (mozjs-140) in pkg-config mozjs-140... no
checking for libcurl... disabled
checking for libsixel... disabled
checking for Guile... no
checking for Perl... no
checking whether POPpx works without an n_a variable... no
checking for Python3... no
checking for Lua... no
checking for TRE in pkg-config... no, but let's try defaults
checking for TRE header and library... no
checking for Ruby... no
checking for OpenSSL... no
checking for GNUTLS (1.2 or later) in pkg-config... no
checking whether to be or not to be... needs to be determined experimentally
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for struct addrinfo... yes
checking for getaddrinfo... yes
checking for X... libraries , headers 
checking for execinfo.h... yes
checking whether /usr/bin/gmake sets $(MAKE)... yes
checking for strerror in -lcposix... no
checking for working alloca.h... yes
checking for alloca... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking for argz.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... (cached) yes
checking for getgid... yes
checking for getuid... (cached) yes
checking for mempcpy... (cached) yes
checking for munmap... yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... yes
checking for stpcpy... (cached) yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for bison... bison
checking version of bison... 3.8.2, ok
checking for catalogs to be installed...  af be bg ca cs da de el es et fi fr gl hr hu id is it ja lt nl nb pl pt pt_BR ro ru sk sr sv tr uk
checking for fsplib.h... no
checking for libsmbclient.h... no
checking for -rdynamic... yes
checking whether gcc accepts -Wno-address... yes
checking whether gcc accepts -fno-strict-overflow... yes
configure: creating ./config.status
config.status: creating Makefile.config
config.status: creating contrib/elinks.spec
config.status: creating contrib/lua/hooks.lua
config.status: creating doc/Doxyfile
config.status: creating doc/man/man1/elinks.1
config.status: creating src/intl/gettext/ref-add.sed
config.status: creating src/intl/gettext/ref-del.sed
config.status: creating config.h
config.status: config.h is unchanged
The following feature summary has been saved to features.log
Feature summary:
Documentation Tools ............. AsciiDoc, Pod2HTML
Manual Formats .................. HTML (one file)
Man Page Formats ................ HTML
API Documentation ............... Doxygen
gpm ............................. no
terminfo ........................ no
zlib ............................ yes
bzlib ........................... no
zstd ............................ no
brotli .......................... no
lzma ............................ no
idn2 ............................ no
Bookmarks ....................... yes
XBEL bookmarks .................. yes
ECMAScript (JavaScript) ......... no
Browser scripting ............... no
libev ........................... no
libevent ........................ no
SSL ............................. no
Native Language Support ......... yes
System gettext .................. no
Cookies ......................... yes
Form history .................... yes
Global history .................. yes
Mailcap ......................... yes
Mimetypes files ................. yes
IPv6 ............................ yes
BitTorrent protocol ............. no
Data protocol ................... yes
URI rewriting ................... yes
Local CGI ....................... no
DOS Gateway Interface ........... no
Finger protocol ................. no
FSP protocol .................... no
FTP protocol .................... yes
SFTP protocol ................... yes
Gemini protocol ................. no
Gopher protocol ................. no
NNTP protocol ................... no
Samba protocol .................. no
Mouse handling .................. yes
BSD sysmouse .................... no
88 colors ....................... no
256 colors ...................... no
true color ...................... no
Exmode interface ................ no
LEDs ............................ yes
Marks ........................... yes
Cascading Style Sheets .......... yes
HTML highlighting ............... no
DOM engine ...................... no
Backtrace ....................... yes
No root exec .................... no
Debug mode ...................... no
Fast mode ....................... no
Own libc stubs .................. no
Small binary .................... no
UTF-8 ........................... yes
Reproducible builds ............. no
Check codepoints ................ no
Regexp searching ................ no (TRE not found)
System configuration directory .. /usr/local/etc/elinks
Locale catalogs directory ....... /usr/local/share/locale
Compiler flags (CFLAGS) ......... -g -O2 -Wall -fno-strict-aliasing -Wno-builtin-declaration-mismatch -Wno-array-bounds -Wno-address -fno-strict-overflow
Preprocessor flags (CPPFLAGS) ... 
C++ compiler flags (CXXFLAGS) ... -g -O2 -fpermissive -Wno-sign-compare
Linker flags (LDFLAGS) .......... -rdynamic 
Library flags (LIBS) ............ -lX11 -lz -ldl  -lexpat  

 

[링크 : http://elinks.or.cz/]

[링크 : https://github.com/rkd77/elinks]

[링크 : https://launchpad.net/ubuntu/+source/mozjs128]