severak / lunarender

lua-based OpenStreetMap renderer. WIP
MIT License
20 stars 1 forks source link

Linux support #1

Closed gileri closed 8 years ago

gileri commented 8 years ago

I don't have much exeperience on lua, but I can't manage to launch lunarender on linux ('%' and before is my bash prompt):

% lua bin/lunarender.lua lua: bin/lunarender.lua:5: module 'lunarender.reader' not found

% PATH=.:./bin:./lib:./lib/lua:$PATH lua bin/lunarender.lua lua: bin/lunarender.lua:5: module 'lunarender.reader' not found

lunarender/lib/lua% lua ../../bin/lunarender.lua lua: ./lunarender/reader.lua:5: module 'lxp' not found

severak commented 8 years ago
  1. run lua and then print(package.path)
  2. copy files from lunarender/lib/lua to path reported by previous step
  3. install LuaExpat
  4. try again rendering

unfortunately not having linux box at home to trying it by myself

gileri commented 8 years ago

Thanks to your advice, it's working now ! I thought it was packaged because of the lib/lua/lxp/lom.lua file, but indeed it was missing.