problem installing spgrass6 with R 2.5.1

4 messages Options
Embed this post
Permalink
Mauricio Zambrano

problem installing spgrass6 with R 2.5.1

Reply Threaded More More options
Print post
Permalink
Hi,
I had R 2.4.1 with spgrass6 library running OK in my machine, but
after an upgrade from 2.4.1 to 2.5.1 problems have started.

When I loaded the SPGRASS6 library, I got the following:

> library(spgrass6)
Loading required package: sp
Loading required package: maptools
Loading required package: foreign
Loading required package: rgdal
Error in .Internal(putenv(x)) : no hay ninguna función interna "putenv"
Error : .onLoad failed in 'loadNamespace' for 'rgdal'
Error: package 'rgdal' could not be loaded

When I tried to re-install the SPGRASS6 library I got this:

> install.packages("spgrass6", dependencies=TRUE)
Aviso en install.packages("spgrass6", dependencies = TRUE) :
         argument 'lib' is missing: using
'/home/hzambran/R/i486-pc-linux-gnu-library/2.5'
probando la URL 'http://cran.fhcrc.org/src/contrib/spgrass6_0.4-2.tar.gz'
Content type 'application/x-gzip' length 319712 bytes
URL abierta
==================================================
downloaded 312Kb

* Installing *source* package 'spgrass6' ...
** R
** inst
** preparing package for lazy loading
Loading required package: sp
Loading required package: maptools
Loading required package: foreign
Loading required package: rgdal
Error in .Internal(putenv(x)) : no internal function "putenv"
Error : .onLoad failed in 'loadNamespace' for 'rgdal'
Error: package 'rgdal' could not be loaded
Execution halted
ERROR: lazy loading failed for package 'spgrass6'
** Removing '/home/hzambran/R/i486-pc-linux-gnu-library/2.5/spgrass6'

The downloaded packages are in
        /tmp/RtmptdSn7W/downloaded_packages
Warning message:
installation of package 'spgrass6' had non-zero exit status in:
install.packages("spgrass6", dependencies = TRUE)


Somebody has an idea about how to solve it ?.

Thanks in advance

Mauricio

_______________________________________________
statsgrass mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/statsgrass
Roger Bivand

Re: problem installing spgrass6 with R 2.5.1

Reply Threaded More More options
Print post
Permalink
On Mon, 24 Sep 2007, Mauricio Zambrano wrote:

> Hi,
> I had R 2.4.1 with spgrass6 library running OK in my machine, but
> after an upgrade from 2.4.1 to 2.5.1 problems have started.
>
> When I loaded the SPGRASS6 library, I got the following:
>
>> library(spgrass6)
> Loading required package: sp
> Loading required package: maptools
> Loading required package: foreign
> Loading required package: rgdal
> Error in .Internal(putenv(x)) : no hay ninguna función interna "putenv"
> Error : .onLoad failed in 'loadNamespace' for 'rgdal'
> Error: package 'rgdal' could not be loaded
>
> When I tried to re-install the SPGRASS6 library I got this:
>
>> install.packages("spgrass6", dependencies=TRUE)
> Aviso en install.packages("spgrass6", dependencies = TRUE) :
>         argument 'lib' is missing: using
> '/home/hzambran/R/i486-pc-linux-gnu-library/2.5'
> probando la URL 'http://cran.fhcrc.org/src/contrib/spgrass6_0.4-2.tar.gz'
> Content type 'application/x-gzip' length 319712 bytes
> URL abierta
> ==================================================
> downloaded 312Kb
>
> * Installing *source* package 'spgrass6' ...
> ** R
> ** inst
> ** preparing package for lazy loading
> Loading required package: sp
> Loading required package: maptools
> Loading required package: foreign
> Loading required package: rgdal
> Error in .Internal(putenv(x)) : no internal function "putenv"
> Error : .onLoad failed in 'loadNamespace' for 'rgdal'
> Error: package 'rgdal' could not be loaded
> Execution halted
> ERROR: lazy loading failed for package 'spgrass6'
> ** Removing '/home/hzambran/R/i486-pc-linux-gnu-library/2.5/spgrass6'
>
> The downloaded packages are in
>        /tmp/RtmptdSn7W/downloaded_packages
> Warning message:
> installation of package 'spgrass6' had non-zero exit status in:
> install.packages("spgrass6", dependencies = TRUE)
>
>
> Somebody has an idea about how to solve it ?.
update.packages()

to update rgdal - it is the outdated version of rgdal which is causing the
problem.

Roger

>
> Thanks in advance
>
> Mauricio
>
> _______________________________________________
> statsgrass mailing list
> [hidden email]
> http://grass.itc.it/mailman/listinfo/statsgrass
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: [hidden email]

_______________________________________________
statsgrass mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/statsgrass
Roger Bivand
Economic Geography Section
Department of Economics
Norwegian School of Economics and Business Administration
Helleveien 30
N-5045 Bergen, Norway
Mauricio Zambrano

Re: problem installing spgrass6 with R 2.5.1

Reply Threaded More More options
Print post
Permalink
Thanks, but I tried several times with update.packages() and the
problem still persisted.

I uninstall R and all the installed packages and I re-installed only:

-) r-base,
-) r-recommended
-) r-base-dev

Then I did update.packages() and again I tried to install SPGRASS6 with:

> install.packages("spgrass6", dependencies=TRUE)

but again it was impossible and the next screen appeared:

Aviso en install.packages("spgrass6", dependencies = TRUE) :
         argument 'lib' is missing: using
'/home/hzambran/R/i486-pc-linux-gnu-library/2.5'
probando la URL 'http://cran.fhcrc.org/src/contrib/spgrass6_0.4-2.tar.gz'
Content type 'application/x-gzip' length 319712 bytes
URL abierta
==================================================
downloaded 312Kb

* Installing *source* package 'spgrass6' ...
** R
** inst
** preparing package for lazy loading
Loading required package: sp
Loading required package: maptools
Loading required package: foreign
Loading required package: rgdal
Error in .Internal(putenv(x)) : no internal function "putenv"
Error : .onLoad failed in 'loadNamespace' for 'rgdal'
Error: package 'rgdal' could not be loaded
Execution halted
ERROR: lazy loading failed for package 'spgrass6'
** Removing '/home/hzambran/R/i486-pc-linux-gnu-library/2.5/spgrass6'

The downloaded packages are in
        /tmp/RtmpYuI8s2/downloaded_packages
Warning message:
installation of package 'spgrass6' had non-zero exit status in:
install.packages("spgrass6", dependencies = TRUE)

Do somebody know if the problem is with the 'lib' parameter or it
could be anything else ?

Thanks

Mauricio
(running Ubuntu feisty 7.04)

_______________________________________________
statsgrass mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/statsgrass
Mauricio Zambrano

Re: problem installing spgrass6 with R 2.5.1

Reply Threaded More More options
Print post
Permalink
Thanks anyway.Strangely, I solved the problem doing:

1) > install.packages("rgdal", dependencies=TRUE)

2) quit R (I don't know if it was necessary)

3) > install.packages("spgrass6", dependencies=TRUE)

and everything it is OK now:

Aviso en install.packages("spgrass6", dependencies = TRUE) :
         argument 'lib' is missing: using
'/home/hzambran/R/i486-pc-linux-gnu-library/2.5'
probando la URL 'http://cran.fhcrc.org/src/contrib/spgrass6_0.4-2.tar.gz'
Content type 'application/x-gzip' length 319712 bytes
URL abierta
==================================================
downloaded 312Kb

* Installing *source* package 'spgrass6' ...
** R
** inst
** preparing package for lazy loading
Loading required package: sp
Loading required package: maptools
Loading required package: foreign
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
** help
 >>> Building/Updating help pages for package 'spgrass6'
     Formats: text html latex example
  gmeta6                            text    html    latex   example
  readRAST6                         text    html    latex   example
  readVECT6                         text    html    latex   example
  spgrass6                          text    html    latex   example
** building package indices ...
* DONE (spgrass6)

The downloaded packages are in
        /tmp/RtmpRS0qGw/downloaded_packages

Mauricio

_______________________________________________
statsgrass mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/statsgrass