Skip to content
Prev 370117 / 398503 Next

Missing dependencies in pkg installs SOLVED

So apparently (being a linux novice) I didn't realize it was insufficient to simply have the file marked as executable. It turns out the default TMP directory on my machine  is mounted with a noexec flag so no files in that directory are allowed to be executed.  The solution is to set an environment variable TMPDIR=some new directory I created  (eg. /home/myusername/tmp) Then R uses that directory for the installs.  The easiest method then is to use do  

sudo R
Sys.setev(TMPDIR="/home/myusername/tmp") 
install.packages(pkglist)

the sudo R part just ensures I am installing into the global library and not a user specific library

--
W. Michael Conklin
EVP Marketing & Data Sciences
GfK 
T +1 763 417 4545 | M +1 612 567 8287 

-----Original Message-----
From: Conklin, Mike (GfK) 
Sent: Friday, June 23, 2017 4:38 PM
To: Don Cohen; Duncan Murdoch
Cc: Martin Maechler; r-help at r-project.org
Subject: Re: [R] Missing dependencies in pkg installs

Checked all the permissions, and it appears that file_test returns a FALSE and system(ls -l) shows it is executable, so the problem seems to be in R and it's relationship to RHEL.  I tried installing R3.3.3 to see if the older version would install stringi and had the same problem so it doesn't appear to be R3.4 related.  I am now reaching out to some other sources who may have installed R on similar systems.