Dear folk,
i have installed GRASS-6.2.3 from source code with no apparent errors during
configuration, compilation and installation. However, when i run grass and
try to create a new mapset i get next error:
g.region: error while loading shared libraries: libgdal.so.1: cannot open
shared object file: Error 40
In fact, when i was setting the projection parameters and chose a UTM
projection, the program did not ask me for the UTM zone, the ellipsoid and
the datum.
In the GRASS configure process I explicitely used the
flag --with-gdal=/usr/local/bin/gdal-config and there were no errors. I
checked for the shared library and it is placed in /usr/local/lib directory.
Before the GRASS installation, I installed the GDAL/OGR bundle from the source
code, with netcdf support, and the GRASS support disabled. Again, there were
no apparent errors. Next I installed the gdal-grass plugin (gdal-grass-1.4.3
with the following options:
configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/local/grass-6.2.3)
I did not detect any problem during the installation of these bundles. Anyone
knows about the problem??
Thanks in advance,
José A. Ruiz
I did not detect any problem during the installation of these bundles. Anyone
knows about the problem??
Thanks in advance,
José A. Ruiz
Did you run ldconfig after installing?
~ Eric.
Jose A. Ruiz-Arias wrote:
i have installed GRASS-6.2.3 from source code with no apparent errors during
configuration, compilation and installation. However, when i run grass and
try to create a new mapset i get next error:
g.region: error while loading shared libraries: libgdal.so.1: cannot open
shared object file: Error 40
In fact, when i was setting the projection parameters and chose a UTM
projection, the program did not ask me for the UTM zone, the ellipsoid and
the datum.
In the GRASS configure process I explicitely used the
flag --with-gdal=/usr/local/bin/gdal-config and there were no errors. I
checked for the shared library and it is placed in /usr/local/lib directory.
Before the GRASS installation, I installed the GDAL/OGR bundle from the source
code, with netcdf support, and the GRASS support disabled. Again, there were
no apparent errors. Next I installed the gdal-grass plugin (gdal-grass-1.4.3
with the following options:
configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/local/grass-6.2.3)
I did not detect any problem during the installation of these bundles. Anyone
knows about the problem??
Most systems won't load shared libraries from /usr/local/lib without
some additional configuration.
For Linux, you need to either set the LD_LIBRARY_PATH environment
variable to a path which includes /usr/local/lib, or add
/usr/local/lib to /etc/ld.so.conf then run ldconfig (as root).
--
Glynn Clements <glynn@gclements.plus.com>
El Monday 14 January 2008 00:34:52 Glynn Clements escribió:
Jose A. Ruiz-Arias wrote:
> i have installed GRASS-6.2.3 from source code with no apparent errors
> during configuration, compilation and installation. However, when i run
> grass and try to create a new mapset i get next error:
>
> g.region: error while loading shared libraries: libgdal.so.1: cannot open
> shared object file: Error 40
>
> In fact, when i was setting the projection parameters and chose a UTM
> projection, the program did not ask me for the UTM zone, the ellipsoid
> and the datum.
>
> In the GRASS configure process I explicitely used the
> flag --with-gdal=/usr/local/bin/gdal-config and there were no errors. I
> checked for the shared library and it is placed in /usr/local/lib
> directory.
>
> Before the GRASS installation, I installed the GDAL/OGR bundle from the
> source code, with netcdf support, and the GRASS support disabled. Again,
> there were no apparent errors. Next I installed the gdal-grass plugin
> (gdal-grass-1.4.3 with the following options:
> configure --with-gdal=/usr/local/bin/gdal-config
> --with-grass=/usr/local/grass-6.2.3)
>
> I did not detect any problem during the installation of these bundles.
> Anyone knows about the problem??
Most systems won't load shared libraries from /usr/local/lib without
some additional configuration.
For Linux, you need to either set the LD_LIBRARY_PATH environment
variable to a path which includes /usr/local/lib, or add
/usr/local/lib to /etc/ld.so.conf then run ldconfig (as root).
Thanks a lot for your hints. GRASS is now working.
José A.