Dear all,
working with R under Linux, I am not able to install the ncdf-package.
The following appears:
install.packages("ncdf")
Warnung in install.packages("ncdf") :
argument 'lib' is missing: using
'/user/silke/R/x86_64-unknown-linux-gnu-library/2.6'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
versuche URL
'http://ftp5.gwdg.de/pub/misc/cran/src/contrib/ncdf_1.6.tar.gz'
Content type 'application/x-gzip' length 72533 bytes (70 Kb)
URL ge?ffnet
=================================================downloaded 70 Kb
/automount/user/silke/R/x86_64-unknown-linux-gnu-library/2.6
* Installing *source* package 'ncdf' ...
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking netcdf.h usability... yes
checking netcdf.h presence... yes
checking for netcdf.h... yes
Found netcdf.h in: .
checking for nc_open in -lnetcdf... yes
Found netcdf library file libnetcdf.a in directory .
configure: creating ./config.status
config.status: creating R/load.R
config.status: creating src/Makevars
** libs
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/lib64/R/include -I.
-I/usr/local/include -fpic -g -O2 -c ncdf2.c -o ncdf2.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/lib64/R/include -I.
-I/usr/local/include -fpic -g -O2 -c ncdf3.c -o ncdf3.o
ncdf3.c: In function ?R_nc_get_vara_charvarid?:
ncdf3.c:221: warning: assignment discards qualifiers from pointer target
type
ncdf3.c: In function ?R_nc_get_vara_numvarid?:
ncdf3.c:267: warning: assignment discards qualifiers from pointer target
type
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/lib64/R/include -I.
-I/usr/local/include -fpic -g -O2 -c ncdf.c -o ncdf.o
ncdf.c: In function ?R_nc_ttc_to_nctype?:
ncdf.c:424: warning: implicit declaration of function ?exit?
ncdf.c:424: warning: incompatible implicit declaration of built-in
function ?exit?
gcc -std=gnu99 -shared -L/usr/local/lib64 -o ncdf.so ncdf2.o ncdf3.o
ncdf.o -L. -lnetcdf -L/usr/lib64/R/lib -lR
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
/usr/local/lib64/libnetcdf.a(attr.o): relocation R_X86_64_32S against `a
local symbol' can not be used when making a shared object; recompile
with -fPIC
/usr/local/lib64/libnetcdf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ncdf.so] Fehler 1
chmod: Zugriff auf
?/automount/user/silke/R/x86_64-unknown-linux-gnu-library/2.6/ncdf/libs/*?
nicht m?glich: Datei oder Verzeichnis nicht gefunden
ERROR: compilation failed for package 'ncdf'
** Removing
'/automount/user/silke/R/x86_64-unknown-linux-gnu-library/2.6/ncdf'
The downloaded packages are in
/tmp/RtmpyWv2CU/downloaded_packages
Warning message:
In install.packages("ncdf") :
installation of package 'ncdf' had non-zero exit status
Any ideas?
Thanks in advance,
Silke.