mxcl/homebrew — Issue #10595: Failed to install luarocks formula
Author: datanoise
Created: 2012-02-29 19:14:53+00:00
State: open

```

==> Patching
patching file src/luarocks/fs/lua.lua
Hunk #1 succeeded at 633 (offset 14 lines).
==> ./configure --prefix=/usr/local/Cellar/luarocks/2.0.7.1 --rocks-tree=/usr/lo
cal --sysconfdir=/usr/local/et
==> make
for f in luarocks luarocks-admin ;\\
do \\
sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bi
n/$f ;\\
rm src/bin/$f.bak ;\\
done
rm -f src/luarocks/site_config.lua
for f in luarocks luarocks-admin ;\\
do \\
sed "1d" src/bin/$f >> src/bin/$f.bak ;\\
echo "#!/usr/local/bin/lua" > src/bin/$f ;\\
echo "package.path = [[/usr/local/Cellar/luarocks/2.0.7.1/share/lua/5
.1//?.lua;/usr/local/Cellar/luarocks/2.0.7.1/share/lua/5.1//?/init.lua;]]..packa
ge.path" >> src/bin/$f ;\\
cat src/bin/$f.bak >> src/bin/$f ;\\
rm src/bin/$f.bak ;\\
done
echo 'module("luarocks.site_config")' >> src/luarocks/site_config.lua
if [ -n "/usr/local/Cellar/luarocks/2.0.7.1" ] ;\\
then \\
echo "LUAROCKS_PREFIX=[[/usr/local/Cellar/luarocks/2.0.7.1]]" >> src/
luarocks/site_config.lua ;\\
fi
if [ -n "/usr/local/include" ] ;\\
then \\
echo "LUA_INCDIR=[[/usr/local/include]]" >> src/luarocks/site_config.
lua ;\\
fi
cat: src/bin/luarocks.bak: No such file or directory
if [ -n "/usr/local/lib" ] ;\\
then \\
echo "LUA_LIBDIR=[[/usr/local/lib]]" >> src/luarocks/site_config.lua
;\\
fi
rm: src/bin/luarocks.bak: No such file or directory
if [ -n "/usr/local/bin" ] ;\\
then \\
echo "LUA_BINDIR=[[/usr/local/bin]]" >> src/luarocks/site_config.lua
;\\
fi
cat: src/bin/luarocks-admin.bak: No such file or directory
if [ -n "" ] ;\\
then \\
echo "LUA_INTERPRETER=[[lua]]" >> src/luarocks/site_config.lua ;\\
fi
rm: src/bin/luarocks-admin.bak: No such file or directory
make: *** [build_bins] Error 1
make: *** Waiting for unfinished jobs....
if [ -n "/usr/local/etc/luarocks" ] ;\\
then \\
echo "LUAROCKS_SYSCONFIG=[[/usr/local/etc/luarocks/config.lua]]" >> s
rc/luarocks/site_config.lua ;\\
fi
if [ -n "/usr/local" ] ;\\
then \\
echo "LUAROCKS_ROCKS_TREE=[[/usr/local]]" >> src/luarocks/site_config
.lua ;\\
fi
if [ -n "" ] ;\\
then \\
echo "LUAROCKS_FORCE_CONFIG=true" >> src/luarocks/site_config.lua ;\\

fi
echo "LUAROCKS_UNAME_S=[[Darwin]]" >> src/luarocks/site_config.lua
echo "LUAROCKS_UNAME_M=[[x86_64]]" >> src/luarocks/site_config.lua
echo "LUAROCKS_DOWNLOADER=[[wget]]" >> src/luarocks/site_config.lua
echo "LUAROCKS_MD5CHECKER=[[openssl]]" >> src/luarocks/site_config.lua
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/luarocks.rb#L34
=
```