Notes Ubuntu 7.04 Install

From ASCEND

Jump to: navigation, search

The following are notes describing my experience on setting up my computer running Ubuntu 7.04 to compile and execute the ASCEND software.

Contents

[edit] Required package installation

I am running a fully updated Ubuntu 7.04 (today's date is September 25, 2007) desktop computer. I either already had installed or I installed the following packages as per the instructions on the page describing how to build ASCEND under Ubuntu 7.04.

sudo apt-get install libufsparse-dev  (this also installs g77)
sudo apt-get install scons
sudo apt-get install tcl8.4-dev  (also installs tcl8.4)
sudo apt-get install tk8.4-dev  (also installs tk8.4)
sudo apt-get install libtktable2.9
sudo apt-get install swig
sudo apt-get install gcc
sudo apt-get install flex
sudo apt-get install libsundials-serial-dev
sudo apt-get install python-matplotlib  (needed for some tools in pygtk interface)

I had libtktable installed, which the installer states is libtktable2.9.3. For whatever reason, libtktable does NOT work so be sure that it is not installed and that libtktable2.9 is.

[edit] Downloading ASCEND

My file structure is as follows:

/home/myuserID/ascend/code  (for source code)
/home/myuserID/ascend/compiled (for compiled version)

The following script, which I call ascendcheckout, downloads ASCEND

#!/bin/sh
#
cd
cd ascend/code
rm -rf extfn
svn co http://ascendsvn.cheme.cmu.edu/ascend/code/branches/extfn
echo "ascendcheckout"

[edit] Compiling ASCEND

The following script compiles ASCEND. Note, we must at this time turn off creating documents as the required version of Lyx is not yet available. (Note that you can retrieve the documentation file from here. Place it in the folder

/home/myuserID/ascend/code/extfn/doc

and replace WITH_DOC=0 with WITH_DOC_BUILD=0 in the first scons line below.)

Also note that I use the complete path to the directory compiled. When I used a relative path, the compile step failed.

#!/bin/sh
#
cd
cd ascend
rm -rf compiled
cd code/extfn
scons WITH_DOC=0 INSTALL_PREFIX=/home/myuserID/ascend/compiled DEBUG=1
scons install
echo "ascendcompile"

[edit] Running ASCEND

The following script, which I call ascend4run, runs the tcl interface for ASCEND

#!/bin/sh
#
cd
cd ascend/compiled/bin
LD_LIBRARY_PATH=/home/myuserID/ascend/compiled/lib ./ascend4
echo "ascend4run"

while the following script, which I call ascendrun, runs the pygtk interface

#!/bin/sh
#
cd
cd ascend/compiled/bin
./ascend
echo "ascendrun"

--Art Westerberg 11:57, 25 September 2007 (EDT)

Personal tools