<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Axel and list users,<br><br>Thank you for you input on my question. Is is possible to both have gcc 4.1 <span class="770021915-10122008">(gcc/g++/g77)</span> and gcc 4.3.X <span class="770021915-10122008">(gcc/g++/g77) </span>installed on Ubuntu so that the compiler (<span style="font-family: arial,helvetica,sans-serif;">./Install -d /opt/esru42 --gcc4</span>) and esp-r only uses gcc 4.1<span class="770021915-10122008">(gcc/g++/g77)</span> while Ubuntu and other programmes who needs gcc 4.3.X can use that version.<br><br>Any surgestions on how do this or does anyone have any other surgestions on how to compile a usable and stable ESP-r with 42 zones with the described gcc-version probems?<br><br>Any help is appreciatet.<br><br><br>Best regards<br><br>Per<br><br><br>______________________<br>
<br>
Per Haugaard,<br>
Griffenfeldsgade 33, 2.tv<br>
2200 København N<br>
Denmark<br>
<br>
mobil:  +45 26 39 06 40<br>
E-mail: perhaugaard@yahoo.dk<br><br>--- Den <b>ons 10/12/08 skrev Ferguson, Alex <i>&lt;Alex.Ferguson@NRCan-RNCan.gc.ca&gt;</i></b>:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Fra: Ferguson, Alex &lt;Alex.Ferguson@NRCan-RNCan.gc.ca&gt;<br>Emne: RE: [esp-r] Re: Compiling ESP-r source code<br>Til: perhaugaard@yahoo.dk, "ESP-r_ny" &lt;esp-r@lists.strath.ac.uk&gt;<br>Dato: onsdag 10. december 2008 16.24<br><br><div id="yiv302466708">

 
<div dir="ltr" align="left"><span class="770021915-10122008">We've recently concluded 
that version 4.1 of the GCC compiler (gcc/g++/gfortran)&nbsp;is actually more 
robust than GCC 3.4 (gcc/g++/g77). gcc 4.2.X has produced some unexplained 
floating-point errors in ESP-r code; all of these relate to the plant network. 
We have not yet tested ESP-r using gcc 4.3.X.</span></div>
<div><font color="#0000ff"></font>&nbsp;</div>
<div><b><span lang="en-us">Alex Ferguson</span></b><span lang="en-us"><br>Sustainable Buildings and Communities (Housing 
Group)<br>CanmetENERGY<br>Natural Resources Canada<br>P:+1 613 995 3294<br>F:+1 
613 996 9909<br>Alex.Ferguson@nrcan.gc.ca<br></span></div>
<div>&nbsp;</div><br>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> esp-r-bounces@lists.strath.ac.uk 
[mailto:esp-r-bounces@lists.strath.ac.uk] <b>On Behalf Of </b>Per 
Haugaard<br><b>Sent:</b> December 10, 2008 08:58<br><b>To:</b> esp-r; 
ESP-r_ny<br><b>Subject:</b> [esp-r] Re: Compiling ESP-r source 
code<br></font><br></div>
<div></div>
<table border="0" cellpadding="0" cellspacing="0">
  <tbody>
  <tr>
    <td valign="top">H<span style="font-family: arial,helvetica,sans-serif;">ey 
      Jon and the rest of the usergroup.,</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">Thank you for your reply 
      to my query. I have a Ubuntu version 8.10 and it seems like it use gcc, 
      g++ and gfortran version 4.3.2. There are no g77 in the package 
      manager.</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">I therefore concluded that 
      I have to install via the command: </span><br style="font-family: arial,helvetica,sans-serif;"><pre><span style="font-family: arial,helvetica,sans-serif;">  ./Install -d /opt/esru42 --gcc4</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"><br>Is it safe to run ESP-r with gcc4 compiler?<br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">I can via the install --help see that I should use the gcc3-version </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">because the result obtained with ESP-r binaries build with gcc4 exhibit </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">unexplained differences.</span> <br><br>How do I on my machine increase the
 number of zone and keep a high  <br>accuracy in the calculations? Can I compile it to gcc3 instead and how do I do that?<br><br>Any help is appreciated.<br><br><br>Best regard<br><br>Per Haugaard<br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;</span><br style="font-family: arial,helvetica,sans-serif;"></span><br></pre><br><br><br>______________________<br><br>Per 
      Haugaard,<br>Griffenfeldsgade 33, 2.tv<br>2200 København 
      N<br>Denmark<br><br>mobil: +45 26 39 06 40<br>E-mail: 
      perhaugaard@yahoo.dk<br><br>--- Den <b>ons 10/12/08 skrev Jon Hand 
      <i>&lt;jon@esru.strath.ac.uk&gt;</i></b>:<br>
      <blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">Fra: 
        Jon Hand &lt;jon@esru.strath.ac.uk&gt;<br>Emne: [esp-r] Re: Compiling 
        ESP-r source code<br>Til: "perhaugaard@yahoo.dk" 
        &lt;perhaugaard@yahoo.dk&gt;, "ESP-r_ny" 
        &lt;esp-r@lists.strath.ac.uk&gt;, "esp-r" 
        &lt;esp-r@strath.ac.uk&gt;<br>Cc: "Jon Hand" 
        &lt;jon@esru.strath.ac.uk&gt;<br>Dato: onsdag 10. december 2008 
        10.44<br><br><pre>A recent question about compiling.  Actually there are more issues in the<br>warning<br>message than about XML....<br><br>You can get around the XML issue by saying no to the inclusion of XML.<br><br>There is a line g77: command not found - this is the fortran compiler and<br>nothing<br>is going to happen if it does not find the compiler.  What is likely is that:<br>a) your machine is newer and is using the<br> gfortran compiler and a newer<br>   version of the gcc compiler collection.  Check this via the commands<br>   which gcc<br>   gcc --version<br><br>   which g77<br>   g77 --version<br><br>   which gfortran<br>   gfortran --version<br><br>Sometimes g77 is really g77-3.4 and gcc is really gcc-3.4 in which case<br>you would install via the command<br>  ./Install -d /usr/esru --compiler_version -3.4<br><br>If your machine has gfortran and is using a version of gcc greater than 4.0<br>then check the Install --help messages for
 the syntax of using version 4<br>compilers.<br><br>b) your machine does not have either the g77 or gfortran then you<br>will need to use your package manager to install the compiler.<br><br>-ESRU<br>________________________________________<br>From: esp-r-bounces@lists.strath.ac.uk [esp-r-bounces@lists.strath.ac.uk] On<br>Behalf Of Per Haugaard [perhaugaard@yahoo.dk]<br>Sent: 10 December 2008 09:01<br>To: ESP-r_ny; esp-r<br>Cc: Per<br> Haugaard<br>Subject: [esp-r]  Compiling ESP-r source code<br><br>Dear Usergroup,<br><br>I have installed the pre-compiled binary files with out any problems. In an<br>actual project I need to increase the number of zones to 42 and therefore I have<br>tried to compile the ESP-r source code according to this.<br><br>During the installation the following warning message 'libxml2 library does<br>not appear to be installed' is showed and the installation is stopped. Refer<br>to the below massage:<br><br>cd `pwd`/lib; \<br>   
 make the_libNoH3KReports<br>make[1]: Entering directory `/trunk/src/lib'<br>rm -f TReports_dummy.F ;<br>ln -s `pwd`/../cetc/h3kreports/TReports_dummy.F . ;<br>g77  -I../include -I../shocc -I/usr/local/include -I../cetc/h3kreports -DLIN<br>-DX11    -fno-automatic -finit-local-zero -c TReports_dummy.F<br>make[1]: g77: Command not found<br>make[1]: *** [TReports_dummy.o] Error 127<br>make[1]: Leaving directory `/trunk/src/lib'<br>make: ***<br> [disableXML] Error 2<br> -----------------------------------------<br> Install: Fatal error.<br> Executable disableXML could not be built!<br> Installation aborted.<br><br>I have looked in the synaptic package manager and I have issued apt-get install<br>libxml2 but it is allready installed on the system but does not appear in the<br>/src/include or /usr/local/include folder.<br><br>Any idea of what has gone wrong in my installation of the source code?<br><br>Any help is appreciated :)<br><br><br>Best
 regards<br><br>Per Haugaard<br><br><br>______________________<br><br>Per Haugaard,<br>Griffenfeldsgade 33, 2.tv<br>2200 København N<br>Denmark<br><br>mobil: +45 26 39 06 40<br>E-mail: perhaugaard@yahoo.dk<br><br>________________________________<br><br>Find din nye laptop på kelkoo.dk. Se de gode tilbud<br>her&lt;http://dk.yahoo.com/r/pat/mm&gt;!<br><br>_______________________________________________<br>esp-r mailing<br> list<br>esp-r@lists.strath.ac.uk<br>http://lists.strath.ac.uk/mailman/listinfo/esp-r<br></pre></blockquote></td></tr></tbody></table><br>
<hr size="1">
<br>
<table>
  <tbody>
  <tr>
    <td>Trænger du til at se det store billede? Kelkoo giver dig gode tilbud 
      på <a rel="nofollow" target="_blank" href="http://dk.yahoo.com/r/pat/lcd">LCD 
TV</a>!</td></tr></tbody></table></div></blockquote></td></tr></table><br>



      <hr size=1><br><table><tr><td> 
Skal du købe ny bil? Sammenlign priser på brugte biler med Kelkoo og find et godt <a href=http://dk.yahoo.com/r/pat/mmb> tilbud!</a></td></tr></table>