Reflpak
From Reflectometry
[edit] Installing Reflpak in Ubuntu 8.04 LTS
Issue these commands at the command line:
cd ~ sudo apt-get install subversion svn co svn://danse.us/reflpak reflpak sudo apt-get install build-essential zlib1g-dev libglu1-mesa-dev libxmu-dev x11proto-xext-dev libxext-dev libgl1-mesa-dev mesa-common-dev sudo apt-get install libgl1-mesa-glx libgl1-mesa-swx11 gfortran tk8.4-dev tcl8.4-dev libx11-dev tcllib x11proto-core-dev bwidget libtktable2.9 cd reflpak ln -s linux/Makeconf
Then edit the tclConfig2Makeconf, deleting the contents and pasting the following:
#! /bin/sh # Script to convert tclConfig.sh and tkConfig.sh to Makeconf.tcltk # for subsequent inclusion in the freewrap build process. test "$#" != 1 && echo "Usage: $0 TCL_PREFIX" && exit 1 test -f "$1/lib/tcl8.4/tclConfig.sh" || (echo "Missing $1/lib/tclConfig.sh" && exit 1) test -f "$1/lib/tk8.4/tkConfig.sh" || (echo "Missing $1/lib/tk8.4/tkConfig.sh" && exit 1) sed -e "s/'//g" < $1/lib/tcl8.4/tclConfig.sh > Makeconf.tcltk sed -e "s/'//g" < $1/lib/tk8.4/tkConfig.sh >> Makeconf.tcltk
Then run the script:
./tclConfig2Makeconf /usr
Edit the Makeconf file, deleting the tcl/tk section, and pasting in the contents of the new Makeconf.tcltk that was just created by the tclConfig2Makeconf command above. Scroll down to the end of Makeconf and comment out or delete the entire NEXUS section, and add -lz to the libs line of the C compiler section:
LIBS:=$(TK_STUB_LIB_SPEC) $(TCL_STUB_LIB_SPEC) -lm -lz
Edit the reflpak.tcl file, replacing ncnrkit with wish near the top. The final step is to compile the program:
make
Then to run the program, type
wish ~/reflpak/reflpak.tcl
