Skip to content

Install error: permission denied (with sudo) #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
saizai opened this issue Apr 16, 2018 · 5 comments
Open

Install error: permission denied (with sudo) #16

saizai opened this issue Apr 16, 2018 · 5 comments

Comments

@saizai
Copy link

saizai commented Apr 16, 2018

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.
@pygy
Copy link
Owner

pygy commented Apr 16, 2018

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.

@saizai
Copy link
Author

saizai commented Apr 16, 2018

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

I don't have luajit installed.

@pygy
Copy link
Owner

pygy commented Apr 16, 2018

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.

@saizai
Copy link
Author

saizai commented Apr 16, 2018

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

@pygy
Copy link
Owner

pygy commented Apr 16, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants