LuLPeg icon indicating copy to clipboard operation
LuLPeg copied to clipboard

Install error: permission denied (with sudo)

Open saizai opened this issue 7 years ago • 5 comments

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.

saizai avatar Apr 16 '18 11:04 saizai

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.

pygy avatar Apr 16 '18 11:04 pygy

OSX 10.13.3. And yes, able to install others just fine.

I don't have luajit installed.

saizai avatar Apr 16 '18 11:04 saizai

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.

pygy avatar Apr 16 '18 13:04 pygy

$ 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.

saizai avatar Apr 16 '18 13:04 saizai

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.

pygy avatar Apr 16 '18 13:04 pygy