Perhaps start by reading the posting guidelines.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Muhammad Rahiz <muhammad.ra...@ouce.ox.ac.uk> wrote:

Dear all,

I'm having issues with the installation of the ncdf package. It returns a 
non-zero exit status. Can anyone suggest what I should do next? FYI, I do 
not have problems installing other packages.

Thanks.

Muhammad


* installing *source* package ‘ncdf’ ...
checking for nc-config... /usr/local/bin/nc-config
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -I/usr/local/include 
-I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -c ncdf.c -o ncdf.o
gcc -m64 -std=gnu99 -I/usr/include/R -I/usr/local/include 
-I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -c ncdf2.c -o ncdf2.o
gcc -m64 -std=gnu99 -I/usr/include/R -I/usr/local/include 
-I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -c ncdf3.c -o ncdf3.o
gcc -m64 -std=gnu99 -shared -L/usr/local/lib64 -o ncdf.so ncdf.o ncdf2.o 
ncdf3.o -L/usr/local/lib -lnetcdf -L/usr/lib64/R/lib -lR
/usr/bin/ld: /usr/local/lib/libnetcdf.a(attr.o): relocation R_X86_64_32 
against `.rodata' can not be used when making a shared object; recompile 
with -fPIC
/usr/local/lib/libnetcdf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ncdf.so] Error 1
ERROR: compilation failed for package ‘ncdf’
* removing ‘/home/rahiz/R/x86_64-redhat-linux-gnu-library/2.13/ncdf’

The downloaded packages are in
        ‘/tmp/Rtmp5khIxy/downloaded_packages’
Warning message:
In install.packages("ncdf") :
installation of package 'ncdf' had non-zero exit 
status_____________________________________________

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.


        [[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.

Reply via email to