|Version 2 (modified by mmc, 8 years ago) (diff)|
Building and Installing Rappture from Source Code
If possible, you should try to install Rappture the easy way, by downloading one of our prebuilt binary packages. But if that doesn't work for some reason, you can still install Rappture the hard way, by following the instructions on this page.
Obtaining the source code packages
Obtain the "rappture" and "rappture-runtime" sources. You can either download these tar files or through Subversion checkout the latest versions.
Using the tar files
Download both tar files:
- Rappture sources rappture-src-20130903.tar.gz (9MB)
- Rappture-runtime sources rappture-runtime-src-20130903.tar.gz (144MB)
Unpack the tar files.
tar xpvf rappture-src-*.tar.gz tar xpvf rappture-runtime-src-*.tar.gz
This will create two directories: "rappture" and "runtime".
Checkout both rappture and the runtime sources.
svn co https://nanohub.org/infrastructure/rappture/svn/trunk rappture
Rappture has dependencies on other packages. You need to checkout this too.
svn co https://nanohub.org/infrastructure/rappture-runtime/svn/trunk runtime
The resulting directories should be called "rappture" and "runtime".
Run the build script.
This will build the rappture runtime (things that rappture is dependent upon) and rappture itself. The results will be put into a directory "builds/<date>". <date> will be the current date (for example 20081014).
Test the build
Setup your path and try to run rappture.
set path = ( $PWD/builds/20081014/bin $path )
Try to run one of the examples.
cd builds/20081014/examples/app-fermi/tcl rappture
Move the build to its destination
Create the destination directory you would like to install Rappture (for example /usr/local/rappture) and move the build into it.
mkdir /usr/local/rappture mv builds/20081014/* /usr/local/rappture
Edit the "rappture.env" file to indicate where you installed Rappture
Change the INSTALL_RAPPTURE_DIR variable to the location of the destination directory.
Try running rappture again. First put the Rappture bin directory in your command path:
set path = ( /usr/local/rappture/bin $path )
Go to the examples directory and run one of the examples:
cd /usr/local/rappture/examples/app-fermi/tcl rappture
This should bring up a simple Fermi function simulator, built with Rappture and Tcl!
Try another example:
cd ../../graph rappture
This should bring up a simple graphing calculator, built with Rappture and Python!