Skip to content

Instantly share code, notes, and snippets.

@roolo
Created October 18, 2013 12:24
Show Gist options
  • Save roolo/7040779 to your computer and use it in GitHub Desktop.
Save roolo/7040779 to your computer and use it in GitHub Desktop.
Prosody 0.9.1 install on OSX Lion
[~]$ brew install http://prosody.im/files/homebrew/prosody_0.9.1.rb [ruby-2.0.0-p247]
######################################################################## 100.0%
Installing http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock...
Using http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock... switching to 'build' mode
Archive: /private/tmp/luarocks_luarocks-rock-luasocket-2.0.2-5-7448/luasocket-2.0.2-5.src.rock
inflating: luasocket-2.0.2-5.rockspec
inflating: luasocket-2.0.2.tar.gz
cd src; make all
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o luasocket.o luasocket.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o timeout.o timeout.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o buffer.o buffer.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o io.o io.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o auxiliar.o auxiliar.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o options.o options.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o inet.o inet.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o tcp.o tcp.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o udp.o udp.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o except.o except.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o select.o select.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o usocket.o usocket.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o socket.so.2.0.2 luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o usocket.o
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include -c -o mime.o mime.c
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o mime.so.1.0.2 mime.o
cd src; make all
make[1]: Nothing to be done for `all'.
cd src; mkdir -p /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; cp ltn12.lua socket.lua mime.lua /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; mkdir -p /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; cp http.lua url.lua tp.lua ftp.lua smtp.lua /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; mkdir -p /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket
cd src; cp socket.so.2.0.2 /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket/core.so
#cd src; mkdir -p /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
#cd src; cp /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
cd src; mkdir -p /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime
cd src; cp mime.so.1.0.2 /usr/local//lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime/core.so
Updating manifest for /usr/local//lib/luarocks/rocks
luasocket 2.0.2-5 is now built and installed in /usr/local/ (license: MIT)
Installing http://www.luarocks.org/repositories/rocks/luaexpat-1.2.0-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/luaexpat-1.2.0-1.src.rock... switching to 'build' mode
Archive: /private/tmp/luarocks_luarocks-rock-luaexpat-1.2.0-1-4025/luaexpat-1.2.0-1.src.rock
inflating: luaexpat-1.2.0-1.rockspec
extracting: luaexpat-1.2.0.tar.gz
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/opt/lua/include -c src/lxplib.c -o src/lxplib.o -I/usr/local/include -Isrc/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -o lxp.so -L/usr/local/opt/lua/lib src/lxplib.o -L/usr/local/lib -Wl,-rpath,/usr/local/lib: -lexpat
Updating manifest for /usr/local//lib/luarocks/rocks
luaexpat 1.2.0-1 is now built and installed in /usr/local/ (license: MIT/X11)
Installing http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.2-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.2-1.src.rock... switching to 'build' mode
Archive: /private/tmp/luarocks_luarocks-rock-luafilesystem-1.6.2-1-9287/luafilesystem-1.6.2-1.src.rock
inflating: luafilesystem-1.6.2-1.rockspec
inflating: luafilesystem-1.6.2.tar.gz
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/opt/lua/include -c src/lfs.c -o src/lfs.o
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -o lfs.so -L/usr/local/opt/lua/lib src/lfs.o
Updating manifest for /usr/local//lib/luarocks/rocks
luafilesystem 1.6.2-1 is now built and installed in /usr/local/
Error: uninitialized constant Prosody091
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formulary.rb:13:in `const_get'
/usr/local/Library/Homebrew/formulary.rb:13:in `get_formula_class'
/usr/local/Library/Homebrew/formulary.rb:51:in `klass'
/usr/local/Library/Homebrew/formulary.rb:130:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:175:in `factory'
/usr/local/Library/Homebrew/formula.rb:435:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:22:in `install'
/usr/local/Library/brew.rb:95:in `send'
/usr/local/Library/brew.rb:95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment