Hi, In install.packages, there is something called *lib* which says, lib: character vector giving the library directories where to install the packages. Recycled as needed. If missing, defaults to '.libPaths()[1]'.
If i have to give the lib option as an arguement, what should be the path for the installation, should it be */usr/local/lib* or */usr/lib/R/lib* or * /usr/lib/R/library/ncdf/libs/* Bala On Tue, Apr 21, 2009 at 2:14 PM, Bala subramanian <bala.biophys...@gmail.com > wrote: > Hi, > I tried to install from four different mirrors. The result is the same. I > dnt understand what the following error means. > /usr/lib/R/library/ncdf/libs/ncdf.so: cannot restore segment prot after > reloc: Permission denied > Error in library(ncdf) : .First.lib failed for 'ncdf' > > I even tried to change the permission of ncdf.so but still i am not able to > load the library. > > Bala > > > > On Tue, Apr 21, 2009 at 2:03 PM, Dimitri Liakhovitski <ld7...@gmail.com>wrote: > >> Try to install from scratch from a different mirror. >> Dimitri >> >> On Tue, Apr 21, 2009 at 6:21 AM, Bala subramanian >> <bala.biophys...@gmail.com> wrote: >> > Hi, >> > Yes ncdf needs netcdf, netcdf is already installed in my fedora10. I >> > reinstalled ncdf with the following option >> >>install.packages('ncdf',dep=TRUE) >> >>library(ncdf)> library(ncdf) >> > Error in dyn.load(file, DLLpath = DLLpath, ...) : >> > unable to load shared library '/usr/lib/R/library/ncdf/libs/ncdf.so': >> > /usr/lib/R/library/ncdf/libs/ncdf.so: cannot restore segment prot after >> > reloc: Permission denied >> > Error in library(ncdf) : .First.lib failed for 'ncdf' >> > >> > Again the same error, >> > Bala >> > >> > >> > On Tue, Apr 21, 2009 at 12:12 PM, Liviu Andronic < >> landronim...@gmail.com>wrote: >> > >> >> On Tue, Apr 21, 2009 at 11:57 AM, Bala subramanian >> >> <bala.biophys...@gmail.com> wrote: >> >> > Dear Simon, >> >> > I installed the ncdf package in the way you suggested but still i got >> the >> >> > same error i got before. I haves pasted below the installation log >> and >> >> > errors. >> >> > >> >> Does ncdf depend on netcdf [1]? If so, perhaps it is missing, or is >> >> not up-to-date. Also, it's a good habit to install.packages('ncdf', >> >> dep=TRUE). >> >> Regards, >> >> Liviu >> >> >> >> [1] http://www.unidata.ucar.edu/software/netcdf/ >> >> >> > >> > [[alternative HTML version deleted]] >> > >> > ______________________________________________ >> > R-help@r-project.org mailing list >> > https://stat.ethz.ch/mailman/listinfo/r-help >> > PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> > and provide commented, minimal, self-contained, reproducible code. >> > >> >> >> >> -- >> Dimitri Liakhovitski >> MarketTools, Inc. >> dimitri.liakhovit...@markettools.com >> > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.