[R-sig-Geo] Problem installing rgdal on 64 bit fedora

Gabor Grothendieck ggrothendieck at gmail.com
Thu Sep 24 05:15:50 CEST 2009


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:
> 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:
>> 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, Laura Poggio wrote:
>>>
>>>> If you use:
>>>> # yum search proj
>>>> You should find proj, proj-devel, proj-epsg and proj-nad.
>>>> At least it is what yum just found from my computer now.
>>>> I had some problems earlier today to access fedora repository. What if you
>>>> change repository?
>>>
>>> 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
>>>
>>>>
>>>> Laura
>>>>
>>>> 2009/9/23 Gabor Grothendieck <ggrothendieck at gmail.com>
>>>>
>>>>> 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?
>>>>>
>>>>> _______________________________________________
>>>>> R-sig-Geo mailing list
>>>>> R-sig-Geo at stat.math.ethz.ch
>>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>>>
>>>>
>>>>        [[alternative HTML version deleted]]
>>>>
>>>> _______________________________________________
>>>> R-sig-Geo mailing list
>>>> R-sig-Geo at stat.math.ethz.ch
>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>>
>>>
>>> --
>>> 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: Roger.Bivand at nhh.no
>>>
>>>
>>
>



More information about the R-sig-Geo mailing list