wiki:Linux

Version 12 (modified by branden, 10 years ago) (diff)

--

Installation Procedure: Linux

Steps to Compile Earthworm on 64-bit Ubuntu (v11.04)

Required software

Step-by-Step process for compilation

  1. make a new directory called "ew"
    cd /home/[...]
    
    mkdir ew
    
  1. Download EW package from: http://folkworm.ceri.memphis.edu/ew-dist/

Click on "Source tar"

Download to /home/[...]/ew

  1. Un tarball the source files (this will extract them):
    cd /home/[...]/ew
    
    tar -xzvf v7.5-src.tar.gz
    
  1. Create the parameter directory /home/[...]/ew/run/params
    cd /home/[...]/ew
    
    mkdir run
    
    cd run
    
    mkdir params
    

  1. Copy into /home/[...]/ew/run/params the file ew_linux.bash that you will find at /home/[...]/ew/earthworm_7.5/environment:
    cd /home/[...]/ew/earthworm_7.5/environment
    
    cp ew_linux.bash /home/[...]/ew/run/params
    
  1. Set up your environment before you try to compile:
    cd /home/[...]/ew/run/params
    
    vim ew_linux.bash
    

CHANGE TO:

...

export GLOBALFLAGS="-fno-stack-protector -m32 -Dlinux -D__i386 -D_LINUX -D_INTEL -D_USE_SCHED  -D_USE_PTHREADS -D_USE_TERMIOS -I${EW_HOME}/${EW_VERSION}/include"

...

export EW_HOME="${EW_INSTALL_HOME:-/home/[...]/ew}"
export EW_VERSION="${EW_INSTALL_VERSION:-earthworm_7.5}"
EW_RUN_DIR="${EW_RUN_DIR:-$EW_HOME/run}"

do the same at:

vim /home/[...]/ew/earthworm_7.5/environment/ew_linux.bash
  1. Edit your .bashrc file
    vim ~/.bashrc
    

add to the bottom of this file:

source /home/[...]/earthworm_7.5/environment/ew_linux.bash
  1. source it
    cd /home/[...]/ew/run/params
    
    source ew_linux.bash
    
    source ~/.bashrc
    
  1. Compile
    cd /home/[...]/ew/earthworm_7.5/src
    
    make unix 
    

Step-by-Step Process for final set up

  1. Copy params from /home/[...]/ew/earthworm_7.5/params to /home/[...]/ew/run/params
    cd /home/[...]/ew/earthworm_7.5/params
    
    cp * /home/[...]/ew/run/params
    
  1. Copy a few more .d param files from /home/[...]/ew/earthworm_7.5/environment to /home/[...]/ew/run/params
    cp earthworm.d /home/[...]/ew/run/params
    
    cp earthworm_global.d /home/[...]/ew/run/params
    
    cp earthworm_commonvars.d /home/[...]/ew/run_prod/params
    
  1. Make log directory
    cd  /home/[...]/ew/run/
    
    mkdir log
    

Step-by-Step Process for Configuration

  1. Modify wave_serverV.d
    vim /home/[...]/ew/run/params/wave_serverV.d
    

CHANGE TO:

...

ServerIPAdr   192.168.0.106 

...

TankStructFile  /home/[...]/ew/datafiles/p1000-1.str

...

Tank    GUID --- NC -- 528   INST_MENLO    MOD_WILDCARD       1         10000         /home/[...]/ew/tankfiles/p1001.tnk
Tank    IRG1 T   NC -- 528   INST_MENLO    MOD_WILDCARD       1         10000         /home/[...]/ew/tankfiles/p1002.tnk
Tank    IRG2 T   NC -- 528   INST_MENLO    MOD_WILDCARD       1         10000         /home/[...]/ew/tankfiles/p1003.tnk

...

TankStructFile2  /home/[...]/ew/datafiles/p1000-2.str
...

Not sure of your ip? Open a cmd window and type ifconfig and look for inet address.

Does your ip change a lot? Use 0.0.0.0

  1. Make a few more directories...
    mkdir /home/[...]/ew/tankfiles
    
    mkdir /home/[...]/ew/datafiles
    
  1. Modify statmgr.d
    vim /home/[...]/ew/run/params/statmgr.d 
    

CHANGE TO:

...

RingName    WAVE_RING

...

CheckAllRings   1

...

Descriptor statmgr.desc
Descriptor startstop.desc
Descriptor wave_serverV.desc
Descriptor tankplayer.desc

...
  1. Modify tankplayer.d
    vim /home/[...]/ew/run/params/tankplayer.d
    

CHANGE TO:

...

InterMessageDelayMillisecs 1

...

WaveFile      /home/[...]/ew/tankfiles/file.tbuf

...
  1. Modify startstop_unix.d
    vim /home/[...]/ew/run/params/startstop_unix.d 
    

CHANGE TO:

...

 nRing               1
 Ring   WAVE_RING 1024
# Ring   PICK_RING 1024
# Ring   HYPO_RING 1024

...

#
#
 Process          "statmgr statmgr.d"
 Class/Priority    TS 0
#
 Process          "wave_serverV wave_serverV.d"
 Class/Priority    TS 0
#
 Process          "tankplayer tankplayer.d"
 Class/Priority    TS 0
#

...

Make sure to place a # sign in front of all other "Process and "Class/ Priority" lines.

To check configuration works

  1. Open cmd window to run startstop

Enter:

startstop
  1. To make sure waves are coming in:

type any of the following into a command window:

sniffring WAVE_RING
sniffwave WAVE_RING wild wild wild wild
getmenu [your ip]:16022