<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Compile_MohidWater_for_Debian_Linux</id>
		<title>Compile MohidWater for Debian Linux - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Compile_MohidWater_for_Debian_Linux"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;action=history"/>
		<updated>2026-04-04T17:06:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=2718&amp;oldid=prev</id>
		<title>Guillaume: /* Install SoS and prepare directories */</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=2718&amp;oldid=prev"/>
				<updated>2010-01-06T13:46:30Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Install SoS and prepare directories&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:46, 6 January 2010&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-l46&quot; &gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;== Install SoS and prepare directories ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;== Install SoS and prepare directories &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[Deprecated] &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First, get the Debian package from [http://www.sourcegear.com/sos/downloads.html &amp;lt;nowiki&amp;gt;[3]&amp;lt;/nowiki&amp;gt;], copy it to ''/usr/src'', and install it:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First, get the Debian package from [http://www.sourcegear.com/sos/downloads.html &amp;lt;nowiki&amp;gt;[3]&amp;lt;/nowiki&amp;gt;], copy it to ''/usr/src'', and install it:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ su&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ su&lt;/div&gt;&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-l61&quot; &gt;Line 61:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ chgrp -R mohid /mnt/data/mohid&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ chgrp -R mohid /mnt/data/mohid&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ chmod -R 2775 /mnt/data/mohid&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ chmod -R 2775 /mnt/data/mohid&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Compile HDF5 with Intel Fortran ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Compile HDF5 with Intel Fortran ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=2717&amp;oldid=prev</id>
		<title>Guillaume at 13:46, 6 January 2010</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=2717&amp;oldid=prev"/>
				<updated>2010-01-06T13:46:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:46, 6 January 2010&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-l253&quot; &gt;Line 253:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 253:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A: Probably, you're using a Ubuntu distribution. In Ubuntu, the root login is disabled entirely by default (see ''man sudo_root''). Use ''sudo su'' with your user password, instead of ''su'', to login as root. Do '''not''' use ''sudo bash''! This command will not read your ''.bashrc''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A: Probably, you're using a Ubuntu distribution. In Ubuntu, the root login is disabled entirely by default (see ''man sudo_root''). Use ''sudo su'' with your user password, instead of ''su'', to login as root. Do '''not''' use ''sudo bash''! This command will not read your ''.bashrc''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;==See also==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;*[[Nix]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=119&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=119&amp;oldid=prev"/>
				<updated>2008-12-03T10:26:59Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:26, 3 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=118&amp;oldid=prev</id>
		<title>192.168.20.177: /* Test status */</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compile_MohidWater_for_Debian_Linux&amp;diff=118&amp;oldid=prev"/>
				<updated>2007-07-27T15:14:45Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Test status&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Compile  Mohid for Debian linux&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This document provides a complete step-by-step howto for getting to work MOHID in a Debian-based environment. You will learn how to install the Intel Fortran 10, how to build your own customized Debian packages, and, finally, how to compile the MOHID sources in your readily set-up environment. Many of the information provided in this document can be found in other places of the Wiki, too. In that case, the sections here are kept short, and references to other articles are given. Still, there is some redundancy in information.&lt;br /&gt;
&lt;br /&gt;
So, let's get to work - to boldly compile, where no one has compiled before. ;)&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
First of all, make sure you have your systems environment set up. You need&lt;br /&gt;
# basic knowledge of package management in Debian-based Linux distributions [http://www.debian.org/doc/manuals/maint-guide/index.en.html &amp;lt;nowiki&amp;gt;[1]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
# root access and a Bash shell at the computer you want to install your MOHID on&lt;br /&gt;
# a number of package management related packages (see below)&lt;br /&gt;
# loads of coffee or Club Mate&lt;br /&gt;
# the source packages for Intel Fortran 10 [http://www.intel.com/cd/software/products/asmo-na/eng/219771.htm &amp;lt;nowiki&amp;gt;[2]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
# the source packages for SourceOffSite [http://www.sourcegear.com/sos/downloads.html &amp;lt;nowiki&amp;gt;[3]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
# the source packages for NetCDF (we'll get to that later)&lt;br /&gt;
# the source packages for MOHID (we'll get to that later, too)&lt;br /&gt;
So, first of all, make sure you have the necessary packages installed&lt;br /&gt;
 sudo aptitude install alien fakeroot zlib1g-bin zlib1g-dev debian-builder&lt;br /&gt;
Note! If you discover there are packages missing in this list, please edit this article and add them to the list.&lt;br /&gt;
&lt;br /&gt;
=== Conventions used in this document ===&lt;br /&gt;
Some information - like path names, version numbers, etc. - may differ depending on your system. In general, such information is represented by upper-case words and must be replaced by you with the according values; e.g. VERSION represents 10.0.023 in Intel Fortran context, ARCH stands for your system's architecture (32bit Intel, 64bit AMD, etc.), and USER needs to be replaced with your system's user name. &lt;br /&gt;
&lt;br /&gt;
If shell commands need to be executed as root, this will be indicated by including the ''su'' or ''sudo '' command into the code boxes. When there's neither one of these prepended, assume you can execute the commands  given as regular user.&lt;br /&gt;
&lt;br /&gt;
== Install Intel Fortran 10 ==&lt;br /&gt;
The Intel Fortran installation has already been described [[Ifort#.2Anix|in this wiki]], so this is the short version. You need to get the source package from Intel and unpack it to /usr/src/l_fc_p_VERSION (VERSION was 10.0.023, when this document was written). Then, convert the RPM packages suitable for your system. The packages for AMD architecture have the ''e'' in the name. Also, there's a difference between x32 and x64 Intel architecture, so be sure to pay attention to that.&lt;br /&gt;
 $ su&lt;br /&gt;
 $ cd /usr/src/l_fc_p_VERSION/data/&lt;br /&gt;
 $ alien intel-ifort[e]VERSION-1.ARCH.rpm&lt;br /&gt;
 $ alien intel-iidb[e]VERSION-1.ARCH.rpm&lt;br /&gt;
 $ dpkg -i --force-overwrite *.deb&lt;br /&gt;
Note that it is '''absolutely necessary''' to install the compiler this way and '''not''' using the installation script shipped by Intel. If you do not alien and dpkg the packages, your apt will not know the Intel Fortran is installed, which will lead to problems in the NetCDF compilation, later on.&lt;br /&gt;
&lt;br /&gt;
The fortran packages will be installed to ''/opt/intel/fc/VERSION/'' and ''/opt/intel/idb/VERSION/''. Now, change into the directories and virtually link them, so you won't have to edit all your files later on:&lt;br /&gt;
 $ su&lt;br /&gt;
 $ cd /opt/intel/fc/&lt;br /&gt;
 $ ln -s ./VERSION current&lt;br /&gt;
 $ cd ../idb/&lt;br /&gt;
 $ ln -s ./VERSION current&lt;br /&gt;
Now, source the environment variable scripts. Add the following lines to your ''.bashrc'': &lt;br /&gt;
 source /opt/intel/fc/current/bin/ifortvars.sh&lt;br /&gt;
 source /opt/intel/idb/current/bin/idbvars.sh&lt;br /&gt;
These scripts add the paths to the compiler to your shell enviroment. In order to activate this, you need to logout and login, or execute the commands above one from the commandline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install SoS and prepare directories ==&lt;br /&gt;
First, get the Debian package from [http://www.sourcegear.com/sos/downloads.html &amp;lt;nowiki&amp;gt;[3]&amp;lt;/nowiki&amp;gt;], copy it to ''/usr/src'', and install it:&lt;br /&gt;
 $ su&lt;br /&gt;
 $ cd /usr/src&lt;br /&gt;
 $ dpkg -i sospro_VERSION_ARCH.deb&lt;br /&gt;
Then, prepare the directories for the MOHID sources and the like. Add a group called ''mohid'' for all the users who are to be granted the right to compile MOHID.  &lt;br /&gt;
 $ su&lt;br /&gt;
 $ mkdir /opt/mohid&lt;br /&gt;
 $ mkdir /opt/mohid/sos&lt;br /&gt;
 $ mkdir /opt/mohid/source&lt;br /&gt;
 $ mkdir /opt/mohid/source/mohid_v4&lt;br /&gt;
 $ groupadd mohid&lt;br /&gt;
 $ addgroup USER mohid&lt;br /&gt;
 $ chgrp -R mohid /mnt/data/mohid&lt;br /&gt;
 $ chmod -R 2775 /mnt/data/mohid&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Compile HDF5 with Intel Fortran ==&lt;br /&gt;
Get the latest HDF5 library and compile it with Intel Fortran. Test the sources' checksum:&lt;br /&gt;
 $ cd /opt/mohid/source&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-VERSION*&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ gunzip hdf5-VERSION.tar.gz&lt;br /&gt;
 $ md5sum -c hdf5-VERSION.tar.md5&lt;br /&gt;
 $ tar -xvf hdf5-VERSION.tar&lt;br /&gt;
 $ cd hdf5-VERSION/fortran&lt;br /&gt;
 $ cd hdf5-VERSION/&lt;br /&gt;
 $ ./configure --enable-fortran F9X=ifort&lt;br /&gt;
 $ make &amp;amp;&amp;amp; make install&lt;br /&gt;
VERSION was 1.6.5 when this document was created.&lt;br /&gt;
&lt;br /&gt;
== Compile NetCDF with Intel Fortran ==&lt;br /&gt;
This step is the most difficult one in the entire process. You need to get recompile/re-package the NetCDF sources with the Intel Fortran, because the binaries installed with ''aptitude install netcdf-bin'' do only support the Gnu C/C++ compiler. In additition, the Makefiles are optimised for the Gnu Fortran compiler that is the default Fortran compiler in Debian-based distributions.&lt;br /&gt;
&lt;br /&gt;
Normally, you should not need to walk through the steps described in this section, but should be able to simply get the re-compiled NetCDF .deb files from ---here--- and install them. But in case these files don't work, or there are no packages for your specific architecture/environment available yet, here's all the information you need.&lt;br /&gt;
&lt;br /&gt;
First note that in order to re-build the package, you need to have the Intel Fortran installed as .deb-Package, so the dpkg-buildpackage command can find the related dependencies. (see notes on ''debian/control'' below). Alright, start with getting the sources:&lt;br /&gt;
 $ su&lt;br /&gt;
 $ cd /usr/src/&lt;br /&gt;
 $ apt-get source netcdf-bin&lt;br /&gt;
 $ cd netcdf-VERSION&lt;br /&gt;
VERSION was 3.6.1 when this document was created. Now you need to edit a couple of file with information that is used by the packaging program. First, create a changelog entry. Add the lines below to the very top of the file ''debian/changelog'':&lt;br /&gt;
 netcdf (3.6.1-0.1.1) unstable; urgency=low&lt;br /&gt;
 &lt;br /&gt;
   * apply changes necessary to compile with Intel Fortran 10.0.23&lt;br /&gt;
 &lt;br /&gt;
  -- Lutz Broedel &amp;lt;lb@fggm.uni-hannover.de&amp;gt;  Thu, 27 Jul 2007 11:11:17 +0001&lt;br /&gt;
 &lt;br /&gt;
Be sure to add .1 to the version number. This prevents apt from trying to install an &amp;quot;updated&amp;quot; version. See also [5]. In the example code snippet below the (sub)version number changed from 3.6.1-0.1 to 3.6.1-0.1.1. Also, make sure that there is no blank line in the beginning, and the number of spaces in the beginning of lines is correct: There must be ''two'' space characters before a first level ''*'' item, ''four'' spaces before a second level ''*'' item, and ''one'' space character before the ''--'' item. You can be more narrative in describing the changes, if you like.&lt;br /&gt;
&lt;br /&gt;
In the ''debian/control'' file, change the following lines:&lt;br /&gt;
 Build-Depends: g77 | fortran77-compiler&lt;br /&gt;
 Build-Conflicts: gfortran-4.0, gfortran-4.1, gfortran&lt;br /&gt;
to&lt;br /&gt;
 Build-Depends: intel-ifortVERSION&lt;br /&gt;
 Build-Conflicts: g77 | fortran77-compiler&lt;br /&gt;
The line ''Build-Depends'' must contain the compiler package name, as it is registered by your aptitude. Type&lt;br /&gt;
 $ dpkg -l *ifort* | grep '^ii' | sed -e 's/&amp;lt;nowiki&amp;gt;[[:space:]]&amp;lt;/nowiki&amp;gt;*/ /' | cut -d' ' -f4&lt;br /&gt;
 intel-ifort100023&lt;br /&gt;
 $&lt;br /&gt;
Of course, the output may differ, depending on your system's architecture, compiler version, etc. &lt;br /&gt;
&lt;br /&gt;
Now, start editing the actual compilation options. In the file ''debian/rules'', change:&lt;br /&gt;
 CPPFLAGS=-Df2cFortran -DNDEBUG -D_REENTRANT&lt;br /&gt;
 FFLAGS=-g -O2&lt;br /&gt;
to&lt;br /&gt;
 CPPFLAGS=-Df2cFortran -DpgiFortran -DNDEBUG -D_REENTRANT&lt;br /&gt;
 FFLAGS=-g -O2 -w -mp -recursive&lt;br /&gt;
If you are familiar with Fortran compilers, the CPPFLAGS may seem strange, because we add a Portland option although this is Intel, but believe (or test) that otherwise, it won't work. Refer to the ''src/INSTALL'' file, too. The ifort is being told to maintain floating point precision, to suppress warnings, and to compile all procedures for possible recursive execution.&lt;br /&gt;
Further down the file, about line 36 following, change &lt;br /&gt;
     cd src &amp;amp;&amp;amp; \&lt;br /&gt;
       CPPFLAGS=&amp;quot;$(CPPFLAGS)&amp;quot; \&lt;br /&gt;
       CFLAGS=&amp;quot;$(CFLAGS) -fPIC&amp;quot; \&lt;br /&gt;
       CXXFLAGS=&amp;quot;$(CFLAGS) -fPIC&amp;quot; \&lt;br /&gt;
       FFLAGS=&amp;quot;$(FFLAGS) -fPIC&amp;quot; \&lt;br /&gt;
       FC=g77 \&lt;br /&gt;
         ./configure --prefix=/usr&lt;br /&gt;
to&lt;br /&gt;
     cd src &amp;amp;&amp;amp; \&lt;br /&gt;
       CPPFLAGS=&amp;quot;$(CPPFLAGS)&amp;quot; \&lt;br /&gt;
       CFLAGS=&amp;quot;$(CFLAGS) -fPIC&amp;quot; \&lt;br /&gt;
       CXXFLAGS=&amp;quot;$(CFLAGS) -fPIC&amp;quot; \&lt;br /&gt;
       FFLAGS=&amp;quot;$(FFLAGS) -fPIC&amp;quot; \&lt;br /&gt;
       FC=ifort \&lt;br /&gt;
       F90=ifort \&lt;br /&gt;
         ./configure --prefix=/usr&lt;br /&gt;
Also, about at line 71 and following, change&lt;br /&gt;
     cd src &amp;amp;&amp;amp; \&lt;br /&gt;
       CPPFLAGS=&amp;quot;$(CPPFLAGS)&amp;quot; \&lt;br /&gt;
       CFLAGS=&amp;quot;$(CFLAGS)&amp;quot; \&lt;br /&gt;
       FFLAGS=&amp;quot;$(FFLAGS)&amp;quot; \&lt;br /&gt;
       F90=gfortran \&lt;br /&gt;
         ./configure --prefix=/usr&lt;br /&gt;
to&lt;br /&gt;
     cd src &amp;amp;&amp;amp; \&lt;br /&gt;
       CPPFLAGS=&amp;quot;$(CPPFLAGS)&amp;quot; \&lt;br /&gt;
       CFLAGS=&amp;quot;$(CFLAGS)&amp;quot; \&lt;br /&gt;
       FFLAGS=&amp;quot;$(FFLAGS)&amp;quot; \&lt;br /&gt;
       F90=ifort \&lt;br /&gt;
         ./configure --prefix=/usr&lt;br /&gt;
&lt;br /&gt;
There is a bug in NetCDF Version 3.6.0 that's supposed to be fixed, but which occured nevertheless in my compilation attempts. The compilation process stopped with the message&lt;br /&gt;
 make[1]: *** [binary-arch-libc6] Fehler 2&lt;br /&gt;
A workaround for this is proposed in [6]. The problem is simply that some of the man pages won't install correctly. You need to change the line (about 336) to&lt;br /&gt;
 #gzip -9v debian/tmp-dev/usr/share/man/*/*&lt;br /&gt;
 gzip -9qf debian/tmp-dev/usr/share/man/man3/*&lt;br /&gt;
and change the line (about 343) to&lt;br /&gt;
 #gzip -9v debian/tmp-bin/usr/share/man/*/*&lt;br /&gt;
 gzip -9qf debian/tmp-bin/usr/share/man/man1/*&lt;br /&gt;
Note that in the examples above, the commented lines are the original ones, the other ones show the changes. In addition, you need to comment out the lines:&lt;br /&gt;
 gzip -9v debian/tmp-dev/usr/share/doc/$(package)g-dev/[^e]*     \&lt;br /&gt;
           debian/tmp-dev/usr/share/doc/$(package)g-dev/examples/*&lt;br /&gt;
Seems kind of strange that the compilation of a program should fail, because the documentation cannot be compressed properly, but well, you have to deal with this.&lt;br /&gt;
&lt;br /&gt;
The next file to to edit is ''src/configure''. The configuration script does not expect the ifort when searching for a Fortran compiler, so you have to add this. What you need to do is&lt;br /&gt;
# change the lines starting with ''for ac_prog in pathf90''... so that they contain ifort in the list of executables&lt;br /&gt;
# in the ''uname -sr'' case switch, add ifort to the forts-variable in the ''Linux*'' option. &lt;br /&gt;
# in the ''test x$FC'' construct, add '' -o x$FC=xifort'' to the test statements&lt;br /&gt;
# change ''*) F90=xlf90'' to ''*) F90=ifort''&lt;br /&gt;
# change ''F90=$FC'' to ''F90=ifort''&lt;br /&gt;
You can find all the above mentioned constructs with a file search for the phrases provided above.&lt;br /&gt;
&lt;br /&gt;
Last, you need to edit ''src/ncgen/Makefile'' explicitely. Change the following line to&lt;br /&gt;
 #ld_netcdf  = -L../libsrc -lnetcdf&lt;br /&gt;
 ld_netcdf   = -L/opt/intel/fc/current/lib -lguide -lifcore -L../libsrc -lnetcdf&lt;br /&gt;
Note again that in the examples above, the commented lines are the original ones, the other ones show the changes. For some reasons, the compiler won't find its libraries otherwise, and will die with &amp;quot;undefined reference to 'for_strcpy'&amp;quot; errors and the like.&lt;br /&gt;
 &lt;br /&gt;
That's it. Now, you can build the debian package from the sources, by executing:&lt;br /&gt;
 $ su&lt;br /&gt;
 $ cd /usr/src/netcdf-VERSION&lt;br /&gt;
 $ dpkg-buildpackage -rfakeroot -uc -us&lt;br /&gt;
 $ cd ..&lt;br /&gt;
 $ for i in &amp;quot;libnetcdf3 libnetcdf3++ netcdf-bin netcdfg-dev&amp;quot;; do dpkg -i $i_*.deb; done&lt;br /&gt;
The order in which you install the packages, is important, because of dependencies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Compile MohidWater ==&lt;br /&gt;
The actual compilation of MohidWater has been explained in detail [[%2ANIX_platforms#Building_MohidWater|in this wiki]], so this is the short version. Use SoS to get the sources initially, with the following settings:&lt;br /&gt;
 connect: sos.mohid.com, port 8890&lt;br /&gt;
 database: Mohid_v4&lt;br /&gt;
 working directory: /opt/mohid/source/mohid_v4&lt;br /&gt;
Download the repositories. Then, change into the source directory and, first of all, make sure the file names are correct:&lt;br /&gt;
 $ cd /opt/mohid/source/mohid_v4&lt;br /&gt;
 $ for i in `find . | grep '\.f90' | grep -v 'GOTMVariables'`; do \&lt;br /&gt;
 &amp;gt; new=&amp;quot;`echo $i | sed -e 's/.f90/.F90/g'`&amp;quot;; \&lt;br /&gt;
 &amp;gt; mv $i $new; \&lt;br /&gt;
 &amp;gt; done&lt;br /&gt;
Create the makefiles:&lt;br /&gt;
 $ cp makefiles/Sos_template.mk makefiles/Sos.mk&lt;br /&gt;
 $ cp nix_template.mk nix.mk&lt;br /&gt;
Edit the Sos.mk makefiles and add your user access data. SOSHOME must be the folder, where the sos.key resides, e.g&lt;br /&gt;
 SOSHOME := /opt/mohid/sos/&lt;br /&gt;
Edit nix.mk, and make sure it contains the following lines:&lt;br /&gt;
 export DESTDIR = /opt/mohid/bin&lt;br /&gt;
 export HDF5 = /opt/mohid/source/hdf5-VERSION/hdf5/lib&lt;br /&gt;
Possibly, you need to copy and rename the libnetcdf.a&lt;br /&gt;
 $ cp /usr/src/netcdf-VERSION/src/shlib/libnetcdf.a \&lt;br /&gt;
 &amp;gt; /opt/mohid/source/mohid_v4/netcdf.a&lt;br /&gt;
Now, type&lt;br /&gt;
 $ make nix&lt;br /&gt;
and, hopefully, everything should compile fine.&lt;br /&gt;
&lt;br /&gt;
==Test status==&lt;br /&gt;
Users are invited to fill in this table whether they succeed or fail at testing the MohidWater binaries,&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|width=&amp;quot;10%&amp;quot;|'''bin \ status'''&lt;br /&gt;
|width=&amp;quot;20%&amp;quot;|'''Compiled'''&lt;br /&gt;
|width=&amp;quot;20%&amp;quot;|'''Tested'''&lt;br /&gt;
|width=&amp;quot;20%&amp;quot;|'''Remarks&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|'''MohidWater'''&lt;br /&gt;
| yes&lt;br /&gt;
| no&lt;br /&gt;
| -&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|'''ConvertToHDF5'''&lt;br /&gt;
| yes&lt;br /&gt;
| no&lt;br /&gt;
| -&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|'''ConvertToNetcdf'''&lt;br /&gt;
| yes&lt;br /&gt;
| no&lt;br /&gt;
| -&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|'''ConvertToXYZ'''&lt;br /&gt;
| ?&lt;br /&gt;
| no&lt;br /&gt;
| -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Intel Fortran 10 ===&lt;br /&gt;
''Q: I stumble on the error message &amp;quot;export: 36: Illegal option -n&amp;quot;''&lt;br /&gt;
&lt;br /&gt;
A: See what /bin/sh points to. In Ubuntu, this happened to be /bin/dash.&lt;br /&gt;
If it's not the Bourne Again Shell, replace /bin/sh with /bin/bash in &lt;br /&gt;
 	/opt/intel/fc/current/bin/ifort and&lt;br /&gt;
 	/opt/intel/fc/current/bin/ifortvars.sh&lt;br /&gt;
(see also [4], Section 4.)&lt;br /&gt;
&lt;br /&gt;
=== Misc ===&lt;br /&gt;
Q: The ''su'' command gives me an &amp;quot;incorrect password&amp;quot; error. / I don't&lt;br /&gt;
know my root password.&lt;br /&gt;
&lt;br /&gt;
A: Probably, you're using a Ubuntu distribution. In Ubuntu, the root login is disabled entirely by default (see ''man sudo_root''). Use ''sudo su'' with your user password, instead of ''su'', to login as root. Do '''not''' use ''sudo bash''! This command will not read your ''.bashrc''.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[1]&amp;lt;/nowiki&amp;gt; [http://www.debian.org/doc/manuals/maint-guide/index.en.html| http://www.debian.org/doc/manuals/maint-guide/index.en.html]&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[2]&amp;lt;/nowiki&amp;gt; [http://www.intel.com/cd/software/products/asmo-na/eng/219771.htm| http://www.intel.com/cd/software/products/asmo-na/eng/219771.htm]&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[3]&amp;lt;/nowiki&amp;gt; [http://www.sourcegear.com/sos/downloads.html| http://www.sourcegear.com/sos/downloads.html]&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[4]&amp;lt;/nowiki&amp;gt; [http://www.intel.com/support/performancetools/sb/CS-025939.htm| http://www.intel.com/support/performancetools/sb/CS-025939.htm]&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[5]&amp;lt;/nowiki&amp;gt; [http://lj4newbies.blogspot.com/2007/06/true-transparency-tilda-terminal-on.html| http://lj4newbies.blogspot.com/2007/06/true-transparency-tilda-terminal-on.html]&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[6]&amp;lt;/nowiki&amp;gt; [http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=378610| http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=378610]&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[7]&amp;lt;/nowiki&amp;gt; [http://forums.xandros.com/viewtopic.php?t=13341| http://forums.xandros.com/viewtopic.php?t=13341]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	</feed>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-56589921-5', 'auto');
  ga('send', 'pageview');
</script>