Check libgfortran.so in /usr/lib to see if it is not broken. Also check
whether the version numbers for gcc, g++ and gfortran match each other --
if not, upgrade as needed.

T.

On Thu, Dec 8, 2016 at 11:30 AM, Hermann Norpois <[email protected]> wrote:

> I already tried that but it did not help. I deleted r-base-dev as well and
> reinstalled it because it depends on gfortran. But it did not help.
>
> 2016-12-08 9:58 GMT+01:00 Tamas Nepusz <[email protected]>:
>
>> It could be the case that /usr/lib/libgfortran.so is a broken symlink
>> resulting from earlier package installations, removals and OS upgrades. Try
>> this:
>>
>> sudo dpkg --purge gfortran
>> sudo apt-get install gfortran
>>
>> (See also https://stackoverflow.com/questions/6302209/building-r-
>> package-getting-error-ld-cannot-find-lgfortran )
>>
>>
>> T.
>>
>> On Wed, Dec 7, 2016 at 11:26 PM, Hermann Norpois <[email protected]>
>> wrote:
>>
>>> Hello,
>>>
>>> I am unable to install igraph on:
>>> R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
>>> Ubuntu 14.04.
>>> After the usual install.packages ('igraph') ...
>>> This is the error message:
>>>
>>> ....
>>> /usr/bin/ld: cannot find -lgfortran
>>> /usr/bin/ld: cannot find -lgfortran
>>> collect2: error: ld returned 1 exit status
>>> make: *** [igraph.so] Fehler 1
>>> ERROR: compilation failed for package ‘igraph’
>>> * removing ‘/home/jbreu/R/x86_64-pc-linux-gnu-library/3.3/igraph’
>>>
>>> Die heruntergeladenen Quellpakete sind in
>>>     ‘/tmp/RtmpDnTswM/downloaded_packages’
>>> Warnmeldung:
>>> In install.packages("igraph") :
>>>   Installation des Pakets ‘igraph’ hatte Exit-Status ungleich 0
>>>
>>> I checked if r-base-dev was installed ...
>>> ~$ sudo apt-get install r-base-dev
>>> Reading package lists... Done
>>> Building dependency tree
>>> Reading state information... Done
>>> r-base-dev is already the newest version.
>>> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>>
>>> This is my gfortran version:
>>> ~$ gfortran --version
>>> GNU Fortran (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
>>> Copyright (C) 2015 Free Software Foundation, Inc.
>>>
>>> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
>>> You may redistribute copies of GNU Fortran
>>> under the terms of the GNU General Public License.
>>> For more information about these matters, see the file named COPYING
>>>
>>> How should I continue?
>>> Thanks
>>> Hermann
>>>
>>>
>>> _______________________________________________
>>> igraph-help mailing list
>>> [email protected]
>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>>
>>>
>>
>> _______________________________________________
>> igraph-help mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>
>>
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to