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 -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-installing-a-package-in-R-tp2317979p2317979.html Sent from the R help mailing list archive at Nabble.com.
On Sun, 8 Aug 2010 13:55:28 -0700 (PDT) gagea <gagzarrei at yahoo.com> 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
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 > =================================================> 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?Did you try rm -rf /home/ubuntu/R/i486-pc-linux-gnu-library/2.9/00LOCK ? The lock dir is there to prevent two processes from messing with the same files at the same time, but can remain if an installation terminates prematurely. Do you have the appropriate permissions? It ia not clear to me whether that is supposed to be a user-level library or a system one. Is your user name "ubuntu"? (And is ubuntu really still shipping 2.9.x?) -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com