Install/Test/Uninstall - Redhat5/Centos5/Fedora15: Difference between revisions

From NEOSYS Dev Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== redhat/fedora/centos ===
=== Add Repository ===


sudo yum install exodus
<pre>
#Pick ONE Distro.
export DISTRO=Fedora_15
export DISTRO=RedHat_RHEL-5 #use this for Centos5 too


=== php ===
sudo su -c "echo -e '\
[exodus]\n\
name=exodus\n\
type=rpm-md\n\
baseurl=http://download.opensuse.org/repositories/home:/neosys:/exodus/$DISTRO/\n\
gpgcheck=1\n\
gpgkey=http://download.opensuse.org/repositories/home:/neosys:/exodus/$DISTRO/repodata/repomd.xml.key\n\
enabled=1\n\
'>/etc/yum.repos.d/exodus.repo"


sudo yum install exodus-php
sudo yum clean all
find /usr/share|grep exodus
yum search exodus
php /usr/share/doc/packages/libexodus-php/examples/test.php
</pre>


=== java ===
=== Install Database/Python/Perl ===


sudo yum install exodus-java
sudo yum install exodus
sudo yum install java-devel #for javac compiler
find /usr/share|grep exodus
cd ~
cp /usr/share/doc/packages/libexodus-java/examples/* .
./testjava.sh


=== csharp ===
=== Quick Test ===
 
{{quicktest}}
 
=== Python ===
 
find /usr/share|grep exodus
/usr/share/doc/packages/libexodus-python/examples/test.py
/usr/share/doc/packages/libexodus-python/examples/testsort.py
 
=== Perl ===
 
find /usr/share|grep exodus
/usr/share/doc/packages/libexodus-perl/examples/test.pl
 
=== PHP ===
 
sudo yum install exodus-php
find /usr/share|grep exodus
php /usr/share/doc/packages/libexodus-php/examples/test.php
 
=== Java ===
 
sudo yum install exodus-java
sudo yum install java-devel #for javac compiler
find /usr/share|grep exodus
cd ~
cp /usr/share/doc/packages/libexodus-java/examples/* .
./testjava.sh
 
=== C# ===


fedora only. not redhat5/centos5
fedora only. not redhat5/centos5
sudo yum install exodus-csharp
 
find /usr/share|grep exodus
sudo yum install exodus-csharp
cd ~
find /usr/share|grep exodus
cp /usr/share/doc/packages/libexodus-csharp/examples/* .
cd ~
./testc#.sh
cp /usr/share/doc/packages/libexodus-csharp/examples/* .
./testc#.sh
 
=== Uninstall ===
 
sudo yum remove "*exodus*"
 
=== Removing Repository ===
 
sudo rm /etc/yum.repos.d/exodus.repo
sudo yum clean all

Latest revision as of 22:06, 10 July 2011

Add Repository

#Pick ONE Distro.
export DISTRO=Fedora_15
export DISTRO=RedHat_RHEL-5 #use this for Centos5 too

sudo su -c "echo -e '\
[exodus]\n\
name=exodus\n\
type=rpm-md\n\
baseurl=http://download.opensuse.org/repositories/home:/neosys:/exodus/$DISTRO/\n\
gpgcheck=1\n\
gpgkey=http://download.opensuse.org/repositories/home:/neosys:/exodus/$DISTRO/repodata/repomd.xml.key\n\
enabled=1\n\
'>/etc/yum.repos.d/exodus.repo"

sudo yum clean all
yum search exodus

Install Database/Python/Perl

sudo yum 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/packages/libexodus-python/examples/test.py
/usr/share/doc/packages/libexodus-python/examples/testsort.py

Perl

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

PHP

sudo yum install exodus-php
find /usr/share|grep exodus
php /usr/share/doc/packages/libexodus-php/examples/test.php

Java

sudo yum install exodus-java
sudo yum install java-devel #for javac compiler
find /usr/share|grep exodus
cd ~
cp /usr/share/doc/packages/libexodus-java/examples/* .
./testjava.sh

C#

fedora only. not redhat5/centos5

sudo yum install exodus-csharp
find /usr/share|grep exodus
cd ~
cp /usr/share/doc/packages/libexodus-csharp/examples/* .
./testc#.sh

Uninstall

sudo yum remove "*exodus*"

Removing Repository

sudo rm /etc/yum.repos.d/exodus.repo
sudo yum clean all