login community faq

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

1
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

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

asked Jul 09 '12 at 09:40

andre's gravatar image

andre
32

edited Jul 09 '12 at 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!

answered Jul 09 '12 at 10:17

seanf's gravatar image

seanf ♦♦
56441220

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.

(Jul 09 '12 at 10:51) andre andre's gravatar image

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 :)

(Jul 10 '12 at 05:00) andre andre's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×127
×3

Asked: Jul 09 '12 at 09:40

Seen: 423 times

Last updated: Jul 10 '12 at 05:00

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited