SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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 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.
I meant download Pat's Slackbuild script for gcc (i.e., at the location Labinnah linked) and take a look at what options he passes to gcc's configure script. They are:
If you were going to build GCC locally, you could use some or all of those, but replace the variables (denoted with $) appropriately and change --prefix to the location where you intend to install it.
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.
Last edited by montagdude; 08-26-2019 at 08:24 AM.
But yes, there is a lot of ugly legacy Fortran code out there.
That's the disadvantage of being around that long: the Fortran language has matured quite a bit, but the old code stays around (in the old format).
You wouldn't invent a arithmatic if or a computed goto nowadays in a more modern language!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.