Install/Test/Uninstall - Ubuntu/Debian: Difference between revisions

From NEOSYS Dev Wiki
Jump to navigationJump to search
 
(27 intermediate revisions by 2 users not shown)
Line 2: Line 2:


<pre>
<pre>
#View the script
#Pick ONE Distro.
wget -q -O - http://exodusdb.googlecode.com/svn/trunk/addrepo_lucid.sh | cat
export DISTRO=Debian_6.0
export DISTRO=xUbuntu_10.04
export DISTRO=xUbuntu_12.04


#Run the script
sudo su -c "echo 'deb http://download.opensuse.org/repositories/home:/neosys:/exodus/$DISTRO  ./' > /etc/apt/sources.list.d/exodus.list"
wget -q -O - http://exodusdb.googlecode.com/svn/trunk/addrepo_lucid.sh | bash
 
sudo apt-get update
sudo apt-cache search exodus
</pre>
</pre>


=== Install ===
=== Install Database, Python, Perl ===
 
"exodus" package installs exodus-cli, libexodus-perl, libexodus-python, libpgexodus and postgresql. Note that Exodus Debian/Ubuntu package names are often prefixed with "lib" compared to other Linux distros.
 
sudo apt-get update
sudo apt-get install exodus
 
=== Quick Test ===
 
{{quicktest}}


<pre>
=== Python ===


#installs exodus-cli, libexodus-perl, libexodus-python, libpgexodus and postgresql
find /usr/share|grep exodus
sudo apt-get update
 
sudo apt-get install exodus
/usr/share/doc/libexodus-python/examples/test.py
 
#/usr/share/doc/libexodus-python/examples/testsort.py
gunzip -c /usr/share/doc/libexodus-python/examples/testsort.py.gz |less
gunzip -c /usr/share/doc/libexodus-python/examples/testsort.py.gz |python
 
=== Perl ===
 
find /usr/share|grep exodus
/usr/share/doc/libexodus-perl/examples/test.pl


#additional options
=== PHP ===
sudo apt-get install libexodus-php \
                    libexodus-java \
                    libexodus-csharp \
                    libexodus-c++
</pre>


=== Testing ===
sudo apt-get install libexodus-php php5-cli
find /usr/share|grep exodus
php /usr/share/doc/libexodus-php/examples/test.php


<pre>
For the last line ensure you have the PHP CLI package installed (sudo apt-get install php5-cli)
testsort
listfiles


#python one liner to write a multivalue database record (after creating xyzfile)
=== Java ===
createfile xyzfile
python -c 'from exodus import *;print var("abc123").write("xyzfile","key123")'


#perl one liner to read back the record
sudo apt-get install libexodus-java
#the syntax is long winded because exodus isnt properly implemented in perl yet
find /usr/share|grep exodus
perl -e 'use exo;$record=new exo::var(""); $filename=new exo::var("xyzfile"); $key=new exo::var("key123"); \
sudo apt-get install default-jdk #for javac compiler
          print $record->read($filename,$key);print $record,"\n"'
cd ~
cp /usr/share/doc/libexodus-java/examples/* .
./testjava.sh


list xyzfile
=== C# ===
deletefile xyzfile


#find all the examples of exodus programming in various languages (some may need unzipping)
sudo apt-get install libexodus-csharp
find /usr|grep exodus.*examples
find /usr/share|grep exodus
</pre>
sudo apt-get install mono-gmcs #for compiler
cd ~
cp /usr/share/doc/libexodus-csharp/examples/* .
./testc#.sh


=== Upgrade ===
=== Upgrade ===
Line 53: Line 72:
=== Uninstall ===
=== Uninstall ===


  sudo apt-get autoremove exodus
  sudo apt-get autoremove "exodus.*"


=== Un-setup ===
=== Removing Repository ===


  sudo rm -f /etc/apt/sources.list.d/exodus-ppa-lucid.list
  sudo rm /etc/apt/sources.list.d/exodus.list
  sudo apt-key del E7815451
  sudo apt-get update

Latest revision as of 15:42, 24 September 2013

Add Repository

#Pick ONE Distro.
export DISTRO=Debian_6.0
export DISTRO=xUbuntu_10.04
export DISTRO=xUbuntu_12.04

sudo su -c "echo 'deb http://download.opensuse.org/repositories/home:/neosys:/exodus/$DISTRO  ./' > /etc/apt/sources.list.d/exodus.list"

sudo apt-get update
sudo apt-cache search exodus

Install Database, Python, Perl

"exodus" package installs exodus-cli, libexodus-perl, libexodus-python, libpgexodus and postgresql. Note that Exodus Debian/Ubuntu package names are often prefixed with "lib" compared to other Linux distros.

sudo apt-get update
sudo apt-get install exodus

Quick Test

testsort
listfiles
#python one liner to write a multivalue database record (after creating xyzfile)
createfile xyzfile
python -c 'from exodus import *;print var("abc123").write("xyzfile","key123")'
#perl one liner to read back the record
#the syntax is long winded because exodus isnt properly implemented in perl yet
perl -e 'use exo;$record=new exo::var(""); $filename=new exo::var("xyzfile"); $key=new exo::var("key123"); \
 print $record->read($filename,$key);print $record,"\n"'
list xyzfile
deletefile xyzfile

Python

find /usr/share|grep exodus
/usr/share/doc/libexodus-python/examples/test.py
#/usr/share/doc/libexodus-python/examples/testsort.py
gunzip -c /usr/share/doc/libexodus-python/examples/testsort.py.gz |less
gunzip -c /usr/share/doc/libexodus-python/examples/testsort.py.gz |python

Perl

find /usr/share|grep exodus
/usr/share/doc/libexodus-perl/examples/test.pl

PHP

sudo apt-get install libexodus-php php5-cli
find /usr/share|grep exodus
php /usr/share/doc/libexodus-php/examples/test.php

For the last line ensure you have the PHP CLI package installed (sudo apt-get install php5-cli)

Java

sudo apt-get install libexodus-java
find /usr/share|grep exodus
sudo apt-get install default-jdk #for javac compiler
cd ~
cp /usr/share/doc/libexodus-java/examples/* .
./testjava.sh

C#

sudo apt-get install libexodus-csharp
find /usr/share|grep exodus
sudo apt-get install mono-gmcs #for compiler
cd ~
cp /usr/share/doc/libexodus-csharp/examples/* .
./testc#.sh

Upgrade

sudo apt-get update
sudo apt-get upgrade

Uninstall

sudo apt-get autoremove "exodus.*"

Removing Repository

sudo rm /etc/apt/sources.list.d/exodus.list
sudo apt-get update