Friends,

I am a newbie to R. Just installed and started with R. I installed netcdf
library (netcdf-4.0.tar.gz) and then ncdf package of R from CRAN with the
following command.

 R CMD INSTALL
--configure-args="-with-netcdf_incdir=/usr/local/netcdf/include
-with-netcdf_libdir=/usr/local/netcdf/lib" ncdf_1.6.tar.gz

The installation was successful. But when i try to use ncdf inside R, i get
the following error. Kindly help me how to resolve the problem.

> trjfile<-system.file('test.netcdf',package='bio3d')
> trj<-read.ncdf(trjfile)
Loading required package: 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 read.ncdf(trjfile) : Please install the ncdf package from CRAN

Thanks in advance,
Bala

	[[alternative HTML version deleted]]


