lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello Hisham,

It was installed this way "apt-get install luarocks"

So,this time I downloaded ,cofigure,make and make install. I don't think it installed properly.
Please take a look.

rmicro@ubuntu:~/luarocks-2.0.8$ make
for f in luarocks luarocks-admin ;\
do \
  sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bin/$f ;\
  rm src/bin/$f.bak ;\
done
rm -f src/luarocks/site_config.lua
echo 'module("luarocks.site_config")' >> src/luarocks/site_config.lua
if [ -n "/usr/local" ] ;\
then \
  echo "LUAROCKS_PREFIX=[[/usr/local]]" >> src/luarocks/site_config.lua ;\
fi
if [ -n "/usr/local/include" ] ;\
then \
  echo "LUA_INCDIR=[[/usr/local/include]]" >> src/luarocks/site_config.lua ;\
fi
if [ -n "/usr/local/lib" ] ;\
then \
  echo "LUA_LIBDIR=[[/usr/local/lib]]" >> src/luarocks/site_config.lua ;\
fi
if [ -n "/usr/local/bin" ] ;\
then \
  echo "LUA_BINDIR=[[/usr/local/bin]]" >> src/luarocks/site_config.lua ;\
fi
if [ -n "" ] ;\
then \
  echo "LUA_INTERPRETER=[[lua]]" >> src/luarocks/site_config.lua ;\
fi
if [ -n "/usr/local/etc/luarocks" ] ;\
then \
  echo "LUAROCKS_SYSCONFIG=[[/usr/local/etc/luarocks/config.lua]]" >> src/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=[[Linux]]" >> 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=[[md5sum]]" >> 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/share/lua/5.1//?.lua;/usr/local/share/lua/5.1//?/init.lua;]]..package.path" >> src/bin/$f ;\
  cat src/bin/$f.bak >> src/bin/$f ;\
  rm src/bin/$f.bak ;\
done
touch built

Done. Type 'make install' to install into /usr/local.



rmicro@ubuntu:~/luarocks-2.0.8$ sudo make install
[sudo] password for rmicro: 
for f in luarocks luarocks-admin ;\
do \
  sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bin/$f ;\
  rm src/bin/$f.bak ;\
done
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/share/lua/5.1//?.lua;/usr/local/share/lua/5.1//?/init.lua;]]..package.path" >> src/bin/$f ;\
  cat src/bin/$f.bak >> src/bin/$f ;\
  rm src/bin/$f.bak ;\
done
touch built

Done. Type 'make install' to install into /usr/local.

mkdir -p "/usr/local/bin"
cd src/bin && cp luarocks luarocks-admin "/usr/local/bin"
mkdir -p "/usr/local/share/lua/5.1//luarocks"
cd src/luarocks && for f in fs/unix/tools.lua fs/unix.lua fs/win32/tools.lua fs/win32.lua fs/lua.lua persist.lua list.lua require.lua rep.lua dir.lua make_manifest.lua command_line.lua install.lua build/command.lua build/cmake.lua build/make.lua build/builtin.lua fetch/cvs.lua fetch/git.lua fetch/sscm.lua tools/patch.lua fetch/svn.lua tools/zip.lua tools/tar.lua pack.lua type_check.lua make.lua path.lua remove.lua fs.lua manif.lua add.lua deps.lua build.lua search.lua show.lua manif_core.lua fetch.lua unpack.lua validate.lua cfg.lua download.lua help.lua util.lua index.lua cache.lua add.lua refresh_cache.lua loader.lua admin_remove.lua fetch/hg.lua fetch/git_file.lua; do d="/usr/local/share/lua/5.1//luarocks"/`dirname "$f"`; mkdir -p "$d"; cp "$f" "$d"; done
mkdir -p "/usr/local/share/lua/5.1//luarocks"
cd src/luarocks && cp site_config.lua "/usr/local/share/lua/5.1//luarocks"
mkdir -p "/usr/local"
if [ ! -f "/usr/local/etc/luarocks/config.lua" ] ;\
then \
  mkdir -p `dirname "/usr/local/etc/luarocks/config.lua"` ;\
  echo 'rocks_servers = {' >> "/usr/local/etc/luarocks/config.lua" ;\
  echo '   [[http://luarocks.org/repositories/rocks]]' >> "/usr/local/etc/luarocks/config.lua" ;\
  echo '}' >> "/usr/local/etc/luarocks/config.lua" ;\
  echo 'rocks_trees = {' >> "/usr/local/etc/luarocks/config.lua" ;\
  if  [ ! -n "" ] ;\
  then \
     echo '   home..[[/.luarocks]],' >> "/usr/local/etc/luarocks/config.lua" ;\
  fi ;\
  echo '   [[/usr/local]]' >> "/usr/local/etc/luarocks/config.lua" ;\
  echo '}' >> "/usr/local/etc/luarocks/config.lua" ;\
fi
rmicro@ubuntu:~/luarocks-2.0.8$ 


On Sat, May 26, 2012 at 1:26 AM, Hisham <h@hisham.hm> wrote:
On Fri, May 25, 2012 at 8:10 PM, Emeka <emekamicro@gmail.com> wrote:
> Hello All,
>
> I got the below while trying  to use luarocks. Looks like it was checking
> out Lua 5.1 while I have moved up to 5.2
>
> rmicro@ubuntu:~/Downloads/luarocks-0.1$ luarocks install luasocket

Wait -- are you running LuaRocks 0.1? The latest version is 2.0.8, and
2.0.9 is coming really soon (we already have rc2 out now). Please make
sure you are running the latest version.

-- Hisham




--
Satajanus  Nig. Ltd