<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=F2c</id>
	<title>F2c - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=F2c"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=F2c&amp;action=history"/>
	<updated>2026-06-19T21:23:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=F2c&amp;diff=1517&amp;oldid=prev</id>
		<title>Admin at 07:03, 10 March 2011</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=F2c&amp;diff=1517&amp;oldid=prev"/>
		<updated>2011-03-10T07:03:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:03, 10 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l186&quot;&gt;Line 186:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 186:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and it should tell you where it&amp;#039;s at.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and it should tell you where it&amp;#039;s at.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Computers]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Programs]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=F2c&amp;diff=1509&amp;oldid=prev</id>
		<title>Admin: /* Installing */</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=F2c&amp;diff=1509&amp;oldid=prev"/>
		<updated>2011-03-09T22:37:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Installing&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:37, 9 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Installing =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Installing =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Thanks to http://hamishrickerby.com/ for the following script:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Thanks to http://hamishrickerby.com/ for the following script &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[http://hamishrickerby.com/2009/02/20/installing-f2c-on-a-mac]&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=F2c&amp;diff=1508&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;f2c (fortran-2-c) is a library which allows the conversion of Fortran code into C code.  It comes in really handy if you&#039;re not a Fortran person and you&#039;re given a Fortran code t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=F2c&amp;diff=1508&amp;oldid=prev"/>
		<updated>2011-03-09T22:37:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;f2c (fortran-2-c) is a library which allows the conversion of Fortran code into C code.  It comes in really handy if you&amp;#039;re not a Fortran person and you&amp;#039;re given a Fortran code t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;f2c (fortran-2-c) is a library which allows the conversion of Fortran code into C code.  It comes in really handy if you&amp;#039;re not a Fortran person and you&amp;#039;re given a Fortran code to deal with.&lt;br /&gt;
&lt;br /&gt;
= Installing =&lt;br /&gt;
&lt;br /&gt;
Thanks to http://hamishrickerby.com/ for the following script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
############################################################&lt;br /&gt;
# This UNIX script builds the f2c FORTRAN --&amp;gt; C translator #&lt;br /&gt;
# under Mac OS X.                                          #&lt;br /&gt;
# Make this script executable with &amp;quot;chmod +x buildf2c&amp;quot;     #&lt;br /&gt;
############################################################&lt;br /&gt;
echo &amp;quot;===================================&amp;quot;&lt;br /&gt;
echo &amp;quot;Build f2c FORTRAN --&amp;gt; C translator.&amp;quot;&lt;br /&gt;
echo &amp;quot;===================================&amp;quot;&lt;br /&gt;
echo &amp;quot;USAGE:  ./buildf2c&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
######################################&lt;br /&gt;
# Set trap to allow abort on signal: #&lt;br /&gt;
######################################&lt;br /&gt;
trap &amp;#039;echo &amp;quot;Interrupted by signal&amp;quot; &amp;gt;&amp;amp;amp;amp;2; exit&amp;#039; 1 2 3 15&lt;br /&gt;
 &lt;br /&gt;
########################################################&lt;br /&gt;
# 1. Download f2c source from Bell Labs.               #&lt;br /&gt;
# (Tar file is not visible - it&amp;#039;s created on the fly.) #&lt;br /&gt;
########################################################&lt;br /&gt;
echo &amp;quot;--------------------------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;1. Downloading f2c source from Bell Labs ...&amp;quot;&lt;br /&gt;
echo &amp;quot;--------------------------------------------&amp;quot;&lt;br /&gt;
# wget --passive-ftp ftp://netlib.bell-labs.com/netlib/f2c.tar&lt;br /&gt;
curl http://netlib.sandia.gov/cgi-bin/netlib/netlibfiles.tar?filename=netlib/f2c -o &amp;quot;f2c.tar&amp;quot;&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
#####################################&lt;br /&gt;
# 2. Uncompress f2c tarred archive: #&lt;br /&gt;
#####################################&lt;br /&gt;
echo &amp;quot;-------------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;2. Uncompressing f2c source ...&amp;quot;&lt;br /&gt;
echo &amp;quot;-------------------------------&amp;quot;&lt;br /&gt;
tar -xvf f2c.tar&lt;br /&gt;
gunzip -rf f2c/*&lt;br /&gt;
cd f2c&lt;br /&gt;
mkdir libf2c&lt;br /&gt;
mv libf2c.zip libf2c&lt;br /&gt;
cd libf2c&lt;br /&gt;
unzip libf2c.zip&lt;br /&gt;
cd ../..&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
###############################################################&lt;br /&gt;
# 3. Prepare the unix makefiles for building the f2c library. #&lt;br /&gt;
#    Note: CC compiler switched from &amp;#039;cc&amp;#039; to &amp;#039;/usr/bin/cc&amp;#039;   #&lt;br /&gt;
###############################################################&lt;br /&gt;
echo &amp;quot;-------------------------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;3. Preparing makefiles for building f2c ...&amp;quot;&lt;br /&gt;
echo &amp;quot;-------------------------------------------&amp;quot;&lt;br /&gt;
sed &amp;#039;s/CC = cc/CC = \/usr\/bin\/cc/&amp;#039; f2c/libf2c/makefile.u &amp;gt; f2c/libf2c/makefile&lt;br /&gt;
sed &amp;#039;s/CC = cc/CC = \/usr\/bin\/cc/&amp;#039; f2c/src/makefile.u &amp;gt; f2c/src/makefile&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
##########################################&lt;br /&gt;
# 4. Create and install f2c header file. #&lt;br /&gt;
# If you use a C++ compiler:  make hadd  #&lt;br /&gt;
# Otherwise:                  make f2c.h #&lt;br /&gt;
##########################################&lt;br /&gt;
echo &amp;quot;----------------------------------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;4. Creating and installing f2c header file f2c.h ...&amp;quot;&lt;br /&gt;
echo &amp;quot;----------------------------------------------------&amp;quot;&lt;br /&gt;
cd f2c/libf2c&lt;br /&gt;
make f2c.h&lt;br /&gt;
if test ! -d /usr/local/include; then&lt;br /&gt;
mkdir -p /usr/local/include&lt;br /&gt;
fi&lt;br /&gt;
cp f2c.h /usr/local/include/&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
################################################&lt;br /&gt;
# 5. Create and install f2c library &amp;quot;libf2c.a&amp;quot; #&lt;br /&gt;
################################################&lt;br /&gt;
echo &amp;quot;-----------------------------------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;5. Creating and installing f2c library &amp;quot;libf2c.a&amp;quot; ...&amp;quot;&lt;br /&gt;
echo &amp;quot;-----------------------------------------------------&amp;quot;&lt;br /&gt;
make&lt;br /&gt;
if test ! -d /usr/local/lib; then&lt;br /&gt;
mkdir -p /usr/local/lib&lt;br /&gt;
fi&lt;br /&gt;
cp libf2c.a /usr/local/lib/&lt;br /&gt;
ranlib /usr/local/lib/libf2c.a&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
######################################&lt;br /&gt;
# 6. Make executable f2c translator: #&lt;br /&gt;
######################################&lt;br /&gt;
echo &amp;quot;---------------------------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;6. Creating and installing f2c translator ...&amp;quot;&lt;br /&gt;
echo &amp;quot;---------------------------------------------&amp;quot;&lt;br /&gt;
cd ../src&lt;br /&gt;
make&lt;br /&gt;
if test ! -d /usr/local/bin; then&lt;br /&gt;
mkdir -p /usr/local/bin&lt;br /&gt;
fi&lt;br /&gt;
cp f2c /usr/local/bin/&lt;br /&gt;
ln -s /usr/local/bin/f2c /bin/f2c&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
################################################################&lt;br /&gt;
# 7. Install fc script:                                        #&lt;br /&gt;
#                                                              #&lt;br /&gt;
# 1. Remove &amp;quot;-Olimit 2000&amp;quot; in the -O processing options within #&lt;br /&gt;
#    the &amp;#039;fc&amp;#039; script.                                          #&lt;br /&gt;
# 2. Eliminate all references to the math library (-lm) in     #&lt;br /&gt;
#    the script &amp;#039;fc&amp;#039; since it is included the System framework #&lt;br /&gt;
#    and is linked by default under Mac OS X.                  #&lt;br /&gt;
# 3. Eliminate &amp;#039;-u MAIN__&amp;#039; at the bottom of the &amp;#039;fc&amp;#039; script.   #&lt;br /&gt;
#    You will have to explitly load FORTRAN MAIN programs      #&lt;br /&gt;
#    (explicitly mention the relevant .f or .o file).          #&lt;br /&gt;
################################################################&lt;br /&gt;
echo &amp;quot;---------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;7. Installing fc script ...&amp;quot;&lt;br /&gt;
echo &amp;quot;---------------------------&amp;quot;&lt;br /&gt;
cd ..&lt;br /&gt;
mv fc fc.orig&lt;br /&gt;
sed &amp;#039;s/ -Olimit 2000//g; s/ -lm//g; s/ -u MAIN__//g&amp;#039; fc.orig &amp;gt; fc&lt;br /&gt;
chmod +x fc&lt;br /&gt;
cp fc /usr/local/bin/&lt;br /&gt;
ln -s /usr/local/bin/fc /bin/fc&lt;br /&gt;
ln -s /usr/local/bin/fc /bin/f77&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
#########################&lt;br /&gt;
# 8. Install man pages: #&lt;br /&gt;
#########################&lt;br /&gt;
echo &amp;quot;---------------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;8. Installing man pages ...&amp;quot;&lt;br /&gt;
echo &amp;quot;---------------------------&amp;quot;&lt;br /&gt;
cp f2c.1t /usr/share/man/man1/f2c.1&lt;br /&gt;
echo &amp;quot;... done.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
################&lt;br /&gt;
# 9. Clean up: #&lt;br /&gt;
################&lt;br /&gt;
echo &amp;quot;------------------&amp;quot;&lt;br /&gt;
echo &amp;quot;9. Cleaning up ...&amp;quot;&lt;br /&gt;
echo &amp;quot;------------------&amp;quot;&lt;br /&gt;
cd src&lt;br /&gt;
make clean&lt;br /&gt;
cd ../libf2c&lt;br /&gt;
make clean&lt;br /&gt;
cd ../..&lt;br /&gt;
echo &amp;quot;... All done!&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
#############################################&lt;br /&gt;
# 10. Test f2c on your FORTRAN source code: #&lt;br /&gt;
#############################################&lt;br /&gt;
echo &amp;quot;======================================================&amp;quot;&lt;br /&gt;
echo &amp;quot;======================================================&amp;quot;&lt;br /&gt;
echo &amp;quot;======================================================&amp;quot;&lt;br /&gt;
echo &amp;quot;   === To test f2c on your FORTRAN source code: ===&amp;quot;&lt;br /&gt;
echo &amp;quot;   === cd ~/wherever/your/code/is               ===&amp;quot;&lt;br /&gt;
echo &amp;quot;   === 1. f2c myprog.f                          ===&amp;quot;&lt;br /&gt;
echo &amp;quot;   ===    cc -O -o myprog.exe myprog.c -lf2c    ===&amp;quot;&lt;br /&gt;
echo &amp;quot;   ===    myprog.exe                            ===&amp;quot;&lt;br /&gt;
echo &amp;quot;   === 2. fc -O -w -o myprog.exe myprog.f       ===&amp;quot;&lt;br /&gt;
echo &amp;quot;   ===    myprog.exe                            ===&amp;quot;&lt;br /&gt;
echo &amp;quot;======================================================&amp;quot;&lt;br /&gt;
echo &amp;quot;======================================================&amp;quot;&lt;br /&gt;
echo &amp;quot;======================================================&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy and paste this into a script file, say, &amp;lt;code&amp;gt;build.sh&amp;lt;/code&amp;gt;.  Then make the build script executable:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ chmod +x build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and run the build script (you have to be the superuser, or else you have to go through the script and replace all the &amp;lt;code&amp;gt;/bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; stuff with your own directories - if you do that, don&amp;#039;t forget to add the location to your path!)&lt;br /&gt;
&lt;br /&gt;
Finally, to ensure you&amp;#039;ve installed it OK, type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ which f2c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and it should tell you where it&amp;#039;s at.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>