Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Problems encountered and solutions offered

...

  1. I got the following errors trying to add those packages in Teton. When I don't add “repos='<http://cran.us.r-project.org'“> it requests to select a CRAN mirror and it crashs later. If anyone can help me, Id appreciate it.

>install.packages("ncdf4", repos='http://cran.us.r-project.org')
Installing package into '/pfs/tc1/project/modelscape/users/cbarbosa/share/Rlibs/r4.0'
(as 'lib' is unspecified)
trying URL 'http://cran.us.r-project.org/src/contrib/ncdf4_1.19.tar.gz'
Content type 'application/x-gzip' length 126381 bytes (123 KB)

downloaded 123 KB

  • installing source package 'ncdf4' ...
    ** package 'ncdf4' successfully unpacked and MD5 sums checked
    ** using staged installation
    http://configure.ac : starting
    checking for nc-config... no

Error, nc-config not found or not executable. This is a script that comes with the
netcdf library, version 4.1-beta2 or later, and must be present for configuration
to succeed.

If you installed the netcdf library (and nc-config) in a standard location, nc-config
should be found automatically. Otherwise, you can specify the full path and name of
the nc-config script by passing the --with-nc-config=/full/path/nc-config argument
flag to the configure script. For example:

./configure --with-nc-config=/sw/dist/netcdf4/bin/nc-config

Special note for R users:

To pass the configure flag to R, use something like this:

R CMD INSTALL --configure-args="--with-nc-config=/home/joe/bin/nc-config" ncdf4

where you should replace /home/joe/bin etc. with the location where you have
installed the nc-config script that came with the netcdf 4 distribution.

ERROR: configuration failed for package 'ncdf4'

  • removing '/pfs/tc1/project/modelscape/users/cbarbosa/share/Rlibs/r4.0/ncdf4'

The downloaded source packages are in
'/tmp/Rtmpd0ip2F/downloaded_packages'
Warning message:
In install.packages("ncdf4", repos = "http://cran.us.r-project.org") :
installation of package 'ncdf4' had non-zero exit status

>install.packages("sf", repos='http://cran.us.r-project.org')
Installing package into '/pfs/tc1/project/modelscape/users/cbarbosa/share/Rlibs/r4.0'
(as 'lib' is unspecified)
also installing the dependency 's2'

trying URL 'http://cran.us.r-project.org/src/contrib/s2_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2283183 bytes (2.2 MB)

downloaded 2.2 MB

trying URL 'http://cran.us.r-project.org/src/contrib/sf_1.0-8.tar.gz'
Content type 'application/x-gzip' length 3472914 bytes (3.3 MB)

downloaded 3.3 MB

ERROR: failed to lock directory '/pfs/tc1/project/modelscape/users/cbarbosa/share/Rlibs/r4.0' for modifying
Try removing '/pfs/tc1/project/modelscape/users/cbarbosa/share/Rlibs/r4.0/00LOCK-s2'
ERROR: dependency 's2' is not available for package 'sf'

  • removing '/pfs/tc1/project/modelscape/users/cbarbosa/share/Rlibs/r4.0/sf'

The downloaded source packages are in
'/tmp/Rtmpd0ip2F/downloaded_packages'
Warning messages:
1: In install.packages("sf", repos = "http://cran.us.r-project.org") :
installation of package 's2' had non-zero exit status
2: In install.packages("sf", repos = "http://cran.us.r-project.org") :
installation of package 'sf' had non-zero exit status