leafo/moonscript — Issue #21: on ubuntu fails to build
Author: i2matrix
Created: 2011-10-22 02:02:14+00:00
State: open

on ubuntu 10.04 LTS , i did
apt-get install luarocks
luarocks install lpeg
luarocks install luafilesystem
luarocks install alt-getopt
luarocks build http://moonscript.org/rocks/moonscript-0.1.0-1.rockspec

everything is done successfully.NOW. typing "moon" on bash prompt gives following error

/usr/bin/lua: /usr/local/share/lua/5.1//moonscript/errors.lua:2: module 'moonscript' not found:
no field package.preload['moonscript']
no file '/usr/local/share/lua/5.1//moonscript.lua'
no file '/usr/local/share/lua/5.1//moonscript/init.lua'
no file '/root/.luarocks/share/lua/5.1//moonscript.lua'
no file '/root/.luarocks/share/lua/5.1//moonscript/init.lua'
no file '/usr/local/share/lua/5.1//moonscript.lua'
no file '/usr/local/share/lua/5.1//moonscript/init.lua'
no file '/root/.luarocks/share/lua/5.1//moonscript.lua'
no file '/root/.luarocks/share/lua/5.1//moonscript/init.lua'
no file '/usr/share/lua/5.1//moonscript.lua'
no file '/usr/share/lua/5.1//moonscript/init.lua'
no file './moonscript.lua'
no file '/usr/local/share/lua/5.1/moonscript.lua'
no file '/usr/local/share/lua/5.1/moonscript/init.lua'
no file '/usr/local/lib/lua/5.1/moonscript.lua'
no file '/usr/local/lib/lua/5.1/moonscript/init.lua'
no file '/usr/share/lua/5.1/moonscript.lua'
no file '/usr/share/lua/5.1/moonscript/init.lua'
no file '/usr/local/lib/lua/5.1//moonscript.so'
no file '/root/.luarocks/lib/lua/5.1//moonscript.so'
no file '/usr/local/lib/lua/5.1//moonscript.so'
no file '/root/.luarocks/lib/lua/5.1//moonscript.so'
no file './moonscript.so'
no file '/usr/local/lib/lua/5.1/moonscript.so'
no file '/usr/lib/lua/5.1/moonscript.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/local/share/lua/5.1//moonscript/errors.lua:2: in main chunk
[C]: in function 'require'
...r/local/lib/luarocks/rocks/moonscript/dev-1/bin/moon:4: in main chunk
[C]: ?

HERE, why there are two forward slashes (//) in the debug output "/usr/local/share/lua/5.1//moonscript/errors.lua" ( see after /usr/local/share/lua/5.1 )

ALSO ADDITIOALLY I DID, ls /usr/local/share/lua/5.1/moonscript
compile compile.lua data.lua	dump.lua errors.lua parse.lua transform.lua	types.lua util.lua version.lua
THERE IS NO moonscript.lua here.