Install/Test/Uninstall - Suse 11.4: Difference between revisions
From NEOSYS Dev Wiki
Jump to navigationJump to search
(Created page with '=== Main/Python/Perl === sudo zypper install exodus === PHP === sudo zypper install exodus-php find /usr/share|grep exodus php /usr/share/doc/packages/libexodus-php/exampl…') |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=== | === Add Repository === | ||
<pre> | |||
export DISTRO=openSUSE_11.4 | |||
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/zypp/repos.d/exodus.repo" | |||
sudo zypper refresh | |||
zypper search exodus | |||
</pre> | |||
=== Install Database/Python/Perl === | |||
sudo zypper install exodus | sudo zypper install exodus | ||
=== 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 === | === PHP === | ||
Line 19: | Line 53: | ||
=== C# === | === C# === | ||
sudo zypper install exodus-csharp | sudo zypper install exodus-csharp | ||
find /usr/share|grep exodus | find /usr/share|grep exodus | ||
Line 24: | Line 59: | ||
cp /usr/share/doc/packages/libexodus-csharp/examples/* . | cp /usr/share/doc/packages/libexodus-csharp/examples/* . | ||
./testc#.sh | ./testc#.sh | ||
=== Uninstall === | |||
sudo zypper remove "*exodus*" | |||
=== Removing Repository === | |||
sudo rm /etc/zypp/repos.d/exodus.repo | |||
sudo zypper refresh |
Latest revision as of 22:12, 10 July 2011
Add Repository
export DISTRO=openSUSE_11.4 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/zypp/repos.d/exodus.repo" sudo zypper refresh zypper search exodus
Install Database/Python/Perl
sudo zypper 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 zypper install exodus-php find /usr/share|grep exodus php /usr/share/doc/packages/libexodus-php/examples/test.php
Java
sudo zypper install exodus-java sudo zypper install java-1_6_0-openjdk-devel #for javac compiler find /usr/share|grep exodus cd ~ cp /usr/share/doc/packages/libexodus-java/examples/* . ./testjava.sh
C#
sudo zypper install exodus-csharp find /usr/share|grep exodus cd ~ cp /usr/share/doc/packages/libexodus-csharp/examples/* . ./testc#.sh
Uninstall
sudo zypper remove "*exodus*"
Removing Repository
sudo rm /etc/zypp/repos.d/exodus.repo sudo zypper refresh