path workbench libgfortran.so.4 not found

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
axk
Posts: 34
Joined: Fri Jan 24, 2014 9:29 am

path workbench libgfortran.so.4 not found

Post by axk »

Hi guys, I'm trying out the path workbench for the first time and hitting a run time error finding libgfortran.so.4
Image

I tried to bring up cmake-gui and change the pointer, but its not visible in the advanced settings.
I did find this on my system:

lrwxrwxrwx 1 root root 20 Jun 1 10:09 libgfortran.so -> libgfortran.so.5.0.0
lrwxrwxrwx 1 root root 20 Jun 1 10:09 libgfortran.so.5 -> libgfortran.so.5.0.0
-rwxr-xr-x 1 root root 10886576 Jun 1 10:09 libgfortran.so.5.0.0

Any advice on how to get freecad to load the correct .so ?

thanks
axk
Posts: 34
Joined: Fri Jan 24, 2014 9:29 am

Re: path workbench libgfortran.so.4 not found

Post by axk »

forgot to cut/paste info freecad info:

OS: "Artix"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13999 (Git)
Build type: Unknown
Branch: master
Hash: ab1520b872821414c6ce4a15fb85d471ac2a2b03
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: path workbench libgfortran.so.4 not found

Post by chrisb »

How far did you get with the Path WB?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
axk
Posts: 34
Joined: Fri Jan 24, 2014 9:29 am

Re: path workbench libgfortran.so.4 not found

Post by axk »

Unfortunately not very far: I click on Path WB and it pops up that error.
The tool bar buttons do not switch to path (I had it on Part, and they remained).
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: path workbench libgfortran.so.4 not found

Post by chrisb »

axk wrote: Tue Jul 03, 2018 3:39 am Unfortunately not very far: I click on Path WB and it pops up that error.
The tool bar buttons do not switch to path (I had it on Part, and they remained).
That's indeed not very far. I wonder what a fortran lib is doing in that state, I wasn't aware that fortran is used at all.
Can you please try the Appimage? It has near to none dependencies to other libraries.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: path workbench libgfortran.so.4 not found

Post by triplus »

User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: path workbench libgfortran.so.4 not found

Post by NormandC »

chrisb wrote: Tue Jul 03, 2018 7:01 am That's indeed not very far. I wonder what a fortran lib is doing in that state, I wasn't aware that fortran is used at all.
I was surprised too, we removed gfortran dependency from the Ubuntu PPA packages years ago.

I just checked the dependencies for the freecad-stable PPA package, and it does depend on libgfortran. It is not explicitly set as build dependency, so this means that some other library depends on it.

After some checking, it seems that a few packages FreeCAD depends on libgfortran4: calculix-ccx, libmed1v5, libhdf5-*.
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: path workbench libgfortran.so.4 not found

Post by chrisb »

NormandC wrote: Wed Jul 04, 2018 1:48 am After some checking, it seems that a few packages FreeCAD depends on libgfortran4: calculix-ccx, libmed1v5, libhdf5-*.
Thanks for digging. I think Path workbench uses only libarea, so I still wonder where the problems come from.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
axk
Posts: 34
Joined: Fri Jan 24, 2014 9:29 am

Re: path workbench libgfortran.so.4 not found

Post by axk »

Thanks for the detailed explanation on the dependency.
Just for fun I tried symlinking libgfortran.so.4 -> libgfortran.so.5, that yielded another error about gfortran_7 not found (required by /usr/lib/libmed.so.1).
Was worth a shot :D

I checked to see where libgfortran was originating, and my package manager shows:
[monolith lib]# pacman -Qo /usr/lib/libgfortran.so
/usr/lib/libgfortran.so is owned by gcc-libs 8.1.1+20180531-1

I'm a little hesitant to backstep gcc-libs as I don't need the path workbench and can make do with my old windows CAM software in a VM.
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: path workbench libgfortran.so.4 not found

Post by chrisb »

Libmed seems to be created by vejmarie.
vejmarie wrote:vejmarie
Can you please weigh in?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply