<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Compile</title><link>https://sourceforge.net/p/libstatmech/wiki/Compile/</link><description>Recent changes to Compile</description><atom:link href="https://sourceforge.net/p/libstatmech/wiki/Compile/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 07 Feb 2016 14:09:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libstatmech/wiki/Compile/feed" rel="self" type="application/rss+xml"/><item><title>Compile modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/libstatmech/wiki/Compile/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -5,7 +5,7 @@

 Check for Dependencies
 --------------
-The libstatmech codes depend on [libxml2](http://www.libxml.org), the XML C parser and toolkit of Gnome, and [gsl](http://www.gnu.org/software/gsl), the GNU Scientific Libaray.
+The libstatmech codes depend on [libxml2](http://www.libxml.org), the XML C parser and toolkit of Gnome, and [gsl](http://www.gnu.org/software/gsl), the GNU Scientific Library.

 To find out if you have libxml2 properly installed on your system, type at the command line:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sun, 07 Feb 2016 14:09:42 -0000</pubDate><guid>https://sourceforge.net26e5918a15c0ac8b44971c7f603873b38b807e67</guid></item><item><title>Compile modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/libstatmech/wiki/Compile/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,3 +1,8 @@
+Introduction
+------------
+
+This tutorial demonstrates how to compile the example codes of libstatmech.  It assumes you are in a Linux or Unix environment.  If you are using a different operating system, please adjust the following instructions as appropriate.
+
 Check for Dependencies
 --------------
 The libstatmech codes depend on [libxml2](http://www.libxml.org), the XML C parser and toolkit of Gnome, and [gsl](http://www.gnu.org/software/gsl), the GNU Scientific Libaray.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sat, 06 Feb 2016 19:37:42 -0000</pubDate><guid>https://sourceforge.net3a7ee9ccb30fe3479afc177ab8f5ac258bba2cc0</guid></item><item><title>Compile modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/libstatmech/wiki/Compile/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="check-for-dependencies"&gt;Check for Dependencies&lt;/h2&gt;
&lt;p&gt;The libstatmech codes depend on &lt;a class="" href="http://www.libxml.org" rel="nofollow"&gt;libxml2&lt;/a&gt;, the XML C parser and toolkit of Gnome, and &lt;a class="" href="http://www.gnu.org/software/gsl" rel="nofollow"&gt;gsl&lt;/a&gt;, the GNU Scientific Libaray.&lt;/p&gt;
&lt;p&gt;To find out if you have libxml2 properly installed on your system, type at the command line:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;xml2-config&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If libxml2 is properly installed, the command will return a Usage description and a list of Options.  Note that you can check which version of libxml2 is installed by typing&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;xml2-config --version&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If libxml2 is not properly installed, the result of running xml2-config will be the line&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;xml2-config: command not found&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In this case, you will need to install libxml2 by following the appropriate instructions from this blog &lt;a class="" href="https://sourceforge.net/p/nucnet-projects/wiki/libraries/"&gt;post&lt;/a&gt; before compiling libstatmech codes.&lt;/p&gt;
&lt;p&gt;To find out if you have gsl properly installed on your system, type at the command line:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;gsl-config&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If gsl is properly installed, the command will return a Usage description and a list of Options.  Note that you can check which version of gsl is installed by typing&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;gsl-config --version&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If gsl is not properly installed, the result of running gsl-config will be the line&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;gsl-config: command not found&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In this case, you will need to install gsl by following the appropriate instructions from this blog &lt;a class="" href="https://sourceforge.net/p/nucnet-projects/wiki/libraries/"&gt;post&lt;/a&gt; before compiling libstatmech codes.&lt;/p&gt;
&lt;h2 id="compile-the-examples"&gt;Compile the Examples&lt;/h2&gt;
&lt;p&gt;After downloading libstatmech, go to the directory examples/ of the distribution. For example, if your current installation of libstatmech is in the directory ~/modules/libstatmech/0.4/, type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;cd ~/modules/libstatmech/0.4/examples&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now compile the examples by typing&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;make all&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This will generate all the executable files.  You can also make them separately. For example, type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;make create_fermion&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;to generate the executable file create_fermion.  Please note that we have  the compiler flags set for &lt;a class="" href="http://gcc.gnu.org" rel="nofollow"&gt;gcc&lt;/a&gt; and for memory checking with &lt;a class="" href="http://www.valgrind.org" rel="nofollow"&gt;Valgrind&lt;/a&gt;.  You may wish to edit the Makefile.  Look for this part of the Makefile:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;#===============================================================================
# Edit the following lines to give the path to the libstatmech codes, to choose
# the compiler (gcc or g++), and to choose whether you will check
# executable with Valgrind:
#===============================================================================

STATMECHSRCDIR = ../src/
GC=gcc
VALGRIND=yes

#===============================================================================
# End of editing
#===============================================================================
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You should only need to change the lines in this section.  For example, you might want to change the compiler from gcc to g++ by setting GC=g++ or to optimize by setting VALGRIND=no.  (Note that Valgrind works better without optimization.)&lt;/p&gt;
&lt;h2 id="clean-the-examples"&gt;Clean the Examples&lt;/h2&gt;
&lt;p&gt;To remove the object files created during compilation, type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;make clean&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To remove all the object and executable files, type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;make cleanall&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sat, 06 Feb 2016 14:22:43 -0000</pubDate><guid>https://sourceforge.netbde48d5fc61234e5323061cbd38a641961540aac</guid></item></channel></rss>