<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Installation</title><link>https://sourceforge.net/p/jsqsh/wiki/Installation/</link><description>Recent changes to Installation</description><atom:link href="https://sourceforge.net/p/jsqsh/wiki/Installation/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 12 Dec 2012 23:03:26 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jsqsh/wiki/Installation/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Installation modified by Scott Gray</title><link>https://sourceforge.net/p/jsqsh/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -54,4 +54,31 @@

 This build should run on any platform with a JVM, but it doesn't include jsqsh's JNI (Java Native Interface) layer that provides certain functionality, such as command piping.  Command line editing should continue to work on any platform supported by the [JLine](https://github.com/jline/jline2) library.

+# Building #

+For any platform not listed above, you can build jsqsh from source pretty easily (especially for UNIX variants). For this you will need:
+
+* Java JDK 5 or later
+* [Apache Ant](http://ant.apache.org/) 1.7 or later
+* A C compiler that is recognized by [GNU autoconf](http://www.gnu.org/software/autoconf/)
+* The **$JAVA_HOME** environment variable pointing to your Java JDK
+* The jsqsh source downloaded from the **jsqsh-*-src.tar.gz** file from [here](https://sourceforge.net/projects/jsqsh/files/jsqsh/)
+
+Provided these criteria are met, you can do one of the following
+
+**ant dist-bin**
+
+This will produce a **.zip** file in the **build/** directory. When unpacked, it will contain a directory structure containing a **bin/jsqsh** script that should be capable of launching jsqsh with all of its functionality and glory.
+
+**ant dist-deb**
+
+This will produce a **build/*.deb** installation package for Debian distributions. By default the **.deb** file produced will be tagged as being for x86 architecture, but you may override this with:
+
+    ant -Darch=amd64 dist-deb
+
+where **arch** can be whatever architecture you are building on.
+
+**ant dist-rpm**
+
+This will produce a **build/*.rpm** installation package.
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Gray</dc:creator><pubDate>Wed, 12 Dec 2012 23:03:26 -0000</pubDate><guid>https://sourceforge.net1ab5a46b29def764dee7a9224d2ad2c86c872964</guid></item><item><title>WikiPage Installation modified by Scott Gray</title><link>https://sourceforge.net/p/jsqsh/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This page will attempt to walk you through the process of installing the pre-compiled releases of jsqsh to get you up and running as quickly as possible on your platform.&lt;/p&gt;
&lt;h1 id="java-version"&gt;Java Version&lt;/h1&gt;
&lt;p&gt;Regardless of platform, jsqsh requires a JVM compatible with Java 5 or later. While jsqsh will work on most JVM's, support for cancelling queries (by hitting CTRL-C while the query is running) is only supported by JVM's that provide Sun's signal handling API's.  The following JVM are known to provide this support:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sun/Oracle JRE&lt;/li&gt;
&lt;li&gt;OpenJDK JRE&lt;/li&gt;
&lt;li&gt;IBM JRE&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can download Sun's JVM from &lt;a href="http://java.sun.com"&gt;http://java.sun.com&lt;/a&gt; or OpenJDK from &lt;a href="http://openjdk.java.net."&gt;http://openjdk.java.net.&lt;/a&gt; Most Linux distributions have mechanisms available to automatically download and install Java and I will try to cover those specifically in the following sections.&lt;/p&gt;
&lt;h1 id="linux-installation"&gt;Linux installation&lt;/h1&gt;
&lt;p&gt;The following detail binary installation instruction for major Linux platforms that I've tested. It is important to note that many of these Linux platforms have other distributions that are derived from them and should work just fine. For example, Ubuntu has related distributions Kubuntu, Edubuntu, xubuntu, Mint, etc. Again, please let me (scottgray1@gmail.com) know if you have instructions for a platform not listed here and I'll add them.&lt;/p&gt;
&lt;h2 id="debian-deb"&gt;Debian (.deb)&lt;/h2&gt;
&lt;p&gt;I do most of my development on Mint Linux (an Ubuntu variant). Installation should be as simple as downloading the latest release from:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Grab the appropriate &lt;strong&gt;.deb&lt;/strong&gt; file from the latest version &lt;a class="" href="https://sourceforge.net/projects/jsqsh/files/jsqsh/"&gt;here&lt;/a&gt;.  &lt;strong&gt;NOTE&lt;/strong&gt; The giant green Sourceforge download button isn't aware of if you are 32bit or 64bit so will present the 32bit version by default. If you are 64bit, don't use that button and use the &lt;a class="" href="https://sourceforge.net/projects/jsqsh/files/jsqsh/"&gt;link&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;Download the &lt;strong&gt;.deb&lt;/strong&gt; file and open it from the download window/bar in your browser, you should be asked if you want to install it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Alternatively, you can manually install it with:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="n"&gt;dpkg&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="n"&gt;jsqsh&lt;/span&gt;&lt;span class="o"&gt;-*&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;deb&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h2 id="redhat-rpm"&gt;RedHat (.rpm)&lt;/h2&gt;
&lt;p&gt;I build the RPM build on Centos 5.8 (32 and 64 bit - thank you &lt;a class="" href="https://www.virtualbox.org/"&gt;Virtual Box&lt;/a&gt;!  Since jsqsh has few dependencies other than the JVM it should install on most any RPM distribution. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Grab the appropriate &lt;strong&gt;.rpm&lt;/strong&gt; file from the latest version &lt;a class="" href="https://sourceforge.net/projects/jsqsh/files/jsqsh/"&gt;here&lt;/a&gt;.  &lt;strong&gt;NOTE&lt;/strong&gt; The giant green Sourceforge download button isn't aware of if you are 32bit or 64bit so will present the 32bit version by default. If you are 64bit, don't use that button and use the &lt;a class="" href="https://sourceforge.net/projects/jsqsh/files/jsqsh/"&gt;link&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;Download the &lt;strong&gt;.rpm&lt;/strong&gt; file and open it from the download window/bar in your browser, you should be asked if you want to install it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Alternatively, you can manually install it with:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="n"&gt;rpm&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="n"&gt;jsqsh&lt;/span&gt;&lt;span class="o"&gt;-*&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rpm&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h1 id="windows"&gt;Windows&lt;/h1&gt;
&lt;p&gt;The windows build has no installer because I am lazy and learning two build systems (&lt;strong&gt;.deb&lt;/strong&gt; and &lt;strong&gt;.rpm&lt;/strong&gt;) was two too many for me.  I welcome anyone that wants to build an installer for it for me!&lt;/p&gt;
&lt;p&gt;However, the installation is easy:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download the appropriate &lt;strong&gt;jsqsh-win*.zip&lt;/strong&gt; file from &lt;a class="" href="https://sourceforge.net/projects/jsqsh/files/jsqsh/"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Unpack it where ever you want&lt;/li&gt;
&lt;li&gt;Run the &lt;strong&gt;bin/jsqsh.exe&lt;/strong&gt; binary to launch jsqsh&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;HELP&lt;/strong&gt; The 2.0 release only has a Windows 32 bit build. This is because I only own an ancient Windows XP 32bit version running in &lt;a class="" href="https://www.virtualbox.org/"&gt;Virtual Box&lt;/a&gt;. I don't plan on buying a new version of Windows just for this, so if anyone would like to donate a Windows 7 or 8 64bit build or license (Microsoft you out there?) I'd be happy to start providing builds.&lt;/p&gt;
&lt;h1 id="other-platforms"&gt;Other Platforms&lt;/h1&gt;
&lt;p&gt;If you run on a platform other than the above and you want a pre-built version, then download the &lt;strong&gt;jsqsh-*-noarch.zip&lt;/strong&gt; version from &lt;a class="" href="https://sourceforge.net/projects/jsqsh/files/jsqsh/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This build should run on any platform with a JVM, but it doesn't include jsqsh's JNI (Java Native Interface) layer that provides certain functionality, such as command piping.  Command line editing should continue to work on any platform supported by the &lt;a class="" href="https://github.com/jline/jline2"&gt;JLine&lt;/a&gt; library.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Gray</dc:creator><pubDate>Wed, 12 Dec 2012 22:53:20 -0000</pubDate><guid>https://sourceforge.net89e4e5d01f2c146d31f9080ce2748657bd6d5ccf</guid></item></channel></rss>