Talk:Wget with Lua hooks

From Archiveteam
Revision as of 21:20, 30 December 2016 by Nemo bis (talk | contribs) (solution)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Compiling wget-lua in Ubuntu

For get-wget-lua.sh to succeed in a fresh Ubuntu 14.04 I needed:

sudo apt-get install libgnutls libgnutls-dev libgnutls-dev flex lua5.1 liblua5.1 liblua5.1-dev

For warrior-install.sh I also needed

curl python-pip

--Nemo 13:19, 13 June 2016 (EDT)

For fedora 23 (which has lua-5.3.3-2) I'm trying:

sudo dnf install gnutls-devel lua-devel python-pip zlib-devel compat-lua-libs lua-socket lua-sec lua-filesystem

...but it's not enough. Nemo 10:22, 22 August 2016 (EDT)

Same in Fedora 25. There are various warnings but I think the culprit is always this:
gcc  -O2 -Wall   -o wget cmpt.o connect.o convert.o cookies.o ftp.o css_.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o html-parse.o html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o res.o retr.o spider.o url.o warc.o luahooks.o utils.o exits.o build_info.o iri.o version.o ftp-opie.o gnutls.o ../lib/libgnu.a -lgnutls -lz -lz  -lidn -lpcre -lm -ldl -llua
luahooks.o: In function `luahooks_init':
luahooks.c:(.text+0x435): undefined reference to `lua_open'
collect2: error: ld returned 1 exit status
Makefile:1444: recipe for target 'wget' failed
Nemo 10:00, 30 December 2016 (EST)
I gave up and changed that one lince in luahooks.c from lua_open() to luaL_newstate() [1] and compiling succeeded. I didn't manage to compile wget-lua 1.17 despite installing gpgme-devel and gettext-devel (I already had automake autoconf libtool). Nemo 16:20, 30 December 2016 (EST)