Skip to content

Instantly share code, notes, and snippets.

@atomotic
Created May 3, 2016 09:28
Show Gist options
  • Save atomotic/81f07f880e0d09915aea8d33d81d70bb to your computer and use it in GitHub Desktop.
Save atomotic/81f07f880e0d09915aea8d33d81d70bb to your computer and use it in GitHub Desktop.
install wget-lua on osx
brew install lua5.1
curl http://warriorhq.archiveteam.org/downloads/wget-lua/wget-1.14.lua.LATEST.tar.bz2 | tar -xj --strip-components=1
sed -i -e s=usr/include/lua5.1=usr/local/include/lua5.1=g configure.ac
./configure
make
cp src/wget /usr/local/bin/wget-lua
wget-lua --help|grep lua
GNU Wget 1.14.lua.20130523-9a5c, a non-interactive network retriever.
Usage: wget-lua [OPTION]... [URL]...
--lua-script=FILE load the Lua script from FILE.
@chosak
Copy link

chosak commented Sep 26, 2023

Thank you for this gist! For anyone coming here in 2023, creating the formula file alone wasn't sufficient; I had to run brew create ... per the Formula Cookbook.

Additionally, since my Homebrew installation is somewhere other than /usr/local/include, I needed to change the two inreplace lines to refer to "#{HOMEBREW_PREFIX}/include/lua-5.1" instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment