You are not logged in.

#1 2018-02-20 14:33:51

tassio
Member
Registered: 2015-04-12
Posts: 13

[SOLVED] libgfortran.so.3:cannot open shared object file: No such file

I am trying to run R, but I get the error in the title.

I have read the post with the same title https://bbs.archlinux.org/viewtopic.php?id=226849
But as I understand the solutions there are for "manual installations of R".

I have tried removing R, then clearing pacman's cache then installing gcc6-libs and r.

sudo pacman -R r
sudo pacman -Sc
sudo pacman -S gcc6-libs
sudo pacman -S r

After that, here's the output of some commands.

$ R
/usr/lib64/R/bin/exec/R: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
$
$ pacman -Fs libgfortran.so.3
community/gcc6-libs 6.4.1-5
    usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1/libgfortran.so.3
$
$ pacman -Qi gcc6-libs
Name            : gcc6-libs
Version         : 6.4.1-5
Description     : Runtime libraries shipped by GCC
Architecture    : x86_64
URL             : http://gcc.gnu.org
Licenses        : GPL  LGPL  FDL  custom
Groups          : None
Provides        : None
Depends On      : glibc>=2.25
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 221.22 MiB
Packager        : Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
Build Date      : Thu 18 Jan 2018 11:13:30 PM GMT
Install Date    : Tue 20 Feb 2018 02:11:11 PM GMT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Last edited by tassio (2018-02-21 08:24:00)

Offline

#2 2018-02-20 14:35:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

Check all of your AUR/foreign packages (pacman -Qm). One of them is likely linked to the old libgfortran.

Last edited by Scimmia (2018-02-20 14:35:56)

Offline

#3 2018-02-20 15:15:08

tassio
Member
Registered: 2015-04-12
Posts: 13

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

Thank you Scimmia, this worked. I ran

$ pacman -Qm
abs 2.4.4-2
apvlv 0.1.5-4
atlas-lapack-base 3.10.3-1
bcg729 1.0.4-1
belle-sip 1.6.3-1
clutter-gst2 2.0.18-1
dwm 6.1-3
fswebcam 20140113-1
geoclue 0.12.99-2
gstreamer0.10 0.10.36-4
gstreamer0.10-base 0.10.36-3
gummiboot 48-1
idesk 0.7.5-7
js17 17.0.0-4
lib32-libtxc_dxtn 1.0.1-5
libqzeitgeist 0.8.0-6
libtxc_dxtn 1.0.1-6
libunique3 3.0.2-3
libzeitgeist 0.3.18-4
mirage 0.9.5.2-4
python2-path 8.2.1-1
python2-webassets 0.11.1-2
screenkey 0.8-1
st 0.7-1
webkitgtk 2.4.11-6
webkitgtk2 2.4.11-6
wordnet 3.1-1
xpacman 0.11-7

and then, for each package that seemed likely to use fortran, I ran

pacman -Qi

and checked the dependencies.

Apparently atlas-lapack-base was the culprit (but it was noy my first try).

In any case, happy this is solved. I learned a lot in the process!

Offline

#4 2018-02-20 15:18:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

You might want to check through that list, as well as pacman -Qdt. Many of those packages are old and useless. Gummiboot hasn't existed since 2015 (became systemd-boot).

Offline

#5 2018-02-20 15:27:23

tassio
Member
Registered: 2015-04-12
Posts: 13

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

Thank you so much! I will look into this (and the other packages as well).

My naive approach to this would be install systemd-boot, then remove gummyboot.
But if I run

pacman -Ss systemd-boot

I don't get any results.

But I'll do my reading about this first smile

Last edited by tassio (2018-02-21 08:26:55)

Offline

#6 2018-02-20 15:30:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

It's part of the systemd package.

Offline

#7 2018-02-20 16:15:57

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

https://wiki.archlinux.org/index.php/Systemd-boot

Reading the wiki is generally more efficient than looking for a specific package name via regular expressions. wink

Last edited by eschwartz (2018-02-20 16:17:16)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2018-02-21 08:28:32

tassio
Member
Registered: 2015-04-12
Posts: 13

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

Thank you both Scimmia and Eschwartz. This is leading to a great cleanup of my setup!

Offline

#9 2018-06-09 06:09:52

无极
Member
Registered: 2016-01-20
Posts: 1

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

please install gcc54
#pacman install gcc54

and then set LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.1/

so, start you application.
my octave4.2 have this problem too, I solved the problem through the above way

Offline

#10 2018-06-09 06:18:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

Not just no, but hell no. 无极, don't comment in old threads with horrible advice.

Offline

#11 2018-06-09 10:00:52

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] libgfortran.so.3:cannot open shared object file: No such file

Closing.

Last edited by WorMzy (2018-06-09 10:01:41)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB