[GRASS-stats] Problems installing spgrass6

8 messages Options
Embed this post
Permalink
William Hudspeth-2

[GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
Hello, I am having problems installing the latest version of spgrass6 on
a machine running SUSE linux 10.1. From the R prompt, I updated all
packages, including sp, rgdal, spatial, etc.

I also upgraded my version of gdal using the SUSE Yast utility. When the
update got to spgrass6, I received the following error:


* Installing *source* package 'spgrass6' ...
** R
** inst
** preparing package for lazy loading
Loading required package: sp
Loading required package: rgdal
Error in fun(...) : could not find function "packageStartupMessage"
Error: .onLoad failed in 'loadNamespace' for 'rgdal'
Error: package 'rgdal' could not be loaded
Execution halted
ERROR: lazy loading failed for package 'spgrass6'
** Removing '/usr/local/lib/R/library/spgrass6'
** Restoring previous '/usr/local/lib/R/library/spgrass6'

The downloaded packages are in
        /tmp/Rtmp4zsWbv/downloaded_packages
Warning message:
installation of package 'spgrass6' had non-zero exit status in:
install.packages(update[, "Package"], instlib, contriburl = contriburl,

Any assistance would be greatly appreciated,

Thanks, William


_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Dylan Beaudette-2

Re: [GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
On Wednesday 29 October 2008, William Hudspeth wrote:

> Hello, I am having problems installing the latest version of spgrass6 on
> a machine running SUSE linux 10.1. From the R prompt, I updated all
> packages, including sp, rgdal, spatial, etc.
>
> I also upgraded my version of gdal using the SUSE Yast utility. When the
> update got to spgrass6, I received the following error:
>
>
> * Installing *source* package 'spgrass6' ...
> ** R
> ** inst
> ** preparing package for lazy loading
> Loading required package: sp
> Loading required package: rgdal
> Error in fun(...) : could not find function "packageStartupMessage"
> Error: .onLoad failed in 'loadNamespace' for 'rgdal'
> Error: package 'rgdal' could not be loaded
> Execution halted
> ERROR: lazy loading failed for package 'spgrass6'
> ** Removing '/usr/local/lib/R/library/spgrass6'
> ** Restoring previous '/usr/local/lib/R/library/spgrass6'
>
> The downloaded packages are in
>         /tmp/Rtmp4zsWbv/downloaded_packages
> Warning message:
> installation of package 'spgrass6' had non-zero exit status in:
> install.packages(update[, "Package"], instlib, contriburl = contriburl,
>
> Any assistance would be greatly appreciated,
>
> Thanks, William
>
>

This error probably means that you will need to first install the rgdal
package-- which depends on a working install of GDAL library and development
files (headers / include files / etc.).

Cheers,

Dylan

--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Markus Neteler

Re: [GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
On Wed, Oct 29, 2008 at 7:21 PM, Dylan Beaudette
<[hidden email]> wrote:
> On Wednesday 29 October 2008, William Hudspeth wrote:
>> Hello, I am having problems installing the latest version of spgrass6 on
>> a machine running SUSE linux 10.1. From the R prompt, I updated all
>> packages, including sp, rgdal, spatial, etc.
...

>> installation of package 'spgrass6' had non-zero exit status in:
>> install.packages(update[, "Package"], instlib, contriburl = contriburl,
>>
>> Any assistance would be greatly appreciated,
>>
>> Thanks, William
>>
>>
>
> This error probably means that you will need to first install the rgdal
> package-- which depends on a working install of GDAL library and development
> files (headers / include files / etc.).

To simplify this, try:

##### Non-Mac users:
install.packages("spgrass6", dependencies = TRUE)

##### Mac users:
install.packages("spgrass6", type="source", dependencies=TRUE)

This should fetch all dependencies.
See also
 http://grass.osgeo.org/statsgrass/grass6_r_install.html

Markus
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Edward Tomlinson

Re: [GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
Dear list,
 
I seem to be having a similar problem, cannot install spgrass6 package.
 
i have tried R CMD INSTALL and package.install methods. Also tried with dependencies = true.
 
Still end up with the same error.
 
I have gdal 1.5.3 installed seperatly.
 
Can anyone give me suggestions?
 
Thanks,
Ed

2008/10/30 Markus Neteler <[hidden email]>
On Wed, Oct 29, 2008 at 7:21 PM, Dylan Beaudette
<[hidden email]> wrote:
> On Wednesday 29 October 2008, William Hudspeth wrote:
>> Hello, I am having problems installing the latest version of spgrass6 on
>> a machine running SUSE linux 10.1. From the R prompt, I updated all
>> packages, including sp, rgdal, spatial, etc.
...
>> installation of package 'spgrass6' had non-zero exit status in:
>> install.packages(update[, "Package"], instlib, contriburl = contriburl,
>>
>> Any assistance would be greatly appreciated,
>>
>> Thanks, William
>>
>>
>
> This error probably means that you will need to first install the rgdal
> package-- which depends on a working install of GDAL library and development
> files (headers / include files / etc.).

To simplify this, try:

##### Non-Mac users:
install.packages("spgrass6", dependencies = TRUE)

##### Mac users:
install.packages("spgrass6", type="source", dependencies=TRUE)

This should fetch all dependencies.
See also
 http://grass.osgeo.org/statsgrass/grass6_r_install.html

Markus
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats


_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Markus Neteler

Re: [GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
On Thu, Oct 30, 2008 at 1:28 PM, Edward Tomlinson <[hidden email]> wrote:

> Dear list,
>
> I seem to be having a similar problem, cannot install spgrass6 package.
>
> i have tried R CMD INSTALL and package.install methods. Also tried with
> dependencies = true.
>
> Still end up with the same error.
>
> I have gdal 1.5.3 installed seperatly.
>
> Can anyone give me suggestions?

I searched around and found

http://groups.google.com/group/ggobi/browse_thread/thread/a07061c281fac739?pli=1
 "I just experienced (and solved) the same problem (presumably). The
  loadNameSpace routine/package/whatever was added as of R 2.5.0, my
  guess is that you use a version prior to that. The solution is of
  course to install 2.5.0 or later.

  (To find out your version, in the R console, type 'version' and look
  at minor (contains the last two digits of the version))
"

https://stat.ethz.ch/pipermail/r-announce/2007/000463.html
R 2.5.0 is released
"    o message() has a new argument 'appendLF' to handle messages
        with and without newlines.  There is a new message class
        packageStartupMessage() that can be suppressed separately.
"
Do you have an older R version installed?

Markus
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Edward Tomlinson

Re: [GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
Hi Markus,
 
Thank you for your reply.
 
I am using R version 2.7.2svn.
 
Error in fun(...):
    GDAL Error 1: libgrass_I.so cannot open shared object file: No such file or directory
 
Error : .onload failed in 'loadnamespace' for 'rgdal'
 
Could it be an issue with my gdal-grass plugin (i am not sure where the libgrass_I comes from). I will try updating the plugin.
 
Thanks,
Ed

2008/10/30 Markus Neteler <[hidden email]>
On Thu, Oct 30, 2008 at 1:28 PM, Edward Tomlinson <[hidden email]> wrote:
> Dear list,
>
> I seem to be having a similar problem, cannot install spgrass6 package.
>
> i have tried R CMD INSTALL and package.install methods. Also tried with
> dependencies = true.
>
> Still end up with the same error.
>
> I have gdal 1.5.3 installed seperatly.
>
> Can anyone give me suggestions?

I searched around and found

http://groups.google.com/group/ggobi/browse_thread/thread/a07061c281fac739?pli=1
 "I just experienced (and solved) the same problem (presumably). The
 loadNameSpace routine/package/whatever was added as of R 2.5.0, my
 guess is that you use a version prior to that. The solution is of
 course to install 2.5.0 or later.

 (To find out your version, in the R console, type 'version' and look
 at minor (contains the last two digits of the version))
"

https://stat.ethz.ch/pipermail/r-announce/2007/000463.html
R 2.5.0 is released
"    o  message() has a new argument 'appendLF' to handle messages
       with and without newlines.  There is a new message class
       packageStartupMessage() that can be suppressed separately.
"
Do you have an older R version installed?

Markus


_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Markus Neteler

Re: [GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
Hi Edward,

On Thu, Oct 30, 2008 at 9:41 PM, Edward Tomlinson <[hidden email]> wrote:
> Hi Markus,
>
> Thank you for your reply.
>
> I am using R version 2.7.2svn.
>
> Error in fun(...):
>     GDAL Error 1: libgrass_I.so cannot open shared object file: No such file
> or directory

Easy to fix:

- become "root" user
- create /etc/ld.so.conf.d/grass.conf
- content: path to GRASS libraries
- save and run
   ldconfig
- exit from "root"

then it should work.

Markus
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Edward Tomlinson

Re: [GRASS-stats] Problems installing spgrass6

Reply Threaded More More options
Print post
Permalink
Hi Markus,
 
Thank you very much. That worked fine!
 
Cheers,
Ed

2008/10/31 Markus Neteler <[hidden email]>
Hi Edward,

On Thu, Oct 30, 2008 at 9:41 PM, Edward Tomlinson <[hidden email]> wrote:
> Hi Markus,
>
> Thank you for your reply.
>
> I am using R version 2.7.2svn.
>
> Error in fun(...):
>     GDAL Error 1: libgrass_I.so cannot open shared object file: No such file
> or directory

Easy to fix:

- become "root" user
- create /etc/ld.so.conf.d/grass.conf
- content: path to GRASS libraries
- save and run
  ldconfig
- exit from "root"

then it should work.

Markus


_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats