• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeOpenGTSPart I: Loading Prerequisite Packages — Inst ...
Previous Next

Part I: Loading Prerequisite Packages — Installation of OpenGTS

Posted by: admin , January 5, 2014

[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Java Compiler” tab_id=”1388891510-1-6″][vc_column_text]

    Package: JDK 6 update XX
    http://java.sun.com/javase/ downloads    (download just JDK 6 update XX)
    check your version with the command:  java  -version
    java version “1.6.0_25”
    Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
    :/usr/local$ export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_25
    :/usr/local$ sudo ln -s $JAVA_HOME java
     ‘sudo’ open up /etc/bash.bashrc and add the following to the end of the file.
     JAVA_HOME= /usr/lib/jvm/jdk1.6.0_25
     export JAVA_HOME
     PATH=$PATH:$JAVA_HOME/bin
     export PATH

[/vc_column_text][/vc_tab][vc_tab title=”JavaMail Support” tab_id=”1388891510-2-71″][vc_column_text]Package: Sun JavaMail API (v1.4.3)

  URL: http://java.sun.com/products/javamail/downloads/index.html
  Zip: javamail-1.4.3.zip
  The jar file “mail.jar” from this downloaded zip file should be installed into the Java extended library directory as follows (‘root’ access required):
    #  cd /tmp/javamail-1.4.3
    #  cp mail.jar $JAVA_HOME/jre/lib/ext/.
(Where “/tmp/javamail-1.4.3” is the directory where “javamail-1.4.3.zip” was unzipped)

[/vc_column_text][/vc_tab][vc_tab title=”Apache Ant build tool” tab_id=”1388892070856-2-5″][vc_column_text]# sudo apt-get install ant[/vc_column_text][/vc_tab][vc_tab title=”Apache “Tomcat“ Servlet Container” tab_id=”1388892101799-3-3″][vc_column_text]Package: Apache Tomcat v6.x servlet container

http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.29/bin/apache-tomcat-6.0.29.zip

Note:

If your version of Linux distribution already comes with a version of Tomcat installed, it is still highly recommended that

you start with a version of Tomcat downloaded directly from the Apache website.  This will eliminate or reduce any

permissions or classpath problems that may be encountered.  Then when everything is up and working properly, if you

choose to do so, you can go back and install OpenGTS in the version of Apache Tomcat that was shipped/installed with

your Linux distribution.

2.4.a) Linux users installing the downloaded Apache Tomcat:

It is recommended that the manual Tomcat installation be installed in the “/usr/local/” directory (‘root’

access will be required to install into this directory).

The CATALINA_HOME environment variable should then be set to the following:

$ export CATALINA_HOME=/usr/local/apache-tomcat-6.0.29

Where “/usr/local/apache-tomcat-6.xx.xx” matches the name of the Tomcat installation directory.

It is recommended to also create a “tomcat” symbolic link in the “/usr/local/” directory which points to the

Tomcat installation, as follows:

#  cd /usr/local

#  ln -s $CATALINA_HOME tomcat

Within the Tomcat installation ‘bin’ directory (ie. “$CATALINA_HOME/bin”), make sure the execute

permissions bit is set on all “.sh” files.  If not set, the following command will set the execution bit:

$ cd $CATALINA_HOME/bin

$ chmod a+x *.sh

If the execute bit is not set on these files, Tomcat “startup.sh” and “shutdown.sh” commands may not be

able to execute.[/vc_column_text][/vc_tab][vc_tab title=”MySQL Database Provider” tab_id=”1388892124719-4-10″][vc_column_text]#sudo apt-get install mysql-server[/vc_column_text][/vc_tab][vc_tab title=”MySQL JDBC Driver” tab_id=”1388892148498-5-0″][vc_column_text]Package: MySQL Connector/J v5.1.XX JDBC driver

URL: http://dev.mysql.com/downloads/connector/j/

Zip: mysql-connector-java-5.1.XX.zip

Note:

Connector/J is distributed under GPL.

2.6.a) Fedora/CentOS Linux users:

The Fedora/CentOS MySQL JDBC driver can be installed and used instead of downloading the MySQL JDBC

driver installation directly from MySQL. The command to install “MySQL” on Fedora/CentOS is as follows

(must be ‘root’ to install):

# yum install mysql-connector-java

The “mysql-connector-java-5.1.XX.jar ” jar file can then be found at the following location:

/usr/share/java/mysql-connector-java-5.1.XX.jar

(where “mysql-connector-java-5.1.XX.jar” matches the name of the install jar file)

The jar file “mysql-connector-java-5.1.XX.jar” from this downloaded zip file should be installed into the Java

extended library directory as follows (‘root’ access required):

# cd XXXXXXXX

# cp mysql-connector-java-5.1.10-bin.jar $JAVA_HOME/jre/lib/ext/.[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: OpenGTS

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors