ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
check on how to get programs with linux.
Go to your package manager (synaptic, etc), search for gfortran and select it for install. If you don't find it over there then you google for it and follow the installing instructions, but more than probably, it's on the packages of your distro.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
.. And now Suse ..
Please open a terminal and do the commands
1) su
2) zypper se fortran
.. to do a search.
.. Suse 11 will reply ..
Code:
| gcc-fortran | The system GNU Fortran Compiler
| gcc43-fortran | The GNU Fortran Compiler and Support Files
| libgfortran43 | The GNU Fortran Compiler Runtime Library
.. where gcc-fortran provides '/usr/bin/gfortran'
3) zypper in gcc-fortran
.. which will download and install the Suse gfortran packages.
The package manager "Add / Remove Software" can also be used
for package install.
.....
Alternatively 'yast' followed by either 'software management' or 'install and remove software' 9depending on which version of yast) and a search on 'fortran' should reveal a couple of fortran options and a couple of libraries; the libraries will be pulled in automagically, as required, if you select the appropriate fortran. Oh, and fortran2c, which sounds useful, but maybe not to you.
In this, 'where' isn't exactly the most useful question; with the repositories set up sensibly the answer to 'how' seems to be 'the same way as usual' and you don't need to care about 'where'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.