WebFaction
Community site: login faq

I'm using zc.buildout to install nginx for my custom app, but buildout fails the nginx install with the following error:

sh: ./configure: /bin/sh: bad interpreter: Permission denied

Anyone know why this is, and how I can fix it?

Edit: here is my nginx config in my buildout config

[nginx]
recipe = zc.recipe.cmmi
url = http://nginx.org/download/nginx-1.2.2.tar.gz
environment = TMPDIR=${buildout:directory}/tmp

asked 09 Jul '12, 09:40

andre
1139
accept rate: 0%

edited 09 Jul '12, 10:52


It's probably failing because buildout is attempting to run a script from the system /tmp volume, which is mounted as noexec.

The solution is to create your own tmp directory within your home directory and set your TMPDIR environment variable to point to it, either at the command line prior to running buildout, or in buildout.cfg via the cmmi recipe's environment option.

Hope that helps!

permanent link

answered 09 Jul '12, 10:17

seanf
12.2k42136
accept rate: 37%

This is definitely the issue. Setting TMPDIR manually does the job. Setting it in my buidlout config unfortunately does not work, it still fails with the same error, and seems to try to use the default /tmp folder. I'll update my original post with the nginx bit.

(09 Jul '12, 10:51) andre

Ok I found that the default zc.recipe.cmmi does not set the tmpdir environment variable correctly for some reason. I ended up using hexagonit.recipe.cmmi which has a slightly different approach to setting the variables, but it works :)

(10 Jul '12, 05:00) andre
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:

×186
×3

question asked: 09 Jul '12, 09:40

question was seen: 2,460 times

last updated: 10 Jul '12, 05:00

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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