Install error: permission denied (with sudo)
sudo -H luarocks install lulpeg:
Installing https://luarocks.org/lulpeg-0.1.0-1.src.rock
scripts/make.sh
sh: scripts/make.sh: Permission denied
Error: Build error: Failed building.
Hi @saizai, that's surprising... Are you able to install other rocks?
What OS are you using (and what version)?
I see that the make.sh script invokes LuaJIT, do you have it installed? I should move that to Lua, there's no reason to use LuaJIT there.
OSX 10.13.3. And yes, able to install others just fine.
I don't have luajit installed.
Thanks.
Could you try to install LuaJIT? brew install luajit should work (it will give you v2.0.x though, not v2.1, but it doesn't matter much).
Publishing rocks is something I don't do often, I'm not sure I still have my password handy and I have little time right now.
$ luajit -v
LuaJIT 2.0.5 -- Copyright (C) 2005-2017 Mike Pall. http://luajit.org/
$ CC=clang CXX=clang++ sudo -H luarocks install lulpeg
Password:
Installing https://luarocks.org/lulpeg-0.1.0-1.src.rock
scripts/make.sh
sh: scripts/make.sh: Permission denied
Error: Build error: Failed building.
Thanks that's odd, I can't reproduce the issue locally.
It may be related to the file permissions. No need for the CCand CXX variables, this is a purely Lua-based build step (think Browserify in the JS world).
I'll look into this later this evening.