Skip to content

Problem installing rgdal on 64 bit fedora

7 messages · Laura Poggio, Gabor Grothendieck, Roger Bivand

#
I am getting this message when I try to install rgdal in R:

Error: proj/epsg not found
Either install missing proj support files, for example
the proj-nad and proj-epsg RPMs on systems using RPMs,
or if installed but not autodetected, set PROJ_LIB to the
correct path.
ERROR: configuration failed for package 'rgdal'


I had previously installed gdal and proj.4 and proj-had using yum
(and I also tried from source).  From the shell these all seem to
work in that they return something rather than a message that
they are missing:

proj
man proj
gdal-config

However, when I issue the R command

   install.packages("rgdal", dep = TRUE)

I get a message back (below) that refers to proj-epsg as missing but
I see no such distribution:

$ yum search proj-epsg
No Matches found

What is proj-epsg, where is it and how do I get around this?
#
On Wed, 23 Sep 2009, Laura Poggio wrote:

            
Yes, there may be transient problems. From my RHEL box I don't see it now 
with yum search, but from F11, I do, but only for i586 (which is right for 
the machine).

For some murky reason, the packagers left the shared metadata out of 
regular proj, and have it in proj-nad and proj-epsg. I got round this 
earlier by shipping rgdal with the shared metadata files, but they could 
be staler than those otherwise on the user's platform, so at user request 
(for OSX among others), dropped the bundled files. I can see:

http://fr2.rpmfind.net//linux/RPM/fedora/11/x86_64/proj-epsg-4.6.1-2.fc11.x86_64.html

but since I build from source, can't vouch for it.

Roger

  
    
#
Actually I tried building proj-4.6.1 from source after my attempt with
yum failed to get rgdal going but that wasn't sufficient to pull in
everything needed it seems.

Can you give me a link to the proj-epsg source so I can try that?
Googling for proj-epsg did not give me an obvious hit.

Thanks (and to Laura).
On Wed, Sep 23, 2009 at 11:18 AM, Roger Bivand <Roger.Bivand at nhh.no> wrote:
#
On Wed, 23 Sep 2009, Gabor Grothendieck wrote:

            
Building from source may need the extra metadata files in:

http://download.osgeo.org/proj/proj-datumgrid-1.5.zip

for completeness.
For some reason rpmfind points to this:

ftp://download.fedora.redhat.com/pub/fedora/linux/releases/11/Everything/source/SRPMS/proj-4.6.1-2.fc11.src.rpm

The proj.spec claims to file builds the proj, proj-devel, proj-nad and 
proj-epsg rpms.

Hope this helps,

Roger

PS. the f11 version above as an older datum grid zip archive included.

  
    
#
I was not having much luck with yum and tried installing gdal from
source after trying the same with proj but am getting this message:

/root/gdal-1.6.2/libgdal.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [rgdal.so] Error 1

I am on 64 bit fc8 and the file /root/gdal-1.6.2/libgdal.la is
present.  Has anyone seen this when trying to install gdal?


On Wed, Sep 23, 2009 at 1:07 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
#
Pending additional testing of rgdal it seems that I did get rgdal and
its dependencies (gdal, proj)  installed.

If anyone else has problems installing this software I suggest you try
installing proj and gdal from source (I never did get a yum-based
install to work) making use of the instructions and troubleshooting
advice at this link (except try substituting the most recent versions
of the packages for the versions listed there):

   http://geodjango.org/docs/install.html

This next link also might be helpful although it was primarily the
prior link that I used:

   http://forum.worldwindcentral.com/showthread.php?t=21409

The manual actions that I took are likely system specific but in my
case they included the following:

- set LD_LIBRARY_PATH as suggested in the first link above (prior to
building gdal from source)

- gdal-config --version was not giving me the same version as the
version of gdal I had installed from source so I copied the
gdal-config that I had built over the old one (after I had built gdal)
and then after the copy rebuilt gdal again to be sure.

On Wed, Sep 23, 2009 at 9:55 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote: