sailorproject / sailor

A Lua MVC Web Framework.
MIT License
924 stars 124 forks source link

Sailor not installing on Linux Mint 17.1 #89

Closed felipedaragon closed 8 years ago

felipedaragon commented 8 years ago

Tried to install Sailor in Mint 17.1 Cinnamon 32bit. I was able to install luarocks after making a sudo apt-get update. But then when calling luarocks install sailor I ran into something different: (...) cp: cannot stat ‘valua.lua’: No such file or directory

Error: Failed installing dependency: http://luarocks.org/repositories/rocks/valua-0.3-1.src.rock - Failed copying valua.lua

Etiene commented 8 years ago

As mentioned here, your luarocks version is 2.0.8, please update it before we narrow this down :)

felipedaragon commented 8 years ago

@Etiene configure gave a lot more info: ~/luarocks $ ./configure Lua interpreter found: /usr/bin/lua... Lua version detected: 5.1 lua found in $PATH: /usr/bin Checking Lua includes... lua.h found in /usr/include/lua5.1/lua.h (Debian/Ubuntu) wget found at /usr/bin md5sum found at /usr/bin Configuring for system... Linux Configuring for architecture... i686 Using unversioned rocks dir: /usr/local/lib/luarocks/rocks Writing configuration...

Installation prefix: /usr/local LuaRocks configuration directory: /usr/local/etc/luarocks Using Lua from: /usr

Done configuring.

Etiene commented 8 years ago

I don't see anything unusual with that. Have you updated the version now?

felipedaragon commented 8 years ago

Nope, after make install I get ~/luarocks $ luarocks lua5.1: /usr/local/share/lua/5.1/luarocks/help.lua:14: attempt to call field 'this_program' (a nil value) stack traceback: /usr/local/share/lua/5.1/luarocks/help.lua:14: in main chunk C: in function 'require' /usr/bin/luarocks:10: in main chunk

felipedaragon commented 8 years ago

Before this I tried upgrading with apt-get but it would say that 2.0.8 was the latest release

Etiene commented 8 years ago

apt-get version is very outdated and I think it won't let you do luarocks install luarocks to update it. Self update was introduced after that... So downloading and compiling it is. But I am not sure why you are unable to do make install, I have not got this error before, maybe you should try opening an issue within luarocks. Are you running it with sudo?

felipedaragon commented 8 years ago

Yes, I used sudo.

Etiene commented 8 years ago

Submit an issue to luarocks itself like I mentioned, then :)

felipedaragon commented 8 years ago

Worked after following Hisham instructions at https://github.com/keplerproject/luarocks/issues/505 o/

Updating manifest for /usr/local/lib/luarocks/rocks sailor 0.5-4 is now built and installed in /usr/local (license: MIT)