Difference between revisions of "Talk:Wget with Lua hooks"

From Archiveteam
Jump to navigation Jump to search
(Created page with "==Compiling wget-lua in Ubuntu== For get-wget-lua.sh to succeed in Ubuntu 14.04 I needed: sudo apt-get install libgnutls libgnutls-dev libgnutls-dev flex lua5.1 liblua5.1-0 l...")
 
(solution)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Compiling wget-lua in Ubuntu==
==Compiling wget-lua in Ubuntu==
For get-wget-lua.sh to succeed in Ubuntu 14.04 I needed:
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-0 liblua5.1-0-dev
  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
--[[User:Nemo_bis|Nemo]] 13:19, 13 June 2016 (EDT)
--[[User:Nemo_bis|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. [[User:Nemo_bis|Nemo]] 10:22, 22 August 2016 (EDT)
:Same in Fedora 25. There are various warnings but I think the culprit is always this:
<pre>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</pre>
:[[User:Nemo_bis|Nemo]] 10:00, 30 December 2016 (EST)
::I gave up and changed that one lince in luahooks.c from lua_open() to luaL_newstate() [https://stackoverflow.com/a/25239047] and compiling succeeded. I didn't manage to compile [https://github.com/alard/wget-lua wget-lua 1.17] despite installing gpgme-devel and gettext-devel (I already had automake autoconf libtool). [[User:Nemo_bis|Nemo]] 16:20, 30 December 2016 (EST)

Latest revision as of 21:20, 30 December 2016

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)