<?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>miscellaneous.debris &#187; Research</title>
	<atom:link href="http://www.miscdebris.net/blog/category/research/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.miscdebris.net/blog</link>
	<description>A blog about my research work, computer and internet stuff, personal life.</description>
	<lastBuildDate>Sun, 17 Apr 2011 18:19:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The Greens library by Peter Koval and Stephan Fritzsche</title>
		<link>http://www.miscdebris.net/blog/2010/08/29/the-greens-library-by-peter-koval-and-stephan-fritzsche/</link>
		<comments>http://www.miscdebris.net/blog/2010/08/29/the-greens-library-by-peter-koval-and-stephan-fritzsche/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 19:36:34 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=240</guid>
		<description><![CDATA[In of my former research projects I wrote a Single Scatter Cluster code (called YaSC) where I made use of &#8220;The Greens library&#8221;. I found it quite useful to test my own routines against functions of this library as well as the Gnu Scientific Library. While the latter is still around and alive is the [...]]]></description>
			<content:encoded><![CDATA[<p>In of my former research projects I wrote a Single Scatter Cluster code (called YaSC) where I made use of &#8220;The Greens library&#8221;. I found it quite useful to test my own routines against functions of this library as well as the <a href="http://www.gnu.org/software/gsl/" target="_blank">Gnu Scientific Library</a>. While the latter is still around and alive is the Greens library not to be found in the net anymore. Since I found it quite useful and I&#8217;m sure it&#8217;s useful to others as well I&#8217;m publishing the code again.</p>
<p><span id="more-240"></span>In the Readme file the Greens library is described as:</p>
<blockquote>
<div id="_mcePaste">This is the C++ Greens library. It provides a tool for calculation of the Coulomb wave functions and Coulomb Green&#8217;s functions both in nonrelativistic and relativistic framework.</div>
</blockquote>
<p>I found nowhere in the code any license information at all, so I assume it is more or less public domain. The copyright is still by Peter Koval and Stephan Fritzsche. I hope someone finds this useful. This is the unmodified code of Koval and Fritzsche. I made some changes to the code so that it runs on modern Linux distributions and Mac OS X (including a CMakeLists.txt file) but I&#8217;m not sure if I&#8217;m allowed to distribute it, so I&#8217;ll contact the authors first.</p>
<p><a href="http://www.miscdebris.net/upload/Greens_adrj_v1_0.tar.gz">Download &#8220;The Greens Library&#8221;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2010/08/29/the-greens-library-by-peter-koval-and-stephan-fritzsche/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Gnuplot 4.4.0 on Mac OS X</title>
		<link>http://www.miscdebris.net/blog/2010/03/25/install-gnuplot-4-4-0-on-mac-os-x/</link>
		<comments>http://www.miscdebris.net/blog/2010/03/25/install-gnuplot-4-4-0-on-mac-os-x/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 12:37:22 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=190</guid>
		<description><![CDATA[In a former post I showed how Gnuplot 4.2.6 could be easily installed on Mac OS X. In the meantime Gnuplot 4.4.0 was released and although the wxWidgets terminal still doesn&#8217;t work on Mac OS X, there are the new cairo based terminals which provide png and pdf output. These terminals replace the gd terminals [...]]]></description>
			<content:encoded><![CDATA[<p>In a former <a href="http://www.miscdebris.net/blog/2009/09/16/install-gnuplot-on-mac-os-x/" target="_self">post</a> I showed how Gnuplot 4.2.6 could be easily installed on Mac OS X. In the meantime Gnuplot 4.4.0 was released and although the wxWidgets terminal still doesn&#8217;t work on Mac OS X, there are the new cairo based terminals which provide png and pdf output. These terminals replace the gd terminals (<a href="http://www.libgd.org/Main_Page" target="_blank">libgd</a> is not easily installed due it&#8217;s dependencies) and the old pdf terminal (which depends on the not-very-free <a href="http://www.pdflib.com/" target="_blank">pdflib</a>). Since gif and jpeg (libgd terminal) shouldn&#8217;t be used for plots anyways, this is no loss. Since these formats are the ones which I need mainly, I show in this post how we could compile and install Gnuplot with little effort, providing X11, png and pdf terminal (and others which are compiled in anyway).<span id="more-190"></span></p>
<p>First we need to download and install the GTK Framework, which was described <a href="http://www.miscdebris.net/blog/2010/02/19/gtk-framework-for-mac-os-x-as-well-as-cairo-pango/" target="_self">in this post</a>.  Basically you need to:</p>
<ol>
<li>Download the <a href="http://r.research.att.com/libs/GTK_2.18.5-X11.pkg" target="_blank">GTK_2.18.5-X11.pkg</a> package from <a href="http://r.research.att.com/" target="_blank">http://r.research.att.com/</a> and install it</li>
<li>Add to your .profile file in the home directory:
<pre class="brush: bash; title: ; notranslate">
export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH
</pre>
</li>
<li>(Re)start Terminal.app and see if <code>pkg-config cairo --libs</code> works.</li>
</ol>
<p>Then download Gnuplot 4.4.0, untar, configure and compile it:</p>
<ol>
<li>Download Gnuplot 4.4.0 from <a href="http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz/download" target="_blank">Sourceforge</a>.</li>
<li><code>tar xzf gnuplot-4.4.0.tar.gz</code></li>
<li><code>cd gnuplot-4.4.0</code></li>
<li><code>mkdir build &amp;&amp; cd build</code></li>
<li><code>../configure --with-readline=bsd --disable-wxwidgets<br />
</code>In the configure output you should find something like</p>
<pre>  wxt terminal: no (requires C++, wxWidgets&gt;2.6, cairo&gt;0.9, pango&gt;1.10)
  cairo-based pdf and png terminals: yes</pre>
</li>
<li><code>make</code></li>
<li><code>sudo make install</code></li>
</ol>
<p>Gnuplot will be installed in /usr/local/bin and should be ready to be used (if /usr/local/bin is in your path). pngcairo and pdfcairo are the new terminals you can use now. Gnuplot 4.4 has some <a href="http://www.gnuplot.info/announce.4.4.0" target="_blank">major improvements</a> so it may worth to install Gnuplot following these instructions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2010/03/25/install-gnuplot-4-4-0-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Install Gnuplot 4.4.0 on Ubuntu Linux</title>
		<link>http://www.miscdebris.net/blog/2010/03/03/install-gnuplot-4-4-0-rc1-on-ubuntu-linux/</link>
		<comments>http://www.miscdebris.net/blog/2010/03/03/install-gnuplot-4-4-0-rc1-on-ubuntu-linux/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:02:56 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=164</guid>
		<description><![CDATA[The most frequented blog entries here are about installing Gnuplot on Ubuntu Linux or Mac OS X. These entries are still valid for the newer Ubuntu versions. But Gnuplot newest version 4.4.0 was already released, and in this release there are cairo based pdf and png terminals provided. So you don&#8217;t need the pdflib anymore. [...]]]></description>
			<content:encoded><![CDATA[<p>The most frequented blog entries here are about installing <a href="http://www.miscdebris.net/blog/2008/01/23/install-gnuplot-on-ubuntu-gutsy-gibbon/" target="_blank">Gnuplot on Ubuntu</a> Linux or <a href="http://www.miscdebris.net/blog/2009/09/16/install-gnuplot-on-mac-os-x/" target="_blank">Mac OS X</a>. These entries are still valid for the newer Ubuntu versions. But <a href="http://www.gnuplot.info" target="_blank">Gnuplot</a> newest version 4.4.0 was already released, and in this release there are cairo based pdf and png terminals provided. So you don&#8217;t need the <a href="http://www.pdflib.com/" target="_blank">pdflib</a> anymore. Below you&#8217;ll find updated instructions to compile and install Gnuplot 4.4.0 with wxt and pdfcairo terminal. These instructions were tested on Ubuntu 8.04 (Hardy Heron) and Ubuntu 9.10 (Karmic Koala) and should also work on 8.10 (Intrepid Ibex) and 9.04 (Jaunty Jackalop).<span id="more-164"></span></p>
<p><strong>Prerequisites</strong></p>
<p>We need to make sure some packages are already installed before we try to compile gnuplot</p>
<ul>
<li>libwxgtk2.8-dev &#8211; for the wxt terminal</li>
<li>libpango1.0-dev &#8211; for the cairo (pdf, png) and wxt terminals</li>
<li>libreadline5-dev &#8211; readline support (editing command lines)</li>
<li>libx11-dev and libxt-dev &#8211; X11 terminal</li>
<li>texinfo (optional) &#8211; needed for the tutorial</li>
<li>libgd2-xpm-dev (optional) &#8211; old png, jpeg and gif terminals based on libgd</li>
</ul>
<p>This command (run in a terminal) will install all prerequisites if not already installed:</p>
<p><code>sudo apt-get install libwxgtk2.8-dev libpango1.0-dev libreadline5-dev libx11-dev libxt-dev texinfo libgd2-xpm-dev</code></p>
<p>Then we download and compile gnuplot (run each command/line in a terminal)</p>
<ul>
<li><code>wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz/download</code></li>
<li><code>tar xzf gnuplot-4.4.0.tar.gz</code></li>
<li><code>mkdir build &amp;&amp; cd build</code></li>
<li><code>../gnuplot-4.4.0/configure --with-readline=gnu</code></li>
</ul>
<p>check if you find the lines in the output at the bottom:</p>
<pre>X Window System terminal: yes
jpeg terminal: yes
gif terminal: yes (with animated gif)
png terminal: yes
    (jpeg, gif and png terminals can use TTF fonts)
wxt terminal: yes
cairo-based pdf and png terminals: yes
Readline library: GNU readline library with  -lncurses</pre>
<ul>
<li><code>make</code></li>
</ul>
<p>(if you have problems here with some latex errors than disable the latex tutorial during the configure stage with “<code>--without-tutorial</code>”, if you get a “103: makeinfo: not found” error message than install the texinfo package)</p>
<ul>
<li><code>sudo make install</code></li>
</ul>
<p>Then you have gnuplot installed with nice readline support (command line like in bash), a nice new wxWidgets terminal and a pdf terminal based on cairo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2010/03/03/install-gnuplot-4-4-0-rc1-on-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Install Gnuplot on Mac OS X</title>
		<link>http://www.miscdebris.net/blog/2009/09/16/install-gnuplot-on-mac-os-x/</link>
		<comments>http://www.miscdebris.net/blog/2009/09/16/install-gnuplot-on-mac-os-x/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 14:12:05 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[gnuplot]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=133</guid>
		<description><![CDATA[I provide another instructions to install Gnuplot 4.4.0 compiling it yourself on Mac OS X. There are some possibilities to install Gnuplot on Mac OS X, none of them is &#8220;official&#8221;, since the Gnuplot project doesn&#8217;t provide binaries for Mac OS X. It&#8217;s actually quite easy to configure and compile Gnuplot (i.e. ./configure; make; make [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I provide another instructions to <a href="http://www.miscdebris.net/blog/2010/03/25/install-gnuplot-4-4-0-on-mac-os-x/" target="_self">install Gnuplot 4.4.0 compiling it yourself on Mac OS X</a>. </strong></p>
<p>There are some possibilities to install <a href="http://www.gnuplot.info" target="_blank">Gnuplot</a> on Mac OS X, none of them is &#8220;official&#8221;, since the Gnuplot project doesn&#8217;t provide binaries for Mac OS X. It&#8217;s actually quite easy to configure and compile Gnuplot (i.e. ./configure; make; make install), but some terminals are not built due to missing dependencies and this makes Gnuplot less powerful.</p>
<p><span id="more-133"></span></p>
<p>There is some information on the web about running Gnuplot on Mac OS X already (<a href="http://lee-phillips.org/info/Macintosh/gnuplot.html" target="_blank">http://lee-phillips.org/info/Macintosh/gnuplot.html</a> , <a href="http://maba.wordpress.com/2006/08/02/scientific-plotting-on-mac-os-x-using-gnuplot-and-plot/" target="_blank">http://maba.wordpress.com/2006/08/02/scientific-plotting-on-mac-os-x-using-gnuplot-and-plot/</a> ) and there is also <a href="http://www.finkproject.org/ " target="_blank">http://www.finkproject.org/</a> and <a href="http://www.macports.org/" target="_blank">http://www.macports.org/</a> but there is IMO an easier way (though it still needs some work): there is a Gnuplot installer provided by Octave! Here are the instructions:</p>
<ul>
<li>Download Octave for Mac OS X from the <a href="http://octave.sourceforge.net/">Octaveforge homepage</a> (latest version at time of writing was 3.2.2).</li>
<li>Open the downloaded dmg file and browse to the Extras folder</li>
<li>Open gnuplot-4.2.5-i386.dmg and copy Gnuplot.app to your Applications folder (or anywhere else).</li>
<li>Alternatively you could directly download the <a href="http://www.miscdebris.net/upload/gnuplot-4.2.5-i386.dmg">gnuplot-4.2.5-i386.dmg from here</a>.</li>
</ul>
<p>That&#8217;s about it. Or at least it should be. Usually you just open Gnuplot.app and start plotting. But unfortunately the default aquaterm terminal doesn&#8217;t work for me always (on one Mac it did, on another it didn&#8217;t &#8211; maybe Aquaterm shouldn&#8217;t be installed before). So we need to hack Gnuplot.app so that X11 (which is also more powerful) becomes the default terminal.</p>
<ul>
<li>Right click on Gnuplot.app and choose &#8220;Show Package Contents&#8221;.</li>
<li>Browse to Contents/Resources and edit &#8220;script&#8221; with your favorite text editor</li>
<li>Replace both lines <em>do script (&#8220;exec &#8216;${ROOT}/bin/gnuplot&#8217;&#8221;)</em> with <em>do script (&#8220;GNUTERM=x11 exec &#8216;${ROOT}/bin/gnuplot&#8217;&#8221;) .</em> X11 will then be the default terminal.</li>
</ul>
<p>You might also want to have gnuplot available in your usual terminal session. This is also no problem. Just run the following command in your terminal</p>
<pre>ln -s /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot /Users/username/bin/gnuplot</pre>
<p>where username is your user name. /Users/username/bin must be added to the path, so that Gnuplot works form everywhere, e.g. you could add the following to the /Users/username/.profile file</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 579px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"># add binary directory of .local</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 579px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">export PATH=$HOME/.local/bin:$PATH</div>
<pre># add bin directory of home directory
export PATH=$HOME/bin:$PATH</pre>
<p>If you run gnuplot from the Terminal.app again the Aquaterm terminal is the default. This can be changed by adding</p>
<pre># use x11 as the default Gnuplot terminal
export GNUTERM=x11</pre>
<p>to your .profile file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2009/09/16/install-gnuplot-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MinGW (3.4.5) binaries of GNU Scientific Library 1.12 for use with MinGW and Visual C++</title>
		<link>http://www.miscdebris.net/blog/2009/04/20/mingw-345-binaries-of-gnu-scientific-library-112-for-use-with-mingw-and-visual-c/</link>
		<comments>http://www.miscdebris.net/blog/2009/04/20/mingw-345-binaries-of-gnu-scientific-library-112-for-use-with-mingw-and-visual-c/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 14:04:58 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[gsl]]></category>
		<category><![CDATA[mingw]]></category>
		<category><![CDATA[visual c++]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=112</guid>
		<description><![CDATA[&#8220;The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite&#8221;. Binaries of the GSL 1.11 were already provided in an earlier [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;The <a href="http://www.gnu.org/software/gsl/" target="_blank">GNU Scientific Library (GSL)</a> is a numerical library for C and C++ programmers. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite&#8221;.</p>
<p>Binaries of the GSL 1.11 were already provided in an <a href="http://www.miscdebris.net/blog/2008/12/12/mingw-345-binaries-of-gnu-scientific-library-111/" target="_self">earlier post</a> including instructions on how the package was assembled. Here, the binaries for GSL 1.12 are provided.</p>
<p><span id="more-112"></span>This new package also contains a modified gsl-config bash script &#8211; this script will now return the correct paths to the library regardless where you install the package (but can only be used inside MSYS). It&#8217;s also possible to use the pkg-config utility, but here you must set the PKG_CONFIG_PATH environment variable to the gsl-1.12/lib-shared/pkgconfig or gsl-1.12/lib-static/pkgconfig directory. The package also contains the import libraries for Visual C++. The dlls are stripped, so there is no debugging information in there.</p>
<p>Download: <a href="http://www.miscdebris.net/upload/gsl-1.12_mingw-3.4.5.tar.gz" target="_self">GSL 1.12 Binary for MinGW 3.4.5</a> (with Visual C++ import libraries)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2009/04/20/mingw-345-binaries-of-gnu-scientific-library-112-for-use-with-mingw-and-visual-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MinGW (3.4.5) binaries of GNU Scientific Library 1.11 for use with MinGW and Visual C</title>
		<link>http://www.miscdebris.net/blog/2008/12/12/mingw-345-binaries-of-gnu-scientific-library-111/</link>
		<comments>http://www.miscdebris.net/blog/2008/12/12/mingw-345-binaries-of-gnu-scientific-library-111/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 10:05:37 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[gsl]]></category>
		<category><![CDATA[mingw]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=85</guid>
		<description><![CDATA[The binaries for GSL 1.12 are provided in this post: MinGW (3.4.5) binaries of GNU Scientific Library 1.12 for use with MinGW and Visual C++ &#8220;The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. The library provides a wide range of mathematical routines such as random number generators, special functions [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The binaries for GSL 1.12 are provided in this post: </strong><a href="http://www.miscdebris.net/blog/2009/04/20/mingw-345-binaries-of-gnu-scientific-library-112-for-use-with-mingw-and-visual-c/"><strong>MinGW (3.4.5) binaries of GNU Scientific Library 1.12 for use with MinGW and Visual C++</strong></a></p>
<p>&#8220;The <a href="http://www.gnu.org/software/gsl/" target="_blank">GNU Scientific Library (GSL)</a> is a numerical library for C and C++ programmers. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite&#8221;.</p>
<p>GSL is quite Unix centric but one might want to use the library at least with <a href="http://www.mingw.org/" target="_blank">MinGW</a> on Windows. I didn&#8217;t find any MinGW binaries of GSL apart from the <a href="http://ascendwiki.cheme.cmu.edu/Binary_installer_for_GSL-1.11_on_MinGW" target="_blank">one provided by the Ascend package</a> or the <a href="http://gnuwin32.sourceforge.net/packages/gsl.htm" target="_blank">binaries from GNUWin32</a> (which is only at version 1.8), but I don&#8217;t like graphical installers for libraries and I needed the static library. Therefore I compiled my own library with <a href="http://www.mingw.org/wiki/msys" target="_blank">MSYS</a> (I updated MSYS according to this link) and provide here the tarred binary package, which can also be used with the MinGW compiler without MSYS and with Visual C (import libraries for the shared library are provided).</p>
<p><span id="more-85"></span>There are no makefiles for the MinGW compiler but it is possible to compile the GSL in the MSYS development environment. I wrote a little bash script which downloads the GSL source package (with the help of <a title="curl for windows package" href="http://curl.haxx.se/download/curl-7.18.0-win32-nossl-sspi.zip">curl</a>), untars the package, compiles the source and assembles the binaries and necessary files for development in a tar.gz package using <a href="http://downloads.sourceforge.net/sevenzip/7za457.zip" target="_blank">7zip</a>. Curl and 7zip need to be in the path or in the same directory as the script. The script will create a gsl_mingw directory where the source package is downloaded to and all compilation steps will take place. The tar.gz package will be created in gsl_mingw/package and copied to the directory where the script was run. Below you can download the binary package of GSL 1.11 for the MinGW 3.4.5 compiler toolset (to be used in MSYS and in native Windows CLI) and the script I wrote to compile GSL in MSYS yourself if you want. I also added the import libraries for Visual C (only for the shared GSL) according <a href="http://gnuwin32.sourceforge.net/msimport.html" target="_blank">GNUWin32 descriptions</a>.</p>
<p>Download: <a href="http://www.miscdebris.net/upload/gsl-1.11_mingw-3.4.5.tar.gz" target="_self">GSL 1.11 Binary for MinGW 3.4.5</a> (with Visual C import libraries)</p>
<p>The script will create a directory &#8220;gsl_mingw&#8221; in the same directory where the script is run. Before the scripts starts downloading the GSL package, it shows some informations and waits for user input.</p>
<pre class="brush: jscript; title: ; notranslate">

#######################################################################
# This MSYS/bash batch file will download, compile and make a package
# of the GNU scientific library for the MinGW compiler. You need to
# have Msys and MinGW already installed.
#
# You need curl.exe and 7za.exe for this script to work
# correctly:
#   - curl 7.18.0 no SSL download location:
# http://curl.haxx.se/download/curl-7.18.0-win32-nossl-sspi.zip
#   - 7-zip 4.57 command line version:
# http://downloads.sourceforge.net/sevenzip/7za457.zip
#######################################################################

#######################################################################
# determine directories and set variables
# source package will be downloaded to $MAINDIR
# source will be compiled in $BUILDDIR
# binary package will be created in $ROOTDIR
#######################################################################
export GSL_VERSION=1.11
export GSL_URL=ftp://ftp.gnu.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz
export MINGW_VERSION=`gcc -dumpversion`

export ROOTDIR=`pwd`
export MAINDIR=$ROOTDIR/gsl_mingw
export BUILDDIR=$MAINDIR/gsl-${GSL_VERSION}
export PACKAGEDIR=$MAINDIR/package

#######################################################################
# show user the settings and ask if he wants to continue
#######################################################################
echo
echo ==============================================================
echo == Please check the settings
echo ==============================================================
echo
echo Directories
echo ===========
echo ROOTDIR=$ROOTDIR
echo MAINDIR=$MAINDIR
echo BUILDDIR=$BUILDDIR
echo PACKAGEDIR=$PACKAGEDIR
echo
echo Other
echo =====
echo GSL_URL=$GSL_URL
echo GSL_VERSION=$GSL_VERSION
echo MINGW_VERSION=$MINGW_VERSION
echo

echo &quot;Should the build process be continued? Type y to continue!&quot;
read -n 1 -s
if [ &quot;$REPLY&quot; != &quot;y&quot; ]; then
echo &quot;Shell script stopped ...&quot;
exit -1;
fi

#######################################################################
# create directories
#######################################################################
mkdir $MAINDIR
mkdir $PACKAGEDIR

#######################################################################
# download and unpack gsl source code
#######################################################################
echo +++ Downloading gsl from $GSL_URL +++
curl $GSL_URL -o $MAINDIR/gsl-${GSL_VERSION}.tar.gz
pushd $MAINDIR
tar xzf gsl-${GSL_VERSION}.tar.gz
popd

#######################################################################
# configure and build library
#######################################################################
mkdir $BUILDDIR/buildstatic
pushd $BUILDDIR/buildstatic
../configure --enable-static=yes --enable-shared=no --prefix=$PACKAGEDIR/gsl-${GSL_VERSION}-static
make
make install
popd

mkdir $BUILDDIR/buildshared
pushd $BUILDDIR/buildshared
# CFLAGS=-DGSL_DLL ../configure --enable-static=no --enable-shared=yes  --prefix=$PACKAGEDIR/gsl-${GSL_VERSION}
../configure --enable-static=no --enable-shared=yes --prefix=$PACKAGEDIR/gsl-${GSL_VERSION}-shared
make
make install
popd

#######################################################################
# make package for website
#######################################################################
if [ 1 == 1 ]
then
pushd $PACKAGEDIR
mkdir -p gsl-${GSL_VERSION}/lib-static
mkdir -p gsl-${GSL_VERSION}/lib-shared
mkdir -p gsl-${GSL_VERSION}/bin
mkdir -p gsl-${GSL_VERSION}/include

cp -r gsl-${GSL_VERSION}-static/include/* gsl-${GSL_VERSION}/include
cp -r gsl-${GSL_VERSION}-static/lib/* gsl-${GSL_VERSION}/lib-static
cp -r gsl-${GSL_VERSION}-shared/lib/* gsl-${GSL_VERSION}/lib-shared
cp -r gsl-${GSL_VERSION}-shared/bin/* gsl-${GSL_VERSION}/bin

echo 'This GNU Scientific Library DLL was generated using MingW/Msys.' &gt; gsl-${GSL_VERSION}/README.txt
echo 'configure settings:' &gt;&gt; gsl-${GSL_VERSION}/README.txt
echo '../configure --enable-static=yes --enable-shared=no' &gt;&gt; gsl-${GSL_VERSION}/README.txt
echo '../configure --enable-static=no --enable-shared=yes' &gt;&gt; gsl-${GSL_VERSION}/README.txt
echo '' &gt;&gt; gsl-${GSL_VERSION}/README.txt
echo 'To create Visual C import libraries open a VC command line' &gt;&gt; gsl-${GSL_VERSION}/README.txt
echo 'and in lib-shared run:' &gt;&gt; gsl-${GSL_VERSION}/README.txt
echo 'lib /machine:i386 /def:libgsl-0.def' &gt;&gt; gsl-${GSL_VERSION}/README.txt
echo 'lib /machine:i386 /def:libgslcblas-0.def' &gt;&gt; gsl-${GSL_VERSION}/README.txt
pushd gsl-${GSL_VERSION}/bin
strip gsl-histogram.exe gsl-randist.exe libgsl-0.dll libgslcblas-0.dll
pexports.exe libgsl-0.dll &gt; ../lib-shared/libgsl-0.def
pexports.exe libgslcblas-0.dll &gt; ../lib-shared/libgslcblas-0.def
popd
tar -cf gsl-${GSL_VERSION}_mingw-${MINGW_VERSION}.tar gsl-${GSL_VERSION}
gzip gsl-${GSL_VERSION}_mingw-${MINGW_VERSION}.tar
mv gsl-${GSL_VERSION}_mingw-${MINGW_VERSION}.tar.gz $ROOTDIR
popd
fi

exit 1
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2008/12/12/mingw-345-binaries-of-gnu-scientific-library-111/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MinGW binaries of NetCDF 3.6.2</title>
		<link>http://www.miscdebris.net/blog/2008/05/02/mingw-binaries-of-netcdf-362/</link>
		<comments>http://www.miscdebris.net/blog/2008/05/02/mingw-binaries-of-netcdf-362/#comments</comments>
		<pubDate>Fri, 02 May 2008 06:38:59 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[mingw]]></category>
		<category><![CDATA[netcdf]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/2008/05/02/mingw-binaries-of-netcdf-362/</guid>
		<description><![CDATA[&#8220;netCDF (network Common Data Form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data&#8221;. On its homepage you&#8217;ll find a lot of precompiled libraries for Unix derivates but only a binary of netCDF 3.6.1 compiled with Visual C++. It&#8217;s possible to use this [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;<a title="NetCDF Homepage" href="http://www.unidata.ucar.edu/software/netcdf/" target="_blank">netCDF</a> (network Common Data Form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data&#8221;. On its homepage you&#8217;ll find a lot of precompiled libraries for Unix derivates but only a binary of netCDF 3.6.1 compiled with Visual C++. It&#8217;s possible to use this binary in MinGW also, but I prefer to use libraries compiled with the same compiler toolkit I&#8217;m working with. <span id="more-44"></span>There are no makefiles for the MinGW compiler but it is possible to compile the netCDF library in the MSys development ennvironment. I wrote a bash little script which downloads the netCDF source package (with the help of <a title="curl for windows package" href="http://curl.haxx.se/download/curl-7.18.0-win32-nossl-sspi.zip">curl</a>), untars the package, compiles the source and assembles the binaries and necessary files for development in a tar.gz package. Curl needs to be in the path or in the same directory as the script. The script will create a netcdf_mingw directory where the source package is downloaded to and all compilation steps will take place. The tar.gz package will be created in netcdf_mingw/package. Below you can download the binary package of netCDF 3.6.2 for the MinGW compiler toolset (to be used in MSys and in native Windows CLI) and the script I wrote to compile netCDF in MSys yourself if you want.</p>
<p>netCDF 3.6.2 Binary for MinGW 3.4.5: <a href="http://www.miscdebris.net/blog/wp-content/uploads/2008/05/netcdf-362_mingwtar.gz">Download</a> (rename the file to netcdf-3.6.2_mingw.tar.gz)</p>
<p>The script will create a directory netcdf_mingw in the same directory where the script is run. Before the scripts starts downloading the netCDF package, it shows some informations and waits for user input.</p>
<pre class="brush: jscript; title: ; notranslate">
#######################################################################
# This batch file will download, compile and make a package of
# the netcdf library for the MinGW compiler. You need to have Msys
# and MinGW already installed.
#
# You need curl.exe and 7za.exe for this script to work
# correctly:
#   - curl 7.18.0 no SSL download location:
# http://curl.haxx.se/download/curl-7.18.0-win32-nossl-sspi.zip
#   - 7-zip 4.57 command line version:
# http://downloads.sourceforge.net/sevenzip/7za457.zip
#######################################################################

#######################################################################
# determine directories
# source package will be downloaded into and compiled in $MAINDIR
# binary package will be created in $PACKAGEDIR
#######################################################################
export ROOTDIR=`pwd`
export MAINDIR=$ROOTDIR/netcdf_mingw
export BUILDDIR=$MAINDIR/netcdf-3.6.2
export PACKAGEDIR=$MAINDIR/package

#######################################################################
# show user the settings and ask if he wants to continue
#######################################################################
echo
echo ==============================================================
echo == Please check the settings
echo ==============================================================
echo
echo Directories
echo ===========
echo ROOTDIR=$ROOTDIR
echo MAINDIR=$MAINDIR
echo BUILDDIR=$BUILDDIR
echo PACKAGEDIR=$PACKAGEDIR
echo
echo Type y to continue!

read -n 1 ANSWER
if [ $ANSWER != &quot;y&quot; ]
then
exit -1;
fi

#######################################################################
# remove and create directories
#######################################################################
mkdir $MAINDIR
mkdir $PACKAGEDIR

#######################################################################
# download and unpack netcdf-3.6.2 package
#######################################################################
echo +++ Downloading netcdf library from http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.2.tar.gz +++
curl http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.2.tar.gz -o $MAINDIR/netcdf-3.6.2.tar.gz
pushd $MAINDIR
tar xzf netcdf-3.6.2.tar.gz
popd

#######################################################################
# configure and build library
#######################################################################
pushd $BUILDDIR
./configure --enable-shared --disable-separate-fortram --disable-cxx --disable-f90
make

#######################################################################
# make package for website
#######################################################################
if [ 1 == 1 ]
then
echo 'This netCDF DLL was generated using MingW/Msys.' &gt; $PACKAGEDIR/README_DLL.txt
echo '' &gt;&gt; $PACKAGEDIR/README_DLL.txt
echo './configure --enable-shared --disable-separate-fortram --disable-cxx --disable-f90' &gt;&gt; $PACKAGEDIRREADME_DLL.txt
echo 'To use the DLL from C, include netcdf.h.' &gt;&gt; $PACKAGEDIR/README_DLL.txt
echo 'To use the DLL from Fortran, include netcdf.inc.' &gt;&gt; $PACKAGEDIR/README_DLL.txt
cp libsrc/.libs/libnetcdf.a $PACKAGEDIR
cp libsrc/.libs/libnetcdf.dll.a $PACKAGEDIR
cp libsrc/.libs/libnetcdf-4.dll $PACKAGEDIR
cp libsrc/netcdf.h $PACKAGEDIR
cp fortran/netcdf.inc $PACKAGEDIR
cp ncgen/.libs/ncgen.exe $PACKAGEDIR
cp ncdump/.libs/ncdump.exe $PACKAGEDIR
pushd $PACKAGEDIR
tar -cf netcdf-3.6.2_mingw.tar netcdf.h libnetcdf.a libnetcdf.dll.a libnetcdf-4.dll README_DLL.txt netcdf.inc ncgen.exe ncdump.exe
gzip netcdf-3.6.2_mingw.tar
popd
fi

popd

exit 1
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2008/05/02/mingw-binaries-of-netcdf-362/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a movie file from single image files (png, jpegs)</title>
		<link>http://www.miscdebris.net/blog/2008/04/28/create-a-movie-file-from-single-image-files-png-jpegs/</link>
		<comments>http://www.miscdebris.net/blog/2008/04/28/create-a-movie-file-from-single-image-files-png-jpegs/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 11:49:29 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[movies]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=42</guid>
		<description><![CDATA[In research sometimes you want to make a movie from single images, like plots from experimental data or from calculation to visualize changes or so on. In order to achieve this you can use ffmpeg. First you have to create the images and save them, where the images need to have a continuous number in [...]]]></description>
			<content:encoded><![CDATA[<p>In research sometimes you want to make a movie from single images, like plots from experimental data or from calculation to visualize changes or so on. In order to achieve this you can use <a href="http://ffmpeg.mplayerhq.hu/" target="_blank">ffmpeg</a>. First you have to create the images and save them, where the images need to have a continuous number in the filename, e.g. img0001.png, img0002.png, &#8230;, &#8230;img5467.png. Take care that there is no image missing and that you have enough zeroes in front of the image number, so that the files are in the correct order.<span id="more-42"></span></p>
<p>After you have all the images in a folder, install ffmpeg, in Ubuntu/Debian Linux e.g.</p>
<pre>sudo apt-get install ffmpeg</pre>
<p>In order to make a movie (mp4 quicktime) out of the images you need to issue the following command</p>
<pre>ffmpeg -qscale 5 -r 20 -b 9600 -i img%04d.png movie.mp4</pre>
<p>The options are</p>
<ul>
<li>-qscale 5 &#8230; define fixed video quantizer scale (VBR) where 1 is the best and 31 the worst. Since mpeg/jpeg has problems to compress line graphics it&#8217;s a good idea to set this variable close to 1. You get a big movie file, but otherwise the movie doesn&#8217;t look, well, that good.</li>
<li>-r &#8230; framerate</li>
<li>-b &#8230; video bitrate</li>
<li>-i input files, %04d says that we have four numbers in the filename where the number is filled with zeros left of it.</li>
<li>movie.mp4 is the filename, the extension says that it is a quicktime movie. You can also create a Macromedia Flash movie by using the .flv extension.</li>
</ul>
<p>Links:</p>
<ul>
<li>Homepage, where I found most of these instructions: <a href="http://electron.mit.edu/~gsteele/ffmpeg/" target="_blank">http://electron.mit.edu/~gsteele/ffmpeg/</a></li>
<li>ffmpeg Homepage: <a href="http://ffmpeg.mplayerhq.hu/" target="_blank">http://ffmpeg.mplayerhq.hu/</a></li>
<li>ffmpeg Documentation: <a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html" target="_blank">http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2008/04/28/create-a-movie-file-from-single-image-files-png-jpegs/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Install gnuplot on Ubuntu</title>
		<link>http://www.miscdebris.net/blog/2007/04/27/install-gnuplot-on-ubuntu/</link>
		<comments>http://www.miscdebris.net/blog/2007/04/27/install-gnuplot-on-ubuntu/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 13:16:38 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=19</guid>
		<description><![CDATA[I once again updated these instructions for Gnuplot 4.4.0 RC1 and newer Ubuntu versions. Find these instructions in this post. There is an updated Howto for Ubuntu Gutsy Gibbon available. Though there is gnuplot available in the Ubuntu/Debian repositories, there are reasons to compile gnuplot &#8211; first and most important gnu readline support! I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I once again updated these instructions for Gnuplot 4.4.0 RC1 and newer Ubuntu versions. Find these instructions <a href="http://www.miscdebris.net/blog/2010/03/03/install-gnuplot-4-4-0-rc1-on-ubuntu-linux/" target="_self">in this post</a>.</strong></p>
<p><strong>There is an updated <a href="http://www.miscdebris.net/blog/2008/01/23/install-gnuplot-on-ubuntu-gutsy-gibbon/">Howto</a> for Ubuntu Gutsy Gibbon available. </strong></p>
<p>Though there is gnuplot available in the Ubuntu/Debian repositories, there are reasons to compile gnuplot &#8211; first and most important gnu readline support! I don&#8217;t know why Debian maintainers don&#8217;t compile the GNU readline support into GNUplot &#8211; it&#8217;s some license issues &#8211; but it&#8217;s like that and this makes gnuplot practically unusable. Second having the pdf and wxWidgets terminal is not that bad at all <img src='http://www.miscdebris.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So here are the instructions:<span id="more-19"></span></p>
<p>First we compile and install wxWidgets</p>
<ul>
<li>Download <a href="http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.3.tar.gz">wxWidgets GTK 2.8.3</a></li>
<li>Untar it somewhere: tar xzf wxGTK-2.8.3.tar.gz</li>
<li>cd cd wxGTK-2.8.3/</li>
<li>mkdir buildgtk</li>
<li>cd buildgtk</li>
<li>../configure</li>
<li>make</li>
<li>sudo paco -lp wxGTK-2.8.3 make install (or just make install if you don&#8217;t use paco)</li>
<li>sudo ldconfig (you may need to add /usr/local/lib to the file /etc/ld.so.conf before)</li>
</ul>
<p>Than we are going to install the PDFlib lite</p>
<ul>
<li>Download <a href="http://www.pdflib.com/en/download/free-software/pdflib-lite/" target="_blank">PDFlib Lite</a></li>
<li>tar xzf PDFlib-Lite-7.0.1.tar.gz</li>
<li>cd PDFlib-Lite-7.0.1</li>
<li>./configure</li>
<li>make</li>
<li>sudo paco -lD make install</li>
<li>sudo ldconfig</li>
</ul>
<p>Than we compile gnuplot</p>
<ul>
<li>Download <a href="http://sourceforge.net/project/showfiles.php?group_id=2055" target="_blank">gnuplot 4.2</a></li>
<li>tar xzf gnuplot-4.2.0.tar.gz</li>
<li>cd gnuplot-4.2.0</li>
<li>./configure &#8211;with-readline=gnu (check if we have the lines &#8220;pdf terminal: yes&#8221; and &#8220;wxt terminal: yes (EXPERIMENTAL)&#8221;, if you miss the jpeg, png and gif terminal install the libgd2-xpm-dev package; also check if you find &#8220;Readline library: GNU readline library with  -lncurses&#8221;, if it says only minimal readline support than install the libreadline5-dev package; you need also the libx11-dev and libxt-dev package for the X11 terminal &#8211; libxt-dev package is normally not installed by default (at the <a href="http://ftp.debian.org/debian/pool/main/g/gnuplot/gnuplot_4.2.0-2.dsc" target="_blank">debian page about gnuplot</a> one can find the packages necessary to build gnuplot))</li>
<li>make (if you have problems here with some latex errors than disable the latex tutorial during the configure stage with &#8220;&#8211;without-tutorial&#8221;, if you get a &#8220;103: makeinfo: not found&#8221; error message than install the texinfo package)</li>
<li>sudo paco -lD make install</li>
</ul>
<p>Than you have gnuplot installed with nice readline support (command line like in bash), a nice new wxWidgets terminal and a pdf terminal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2007/04/27/install-gnuplot-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Using \subref in the caption of a figure (LaTeX)</title>
		<link>http://www.miscdebris.net/blog/2007/02/21/using-subref-in-the-caption-of-a-figure-latex/</link>
		<comments>http://www.miscdebris.net/blog/2007/02/21/using-subref-in-the-caption-of-a-figure-latex/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 21:45:34 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=16</guid>
		<description><![CDATA[I use the subfig package and when I compiled my thesis in Linux I encountered a problem, when I used the \subref command in the caption of a figure. The compilation was stopped with the error message &#8220;Argument of \@tempf has an extra }.&#8221; Scanning the internet I found this forum entry in German where [...]]]></description>
			<content:encoded><![CDATA[<p>I use the subfig package and when I compiled my thesis in Linux I encountered a problem, when I used the \subref command in the caption of a figure. The compilation was stopped with the error message &#8220;Argument of \@tempf has an extra }.&#8221;</p>
<p>Scanning the internet I found this <a href="http://www.mrunix.de/forums/showthread.php?t=47902" target="_blank">forum entry</a> in German where it was proposed to add the command &#8220;\protect&#8221; before &#8220;\subref{fig:1}, which actually did the trick for me. I didn&#8217;t have this problem though with MikTeX.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2007/02/21/using-subref-in-the-caption-of-a-figure-latex/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

