Slackware 14.2 and libgfortran4?
I'm wanting to use a piece of software that requires "libgfortran4".
I'm using Slackware 14.2 (updated using slackpkg). I see that /usr/lib64 contains libgfortran.so.3 which is an earlier version of the fortran library than I require. As best as I can workout, to get libgfortran4, I need to install gcc 7 or higher (including the fortran parts) to get libgfortran4. I have a few questions. Can I safely install a different version of gcc on my system? How would I do this? Or, should I remove the current version of gcc and install the later version? Is this safe? Thanks in advance. K. |
I would recommend installing a newer GCC locally (somewhere under $HOME), and then pointing your other software to it with LD_LIBRARY_PATH at runtime. Compiling GCC locally is not hard, and you can take a look at Pat's Slackbuild for configure flags if you like.
|
Thanks for your response. I get it re install it somewhere out of the way and point to it when required.
I did not understand '... Pat's Slackbuild for configure flags if you like ...'. I understand the notion of a Slackbuild script as I use things from slackbuilds.org. Do you mean the build script that's used to build the packages in the dsitribution? If so, where would I find those? Thanks again for your suggestion. Regards. K. |
Quote:
ftp://ftp.slackware.com/pub/slackwar...t/source/d/gcc |
Quote:
Code:
configure --prefix=/usr \ |
Thanks ...
K. |
I've taken this lib from this archive: http://gfortran.meteodat.ch/download/x86_64/releases/gcc-7.1.0.tar.xz
We're living in 2019 and Fortran is still alive and causes troubles for us... |
Thanks.
I suspect fortran will be 'round for a while yet ... |
Fortran isn't so bad. It's an easy-to-learn, high-performance language with lots of math and engineering functions built-in, particularly multi-dimensional arrays and vector/matrix math. Considering the number of math libraries built on it, even targeting other languages (e.g., SciPy), I suspect K4Werri is right.
But yes, there is a lot of ugly legacy Fortran code out there. |
Quote:
You wouldn't invent a arithmatic if or a computed goto nowadays in a more modern language! |
All times are GMT -5. The time now is 11:19 AM. |