lua-users home
lua-l archive

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


hi

I cannot run luarocks on windows xp with mingw/msys environment and in
a rvxt terminal

Setup
====
- windows xp, (version 5.1, sp3)
- minGW 5.1.3
- gcc version 3.4.5 (mingw-vista special r3)
- Lua 5.1.4
- luarocks1.0

Build
====
 $ ./configure && make && make install
[no errors - this runs OK]

Resultiing files
============
The executables:
   /local/bin/luarocks
   /local/bin/luarocks-admin

The luarocks scripts:
   /local/share/lua/5.1/luarocks/

Error:
====
When I want to run "luarocks" I get the following error. It says that
it cant find the luarocks scripts. Since the files are there, it might
be someting wrong with the path mapping.

This looks strange:
       no file '/usr/local/share/lua/5.1//luarocks\command_line.lua'
       no file '/usr/local/share/lua/5.1//luarocks\command_line/init.lua'

----- error log ------
C:\msys\1.0\local\bin\lua: C:/msys/1.0/local/bin/luarocks:4: module
'luarocks.command_line' not found:
       no field package.preload['luarocks.command_line']
       no file '/usr/local/share/lua/5.1//luarocks\command_line.lua'
       no file '/usr/local/share/lua/5.1//luarocks\command_line/init.lua'
       no file '.\luarocks\command_line.lua'
       no file 'C:\msys\1.0\local\bin\lua\luarocks\command_line.lua'
       no file 'C:\msys\1.0\local\bin\lua\luarocks\command_line\init.lua'
       no file 'C:\msys\1.0\local\bin\luarocks\command_line.lua'
       no file 'C:\msys\1.0\local\bin\luarocks\command_line\init.lua'
       no file '.\luarocks\command_line.dll'
       no file 'C:\msys\1.0\local\bin\luarocks\command_line.dll'
       no file 'C:\msys\1.0\local\bin\loadall.dll'
       no file '.\luarocks.dll'
       no file 'C:\msys\1.0\local\bin\luarocks.dll'
       no file 'C:\msys\1.0\local\bin\loadall.dll'
stack traceback:
       [C]: in function 'require'
       C:/msys/1.0/local/bin/luarocks:4: in main chunk
       [C]: ?
-----
It would be good if the first two lines in the list worked because
minGW and msys doesn't like windows pathes.

Hmm, any ideas?

thanks in advance
ben