Loading GT server code into a Rowan stone

This page documents the steps to load the Gt server code in to a GemStone stone with Rowan pre-loaded.

Gtoolkit development is normally done in a stone with Rowan loaded, and exported to .gs files for loading in to non-Rowan stones.

Note that the bash snippets are provided as a template, and will need modifying for actual use.

Define the normal environment variables, e.g. the following environment variables:

        
export GEMSTONE=/path/to/GemStone64Bit3.7.0-x86_64.Linux
export MANPATH=$GEMSTONE/doc
export PATH=$GEMSTONE/bin:$PATH
export ROWAN_PROJECTS_HOME=/path/to/gitreps
export STONE=gs64stone
        
      

Install and start GemStone:

The steps below assume the entire GemStone server is running on a single disk on a single server. If you've got a more complex installation, you already know what you're doing. :-)

        
cd $GEMSTONE/..
unzip GemStone64Bit3.7.0-x86_64.Linux.zip
cd GemStone64Bit3.7.0-x86_64.Linux/install
sudo ./installgs
sudo chmod ug+s $GEMSTONE/sys/netldid
sudo chown root $GEMSTONE/sys/netldid
cd ../data
rm *.dbf *.log
cp /path/to/extent0.rowan.dbf ./extent0.dbf
chmod 644 extent0.dbf
cd -
startnetldi 
startstone
        
      

Retrieve the required repositories:

        
mkdir $ROWAN_PROJECTS_HOME
cd $ROWAN_PROJECTS_HOME
git clone git@github.com:feenkcom/gtoolkit-gemstone.git
cd gtoolkit-gemstone/scripts/
./clone_repositories.sh
        
      

Install Gtoolkit server libraries:

        
cd $ROWAN_PROJECTS_HOME/gtoolkit-gemstone/scripts
./installGt4gemstone.sh
cd $ROWAN_PROJECTS_HOME/gtoolkit-remote/scripts
./installGtoolkitRemote.sh
        
      

Start the RSR server:

        
cd $ROWAN_PROJECTS_HOME/Sparkle/src-gs
# Edit login.topaz with the appropriate credentials
./server.sh