<html>
<head>
	<title>INblobs editor</title>
        <meta name="keywords" content="IN, Interaction Nets, editor, INblobs" />
	<meta name="description" content="Free Interaction Nets editor." />
</head>

<body>

	<p/>
        <center>
        <a href="#warnings">Warnings/Restrictions</a><br />
        <a href="#windows">Windows</a><br />
        <a href="#macOsX">MacOsX</a><br />
        <a href="#linux">Linux</a><br />
        </center>
        <p/>





<h2><a name="warnings">Warnings/Restrictions</a></h2>
<ul>
	<li> HaXml >= 1.17 only compiles with GHC >= 6.6
	<li> to compile HaXml or INblobs using Cabal (i.e. <code>runhaskell Setup.hs OPTION</code>) you need at least Cabal 1.1.4 (with GHC >= 6.4.2 this requirement is automatically satisfied)
	<li> you can obtain the latest version of HaXml, wxHaskell or INblobs picking it up from the respective repositories with <code>darcs get URL_TO_REPOSITORY</code>. Alternatively download tarball releases.
	<li> for wxHaskell is recommended to download the repository version; actual package versions are really out of date.
	<li> This gives the usual equivalences between Cabal commands and typical <code>make</code>.
	<table>
		<head><th>without Cabal</th><th>with Cabal</th></head>
		<tr><td><code>./configure</code></td><td><code>runhaskell Setup.hs configure</code></td></tr>
		<tr><td><code>make</code></td><td><code>runhaskell Setup.hs build</code></td></tr>
		<tr><td><code>make install</code></td><td><code>runhaskell Setup.hs install</code></td></tr>
		<tr><td><code>make doc</code></td><td><code>runhaskell Setup.hs haddock</code></td></tr>
	</table>
</ul>

<h2><a name="windows">Windows</a></h2>
It compiles at least with the following versions:
<ol> 
	<li>Download <a href="http://www.haskell.org/ghc/dist/6.4/ghc-6-4-bld2.msi">GHC 6.4</a>
	<li>Download <a href="ftp://ftp.cs.york.ac.uk/pub/haskell/HaXml/HaXml-1.19.1.zip">HaXml 1.19</a>
	<br/>Install with <code>HaXml-1.19\Build.bat</code> editing this file as needed.
	<li>Download <a href="http://prdownloads.sourceforge.net/wxhaskell/wxhaskell-bin-msw2.4.2-ghc6.4-0.9.4-1.zip?download">wxHaskell 0.9.4</a>
	<br/>Install with <code>wxhaskell-0.9.4\bin\wxhaskell-register.bat</code>
	<li>Download  <a href="http://haskell.di.uminho.pt/jmvilaca/INblobs/INblobs.tar.gz">INblobs</a>
	<br/>Compile with <code>INblobs\startghc.bat</code>
</ol>

<h2><a name="macOsX">MacOsX</a></h2>

<ol>
	<li> Install GHC 6.4 (ensure that is 6.4 and not 6.4.X) (<a href="http://www.haskell.org/ghc/dist/6.4/MacOSX/GHC-6.4.pkg.zip">download here</a>)</li>
	<li> Install wxHaskell for Mac (<a href="http://prdownloads.sourceforge.net/wxhaskell/wxhaskell-bin-mac2.5.4-ghc6.4-0.9.4-0.dmg?download">download here</a>)</li>
	<li> Download <a href="ftp://ftp.cs.york.ac.uk/pub/haskell/HaXml/HaXml-1.19.1.tar.gz">HaXml 1.19</a>
	<br/><code>./configure<br/>
make<br/>
make install
</code>
	<li> Download  <a href="http://haskell.di.uminho.pt/jmvilaca/INblobs/INblobs.tar.gz">INblobs</a>
	<br/>Edit <code>Makefile</code>
	<br/><code>make</code>
</ol>

<h2><a name="linux">Linux</a></h2>
<h3>Ubuntu Feisty</h3>
The following script is available (<a href="../scriptINblobs">scriptINblobs</a>).
<ol>
	<li>Ensure the universe repository of Ubuntu is enabled:
	<br/><code>sudo vi /etc/apt/sources.list</code>
	<br/>and uncomment the universe repository lines:
	<br/><code> # deb http://archive.ubuntu.com/ubuntu feisty universe<br/>
	       # deb-src http://archive.ubuntu.com/ubuntu feisty universe
	</code>
	<br/> Then
	<br/><code>sudo apt-get update</code>

	<li> install GHC and darcs
	<br/><code>
		sudo apt-get install ghc6<br/>
		sudo apt-get install darcs
	</code>

	<li> install HaXml
	<br/><code>
		darcs get http://www.cs.york.ac.uk/fp/darcs/polyparse<br/>
		cd polyparse<br/>
		runhaskell Setup.hs configure<br/>
		runhaskell Setup.hs build<br/>
		sudo runhaskell Setup.hs install<br/>
		cd ..<br/>
<br/>
		darcs get http://www.cs.york.ac.uk/fp/darcs/HaXml<br/>
		cd HaXml<br/>
		runhaskell Setup.hs configure<br/>
		runhaskell Setup.hs build</code>  (this operation take some time)<br/><code>
		sudo runhaskell Setup.hs install<br/>
		cd ..
	</code>

	<li>install WxWidgets 2.6
	<br/><code>
		sudo apt-get install libwxgtk2.6-dev<br/>
		sudo apt-get install freeglut3-dev<br/>
		sudo apt-get install g++
	</code>

	<li>install wxHaskell
	<br/><code>
		sudo apt-get install libghc6-time-dev<br/>
		darcs get http://darcs.haskell.org/wxhaskell<br/>
		cd wxhaskell<br/>
		chmod u+x configure<br/>
		./configure --with-opengl<br/>
		make<br/>
		sudo make install<br/>
		make wx<br/>
		sudo make wx-install<br/>
		cd ..
	</code>

	<li> compile INblobs
	<br/><code>
		darcs get http://haskell.di.uminho.pt/jmvilaca/INblobs<br/>
		cd INblobs<br/>
		runhaskell Setup.hs configure<br/>
		runhaskell Setup.hs build</code>  (this operation take some time)

	<li> run INblobs
	<br/><code>./dist/build/INblobs/INblobs</code> 
	<br/>On this moment you should see the application.
	<li>Go to <a href="HowToUse.html">How To Use INblobs</a>

<h3>Any distribution</h3>

<ol>
<li> You need GHC 6.6 at least. There are binaries to several platforms at <a href="http://haskell.org/ghc/">GHC web page</a>. Install it and put it available in path.
<li> Download the necessary things
     <ul>
          <li> <a href="http://www.cs.york.ac.uk/fp/HaXml-1.14/HaXml-1.19.1.tar.gz">HaXml 1.19</a>
          <li> <a href="http://prdownloads.sourceforge.net/wxhaskell/wxhaskell-src-0.9.4-1.zip?download">wxHaskell 0.9.4-1</a>
          <li> <a href="http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.6.2.tar.gz">wxWidgets 2.6.2</a>
          <li> <a href="http://haskell.di.uminho.pt/jmvilaca/INblobs/INblobs.tar.gz">INblobs</a>
     </ul>
 
<li> Supposing you are in the folder with all the downloaded files, unpack the files:<br/> 
<li> Install HaXml
     <ol>
          <li>
              <code> 
                    ./configure<br/>
                    make
              </code>
          <li> Then as root run<br/>
                <code>make install</code>
          <li> run <code>ghci -package HaXml</code> to test.
     </ol>
<li> Install wxGTK
     <ol>
         <li> create a new directory for build, inside the wxGTK directory
         <li> run <br/>
             <code> 
                   ../configure --disable-shared --with-opengl --enable-sound --with-gtk --enable-gtk2 --disable-unicode<br/>
                   make
             </code>
          <li> Then as root run<br/>
                <code>make install</code>
          <li> Test wxGTK installation
               <ul> <li> run <code> wx-config --version</code> </ul>
     </ol>
<li> Install wxHaskell
     <ol>
          <li> run <code>./configure --help</code> to see if everything is correct
          <li>
              <code> 
                    ./configure --with-opengl<br/>
                    make
              </code>
          <li> Then as root run<br/>
                <code>make install<br/>
                      make doc</code>
          <li> Test it running <code>ghci -package wx</code>
     </ol>
<li> compile INblobs<br/>
<code>make</code><br/>
<li> Finally run INblobs
    <ul> <li> run <code>./INblobs</code> </ul>
</ol>

<p/>
If you prefer the whole bundle of commands...<br/>
<code>
tar xzvf HaXml-1.19.1.tar.gz<br/>
tar xzvf wxGTK-2.6.2.tar.gz<br/>
unzip wxhaskell-src-0.9.4-1.zip<br/>
tar xzvf INblobs.tar.gz<br/>
cd HaXml-1.19.1<br/>
./configure<br/>
make<br/>
sudo make install<br/>
cd ..<br/>
cd wxGTK-2.6.2
mkdir mybuild<br/>
cd mybuild<br/>
../configure --disable-shared --with-opengl --enable-sound --with-gtk --enable-gtk2 --disable-unicode<br/>
make<br/>
sudo make install<br/>
cd ../..<br/>
wx-config --version<br/>
cd wxhaskell-0.9.4<br/>
./configure --help<br/>
./configure --with-opengl<br/>
make<br/>
sudo make install<br/>
sudo make doc<br/>
ghci -package wx<br/>
cd ..<br/>
cd INblobs<br/>
make<br/>
./INblobs<br/>
</code>

<a href="../index.html">back to main page</a>
</body>
</html>