R Error Failed To Create Lock Directory
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more 00lock r about Stack Overflow the company Business Learn more about hiring developers or posting
Failed To Obtain Dir Lock In Repository
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack cvs lock file Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up R install.packages returns “failed to create lock directory” up vote 12
Cvs User Permissions
down vote favorite 3 I get this error when downloading the Rcpp package: > install.packages("Rcpp", dependencies=TRUE) Installing package(s) into ‘/home/me/src/Rlibs’ (as ‘lib’ is unspecified) trying URL 'http://cran.us.r-project.org/src/contrib/Rcpp_0.10.2.tar.gz' Content type 'application/x-gzip' length 2380089 bytes (2.3 Mb) ... Warning in dir.create(lockdir, recursive = TRUE) : cannot create dir '/home', reason 'Permission denied' ERROR: failed to create lock directory ‘/home/me/src/Rlibs/00LOCK-Rcpp’ ... As my machine is on a computer cluster, I've tried it r change library path on different nodes, and I was careful to delete the temporary files downloaded in /tmp. What is strange is that I have rights to write in /home/me/src/Rlibs/. So my questions are: why does R want to have writing rights in /home while it only needs writing rights in /home/me/? how can I fix the error? > sessionInfo() R version 2.15.2 (2012-10-26) Platform: x86_64-redhat-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.15.2 r package share|improve this question edited Jan 17 '13 at 21:16 Brian Diggs 33.4k781124 asked Jan 17 '13 at 15:16 tflutre 1,01112036 add a comment| 1 Answer 1 active oldest votes up vote 20 down vote accepted The best way to avoid this is to use the '--no-lock' argument on the command line, e.g., R CMD INSTALL --no-lock
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack
Cvs Checkout
Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up R package installation up vote 3 down vote favorite 3 I have basically two questions. How http://stackoverflow.com/questions/14382209/r-install-packages-returns-failed-to-create-lock-directory/14389028 do I locate the default Rprofile which is running? I have not setup a Rprofile yet, so I am not sure where it is running from. I am trying to install a few packages using the command (after doing a SUDO in the main terminal). install.packages("RODBC","/home/rama/R/i486-pc-linux-gnu-library/2.9") and I get back an error which says: ERROR: failed to lock directory ‘/home/rama/R/i486-pc-linux-gnu-library/2.9’ for modifying Try removing ‘/home/rama/R/i486-pc-linux-gnu-library/2.9/00LOCK’ The downloaded packages are in ‘/tmp/RtmpkzDMVU/downloaded_packages’ http://stackoverflow.com/questions/1351937/r-package-installation Warning message: In install.packages("RODBC", "/home/rama/R/i486-pc-linux-gnu-library/2.9") : installation of package 'RODBC' had non-zero exit status r installation share|improve this question edited Dec 17 '15 at 6:39 A Handcart And Mohair 118k14161246 asked Aug 29 '09 at 17:21 Quantrix 1213 add a comment| 3 Answers 3 active oldest votes up vote 5 down vote accepted A few comments to your questions: Look at help(Startup). You are probably running $R_HOME/etc/Rprofile [ which on Ubuntu and Debian is also available as /etc/R/Rprofile as we created softlinks to connect them ] and you have both an empty $R_HOME/etc/Rprofile.site as well as ~/.Rprofile to play with. For starters, do ls -l on the lockfile and see it is there. If so, and if you have no other R process running, remove. Re-start the package install. RODBC needs development headers for an ODBC library and all that -- again, for Debian / Ubuntu you just say sudo apt-get install r-cran-rodbc. If you run another distro, see if they have RODBC prepackaged. Regarding ~/.Rprofile there are few possible tips and tricks you can learn from this earlier StackOverflow question. share|improve this answer answered Aug 29 '09 at 17:41 Dirk Eddelbuettel 208k23381479 add a comment| up vote 0 down vote Concerning your package installation, I think the problem is "/home/rama/R/
for visiting!For those of us still using CVS, rather than the highly acclaimed subversion, I wanted to outline a solution to a http://www.mooreds.com/wordpress/archives/234 common problem I've often seen: One user creates a cvs module (named, for http://r.789695.n4.nabble.com/Problem-with-installing-a-package-in-R-td2317979.html example, project) and checks in a number of files and directories. Then another developer tries to check out the module and sees this error. (Here's another explanation of the solution.) : cvs checkout: failed to create lock directory for
`/usr/local/cvsrepo/project'
(/usr/local/cvsrepo/project/#cvs.lock): Permission denied
: cvs checkout: failed to failed to obtain dir lock in repository
`/usr/local/cvsrepo/project'
: cvs [checkout aborted]: read lock failed - giving up If you go to /usr/local/cvsrepo/project, and run an ls -l, you'll see that the permissions look like: ...
drwxrwxr-x 2 user group 4096 Feb 16 09:40 bin
... This error message comes from the fact that the second user r error failed is not a member of group group. The best way to solve this is to create a second group, perhaps called cvs, and assign both users to that group. Then, you want to make sure that all the files have the correct group bit set: chown -R :cvs /usr/local/cvsrepo/project And, you want to make sure that any new directories (and files) added use the cvs group, rather than the group group: chmod -R g+ws /usr/local/cvsrepo/project Your final permissions should look like: ...
drwxrwsr-x 2 user cvs 4096 Feb 16 09:40 bin
... Now the second user and any other developers should be able to check out the code so safely stored in cvs. Programming | moore | February 16, 2005 29 thoughts on “"cvs checkout: failed to create lock directory" solution” Prateep Kulapalanont says: Exactly what I have the problem after read CVS for Leopard . Thanks Pradeep says: Hats Off Great work! Timely Help.. surendra kumar says: you saved my life man…! hats off thanks for the post man. moore says: All, Glad to help! Krishen says: This just help
post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Problem with installing a package in R! Dear friends, I am having problem with installing some packages in R in Ubuntu like "ISwR". Bellow is the outcome. Anybody can help me to solve this problem. Thanks a lot and sorry if it is very simple question. install.packages("ISwr") Loading Tcl/Tk interface ... done trying URL 'http://probability.ca/cran/src/contrib/ISwR_2.0-5.tar.gz'Content type 'application/x-gzip' length 157441 bytes (153 Kb) opened URL ================================================== downloaded 153 Kb ERROR: failed to lock directory ‘/home/ubuntu/R/i486-pc-linux-gnu-library/2.9’ for modifying Try removing ‘/home/ubuntu/R/i486-pc-linux-gnu-library/2.9/00LOCK’ The downloaded packages are in ‘/tmp/RtmpFDg2LG/downloaded_packages’ Warning message: In install.packages("ISwR") : installation of package 'ISwR' had non-zero exit status Liviu Andronic Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Problem with installing a package in R! On Sun, 8 Aug 2010 13:55:28 -0700 (PDT) gagea <[hidden email]> wrote: > ERROR: failed to lock directory > ‘/home/ubuntu/R/i486-pc-linux-gnu-library/2.9’ for modifying > Try removing ‘/home/ubuntu/R/i486-pc-linux-gnu-library/2.9/00LOCK’ > Are you installing from user? Perhaps try from root. Liviu ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code. Peter Dalgaard-2 Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Problem with installing a package in R! In reply to this post by gagea gagea wrote: > Dear friends, > > I am having problem with installing some packages in R in Ubuntu like > "ISwR". Bellow is the outcome. Anybody can help me to solve this problem. > Thanks a lot and sorry if it is very simple question. > > > install.packages("ISwr") ...ISwR..., I presume. > Loading Tcl/Tk interface ... done > trying URL 'http://probability.ca/cran/src/contrib/ISwR_2.0-5.tar.gz'> Content type 'application/x-gzip' length 157441 bytes (153 Kb) > opened URL > ===========================================