Thursday, November 13, 2008

Steps to Build and Run SUIF in Linux

  1. Install these packages:

    * bison
    * flex
    * graphviz
    * gcc-2.95
    * tcl8.4
    * tcl8.4-dev
    * tk8.4
    * tk-8.4-dev

  2. Extract the contents of basesuif-2.2.0-4.tar.gz to a directory of your choice

  3. export NCIHOME=<above directory>

  4. cd $NCIHOME

  5. /bin/sh ./install --with-CC=/usr/bin/gcc-2.95 --with-CXX=/usr/bin/g++-2.95 \
    --with-CXXLINK=/usr/bin/g++-2.95 --with-TCL_INCLDIRS=-I/usr/include/tcl8.4 \

  6. make setup

  7. make

  8. .

  9. make test
To install other packages (I used these steps to build dataflow, suifbrowser and tclsuif):
  1. Extract the .tar.gz file to $NCIHOME

  2. Edit each package's makefile and:

    * Change occurrences of '-ltcl8.0' and '-ltk8.0' to '-ltcl8.4' and '-ltk8.4' respectively.
    * Add -DUSE_NON_CONST to the CXXFLAGS environment variable

  3. navigate to the package's directory and type 'make'
To run the SUIF binaries, set the following environment variables: LD_LIBRARY_PATH ($NCIHOME/solib) and VISUAL_TCL ($NCIHOME/suif/suif2b/suifbrowser/visual_tcl_lib/).