You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LuaRocks may add some lines to site_config.lua, like this:
if [ -n"$(MULTIARCH_SUBDIR)" ] ;\
then \
echo'site_config.LUAROCKS_EXTERNAL_DEPS_SUBDIRS={ bin="bin", lib={ "lib", [[$(MULTIARCH_SUBDIR)]] }, include="include" }'>> src/luarocks/site_config.lua ;\
echo'site_config.LUAROCKS_RUNTIME_EXTERNAL_DEPS_SUBDIRS={ bin="bin", lib={ "lib", [[$(MULTIARCH_SUBDIR)]] }, include="include" }'>> src/luarocks/site_config.lua ;\
fi
Where $MULTIARCH_SUBDIR) is set as follows:
if [ "$LUAROCKS_UNAME_S"= Linux ]
then
GCC_ARCH=`gcc -print-multiarch 2>/dev/null`if [ -n"$GCC_ARCH"-a-d"/usr/lib/$GCC_ARCH" ]
then
MULTIARCH_SUBDIR="lib/$GCC_ARCH"elif [ -d"/usr/lib64" ]
then# Useful for Fedora systems
MULTIARCH_SUBDIR="lib64"fifi
LuaRocks may add some lines to site_config.lua, like this:
Where
$MULTIARCH_SUBDIR)
is set as follows:(
$LUAROCKS_UNAME_S
isuname -s
)These lines are not in site_config.lua installed by torch/distro: https://github.com/torch/luajit-rocks/blob/411f4b9d9c4be176d4aab965ebfce50911583e14/luarocks/src/luarocks/site_config.lua.in
This affects ease of linking Lua rocks with libraries installed e.g. in
/usr/lib/x86_64-linux-gnu
, see daurnimator/lua-http#39 (comment)The text was updated successfully, but these errors were encountered: