Savuka installation notes

Download and Install Cygwin

www.cygwin.com

(This requires about 1.5 Gb of free disk space and takes 15-20 minutes, depending on the speed of your connection and that of the site). I've generally done a full install. I have so far only installed Cygwin on Windows XP systems (service pack 1, 2 and 3) and Vista.


Install GrWin Graphics Library

Version 0.99.9b (lGrWn0999be-cygwin.exe - This is on the CD )

Copyright (C) 1998 - 2003 Tamaribuchi, Tsuguhiro
tamari@spdg1.sci.shizuoka.ac.jp
http://spdg1.sci.shizuoka.ac.jp/grwinlib/english/

make directory for pgplot (/usr/local/pgplot):

$ mkdir /usr/local/pgplot

copygrfont.dat” to /usr/local/pgplot directory

 

$ cp grfont.dat /usr/local/pgplot

 

Edit /etc/bash.bashrc:

# System-wide .bashrc file

#

# add pgplot to the path

PATH=/usr/local/pgplot:$PATH

export PATH

PGPLOT_DIR="/usr/local/pgplot"

export PGPLOT_DIR

#

# add savuka to the path

PATH=/usr/local/bin:$PATH

export PATH

 

 

Edit ~/.bash_profile

Add the following to your .bash_profile file so that the backspace key will work:

 

stty erase '^H'

 

(Thanks, Can, for figuring this out!)

 

Install f2c (instructions from Octave website)

Note: I include pre-compiled libraries for Cygwin so no compiling of f2c should be necessary.  If you need the instructions for compiling f2c, please let me know and I can provide them.

 

·         Install the program.

·                $ cd /usr/share
·                $ mkdir man     # might already exist
·                $ cd man
·                $ mkdir man1    # might already exist
·                $ cd ~/savuka      # the directory where all of the files were extracted.
·                $ cp f2c.exe /usr/bin          # may not need this line
·                $ cp f2c.exe /usr/local/bin
·                $ cp libf2c.a /usr/lib
·                $ cp f2c.h /usr/include
·                $ cp f2c.1 /usr/share/man/man1
·                $ ranlib /usr/lib/libf2c.a
·                $ cp fort77 /usr/local/bin
·                $ cd ~

Now, you can use f2c. Let's make the following Fortran program (named hello.f) and run it.

      write(*,*) 'hello, f2c'
      stop
      end
 
$ f2c hello.f
hello.f:
   MAIN:
$ gcc hello.c -lf2c
$ ./a
hello, f2c

 

Install Savuka

$ mkdir /usr/local/savuka

$ cd /usr/local/savuka

$ cp /cygdrive/d/savuka-6.0-xxxxxxxx.tar.gz .

$ gunzip savuka-6.0-xxxxxxxx.tar.gz

$ tar xvf savuka-6.0-xxxxxxxx.tar

$ cd savuka-6.0

$ cp makefile.cygwin.f2c makefile

$ make

$ make clean

$ cp savuka.exe /usr/local/bin/savuka.exe

 

Make sure that /usr/local/bin is in your default path. To check, use:

echo $PATH

 

In GrWin graphics window, under Help menu – Starting Options, check the box titled “Stay open on QUIT”. This will stop it from asking you to close the window.

 

 

Install utilities

mkdir /usr/local/util

cd /usr/local

cp ~/mytempdir/util-xxxxxxxx.tar.gz .

gunzip util-xxxxxxxx.tar.gz

tar xvf util-xxxxxxxx.tar

 

Make sure the /usr/local/util is in your default path.


Having problems? 
Technical support is free!  Just give me a call or send an e-mail to osman.bilsel@umassmed.edu.

Comments