Created
May 3, 2016 09:28
-
-
Save atomotic/81f07f880e0d09915aea8d33d81d70bb to your computer and use it in GitHub Desktop.
install wget-lua on osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
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
I created a Homebrew formula so now this can be fully automated with:
Just pasta this formula here:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wget-lua