configure files not executable when installing from github #32

Closed
cboettig opened this Issue Dec 6, 2011 · 7 comments

Comments

Projects
None yet
3 participants

cboettig commented Dec 6, 2011

install_github() cannot run the configure file to set up pre-installed C libraries, etc. see stackoverflow question

Owner

hadley commented Dec 29, 2011

Reproducible code:

install_github("mcmcTools", "cboettig")
install_github("wrightscape", "cboettig")

@hadley hadley closed this in 10d0330 Dec 29, 2011

Hmm, no go for me. Still complains that configure file is not executable:

Installing package(s) into '/home/cboettig/R/x86_64-pc-linux-gnu-library/2.14'
(as 'lib' is unspecified)
* installing *source* package 'wrightscape' ...
ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual'
* removing '/home/cboettig/R/x86_64-pc-linux-gnu-library/2.14/wrightscape'
* restoring previous '/home/cboettig/R/x86_64-pc-linux-gnu-library/2.14/wrightscape'

Perhaps this is a platform-dependent issue? I'm running ubuntu 11.10 with R-2.14.1.

Don't know if it helps: on my machine, I have a similar issue (with another package, igraph) as /tmp is a tmpfs mounted with option "noexec", which means that files are not executable regardless of the permission. As R uses /tmp by default to unpack and build packages, this caused the error in my case. So I solved executing the following before install:

sudo mount -o remount,exec /tmp

an alternative would be to tell R to use a different temporary directory but I don't know how..

@hadley hadley reopened this Jun 3, 2012

Owner

hadley commented Jun 3, 2012

You can set envars: see tempfile

Owner

hadley commented Jun 14, 2012

Works for me - which I think means that you need to set TMP to point to a writeable directory.

@hadley hadley closed this Jun 14, 2012

cool, works for me. thanks!

On Thu, Jun 14, 2012 at 12:58 PM, hadley wickham <
reply@reply.github.com

wrote:

Works for me - which I think means that you need to set TMP to point to
a writeable directory.


Reply to this email directly or view it on GitHub:
#32 (comment)

Carl Boettiger
UC Davis
http://www.carlboettiger.info/

indeed a cleaner alternative is to set TMPDIR to a different location, e.g.

export TMPDIR=~/tmp

as documented here:
http://cran.r-project.org/doc/manuals/R-admin.html#Running-R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment