WebFaction
Community site: login faq

I'm getting the following error while trying to install Nix package manager following the PRoot installation from Nix wiki.

[nix-mnt]$  ~/opt/bin/proot-x86_64 -b ~/opt/nix-mnt/nix-1.8-x86_64-linux/:/nix bash
proot error: execve("/bin/bash"): Permission denied
proot info: possible causes:
  * the program is a script but its interpreter (eg. /bin/sh) was not found;
  * the program is an ELF but its interpreter (eg. ld-linux.so) was not found;
  * the program is a foreign binary but qemu was not specified;
  * qemu does not work correctly (if specified);
  * the loader was not found or doesn't work.
fatal error: see `proot-x86_64 --help`.
proot error: can't chmod '/tmp/proot-32419-yS178c': No such file or directory

I've successfully installed nix in another 3 servers without root access without a hitch, using the same instructions. Any ideas?

asked 07 Sep '15, 05:44

jmiranda
136
accept rate: 100%

edited 07 Sep '15, 05:48


As seanf suggested the problem was related to /tmp mounted with the noexec flag.

The problem lies within latest PRoom release 5.1.0v which ignores $TMPDIR env. variable.

To fix this I had to compile PRoot from **next** branch which address this using the PROOT_TMP_DIR env variable.

git clone -b next https://github.com/proot-me/PRoot.git
cd PRoot/src
make
mv proot ~/opt/bin/proot-x86_64
cd ~/opt/bin
chmod +x proot-x86_64
export PROOT_TMP_DIR=~/tmp
 ~/opt/bin/proot-x86_64 -b ~/opt/nix-mnt/nix-1.8-x86_64-linux/:/nix bash

Thanks for answering seanf.

permanent link

answered 08 Sep '15, 07:00

jmiranda
136
accept rate: 100%

edited 08 Sep '15, 14:34

It looks to me like you might be trying to execute a script from /tmp.

Our system /tmp directory is flagged noexec, so try making your own tmp directory like this:

mkdir ~/tmp
export TMPDIR=~/tmp

Then try running your command again.

Hope that helps!

permanent link

answered 07 Sep '15, 12:14

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×44
×4
×3
×1
×1

question asked: 07 Sep '15, 05:44

question was seen: 1,614 times

last updated: 08 Sep '15, 14:34

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM