cse891

 

Compiling Avida

Page history last edited by Charles Ofria 2 yrs ago

Compiling Avida

 

This guide give a tutorial on how to compile Avida specifically on the CSE linux machines. Coming soon will be more detailed guides on compiling Avida on your own machines.

 

Step 1: Copy the Avida source files over to some place that you can edit them. I recommend you do this in the /tmp directory since Avida can be quite sizable.

 

cd /tmp

mkdir username

cd username

cp -r ~ofria/Public/devel/avida .

 

Substitute "username" for your own username.

 

Step 2: Now that you have the full source code, go into the build directory and startup the configure program.

 

cd avida/build

~ofria/Public/utils/cmake/bin/ccmake ../

 

Step 3: Handle the inital configuration:

  • Press 'c' to cause ccmake to lookup the configuration options.
  • Press the down arrow followed by the enter key to turn on compiling of the NCurses viewer.
  • Press 'c' twice to configure these new options.
  • Press 'g' to generate and exit.

 

Step 4: Generate the makefile and run it.

 

~ofria/Public/utils/cmake/bin/cmake ../

make

 

You'll now see a series of notifications of files being compiled, as well as how far done the compilation process is.

 

Step 5: Running Avida

 

To run Avida you will need to setup the work directory. The easiest way to do this is to let the Makefile handle it for you

 

make install

 

This will create a work directory and place all of the default configuration files in that directory, including copies of the executables. I recommend that, rather than use copies, you create links to the executables so that you always have the most current versions even when you recompile. To do this type:

 

cd work/

rm -f avida avida-viewer

ln -s ../bin/avida

ln -s ../bin/avida-viewer

 

Now you can directly run either of these programs.

Comments (0)

You don't have permission to comment on this page.