<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gnu fortran Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/gnu-fortran/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 10 Jul 2020 01:22:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install GNU Fortran on Ubuntu 20.04 / 18.04?</title>
		<link>https://www.osradar.com/install-gnu-fortran-on-ubuntu-20-04-18-04/</link>
					<comments>https://www.osradar.com/install-gnu-fortran-on-ubuntu-20-04-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 10 Jul 2020 03:11:00 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[gfortran]]></category>
		<category><![CDATA[gnu fortran]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12563</guid>

					<description><![CDATA[<p>Not everything old is bad. This is how it is. Well, while it is true that there are many programming languages today, there are some that have been a little forgotten as Fortran. However, many companies still need development in this language and not only that but there are tools that have evolved in favor [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gnu-fortran-on-ubuntu-20-04-18-04/">How to install GNU Fortran on Ubuntu 20.04 / 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Not everything old is bad. This is how it is. Well, while it is true that there are many programming languages today, there are some that have been a little forgotten as Fortran. However, many companies still need development in this language and not only that but there are tools that have evolved in favor of this language. In this post, I will teach you how to install GNU Fortran on Ubuntu 20.04 / 18.04. This compiler created by GNU is an open source alternative to other compilers that are not.</p>
<h2>Fortran is not dead</h2>
<p>If we speak mythical programming languages, we will have to talk about Fortran. It is a language focused on numerical calculation, designed in its beginnings for IBM computers and used in scientific and engineering applications and is the oldest of the high-level languages.</p>
<p>Therefore, Fortran was very important in computer science in the last century. You might think that nobody uses it anymore or something does. But the banking sector, in the scientific sector and in other companies that still use this language, <a href="https://www.theaustralian.com.au/business/technology/legacy-languages-prove-lucractive-for-dying-breed-of-programmers/news-story/dbe301b2f4326463fcae263bea570263" rel="noopener">pay good amounts of money for experts in the language</a>. It is because of this that many programmers have turned their eyes to Fortran.</p>
<h2>Getting GNU Fortran on Ubuntu 20.04 / 18.04</h2>
<p><a href="https://gcc.gnu.org/wiki/GFortran" rel="noopener">GNU Fortran</a> is a Fortran 95/003/2008 compiler created by GNU. It is also known on the Internet as GFortran. It is open source, released under the GPL license. With the aim of creating a modern compiler capable of running on multiple systems and multiple environments.</p>
<p>The latest version available is version 9. It has many improvements in every Fortran version it supports. You can check the improvements <a href="https://gcc.gnu.org/wiki/GFortran/News#GCC9" rel="noopener">here</a>.</p>
<p>So, let us install GNU Fortran on Ubuntu.</p>
<p>First, open a terminal and add the Ubuntu test repository. This step is only for Ubuntu 18.04.</p>
<pre>:~$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test</pre>
<figure id="attachment_21548" aria-describedby="caption-attachment-21548" style="width: 841px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-21548 size-full" src="https://www.osradar.com/wp-content/uploads/2019/07/111.png" alt="1.- Add the external repository" width="841" height="359" srcset="https://www.osradar.com/wp-content/uploads/2019/07/111.png 841w, https://www.osradar.com/wp-content/uploads/2019/07/111-300x128.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/111-768x328.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/111-696x297.png 696w" sizes="(max-width: 841px) 100vw, 841px" /><figcaption id="caption-attachment-21548" class="wp-caption-text">1.- Add the external repository</figcaption></figure>
<p>Next, refresh the APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>Finally, install GNU Fortran 9 by using this command:</p>
<pre>:~$ sudo apt install gfortran-9</pre>
<figure id="attachment_21550" aria-describedby="caption-attachment-21550" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-21550 size-full" src="https://www.osradar.com/wp-content/uploads/2019/07/2-16.png" alt="2.- Install GNU Fortran on Ubuntu 20.04 / 18.04" width="1365" height="388" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-16.png 1365w, https://www.osradar.com/wp-content/uploads/2019/07/2-16-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-16-1024x291.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/2-16-768x218.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-16-696x198.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/2-16-1068x304.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-21550" class="wp-caption-text">2.- Install GNU Fortran on Ubuntu 20.04 / 18.04</figcaption></figure>
<p>Then, check the installed version.</p>
<pre>:~$ gfortran-9 --version
GNU Fortran (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</pre>
<p>Now, let us test it. Create a new file called <code>hello.f90</code>. And add the following.</p>
<pre>:~$ nano hello.f90
program hello
write(6,*)'Hello world. Welcome to osradar.'
stop
end</pre>
<p>Press CTRL + O to save the changes and CTRL + X to close.</p>
<p>After that, compile it using the terminal.</p>
<pre>:~$ gfortran-9 -o hello hello.f90</pre>
<p>Then, run it.</p>
<pre>:~$ ./hello
Hello world! Welcome to Osradar</pre>
<p>So, everything is working.</p>
<h2>Conclusion</h2>
<p>Fortran is a very old programming language. However, there are sectors where it is very important and that is why there are still tools for the language. In this case, we have Fortran and the GNU Fortran compiler.</p>
<p>If you are a developer, you can get more post about <a href="https://www.osradar.com/tag/programming/" target="_blank" rel="noopener noreferrer">programming</a>.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gnu-fortran-on-ubuntu-20-04-18-04/">How to install GNU Fortran on Ubuntu 20.04 / 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-gnu-fortran-on-ubuntu-20-04-18-04/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
