⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 devel.html

📁 有趣的模拟进化的程序 由国外一生物学家开发 十分有趣
💻 HTML
字号:
<html><title>Retrieving and compiling the <i>Developmental Version</i> of Avida</title><body bgcolor="#FFFFFF" text="#000000" link="#0000AA" alink="#0000FF" vlink="#000044"><h2 align=center>Retrieving and compiling the <i>Developmental Version</i> of Avida</h2><p>This document will get you up and running with the developmental version ofavida.  Please make sure that you have setup the <a href="cvs.html">CVS</a>in your account before starting.  The process of setting up avida out of theCVS is slightly more complicated than retrieving it as a package, but will give you access to the most recent features and changes.<p>To begin, create a new sub-directory to place the avida source code in, andenter that sub-directory.  Do this directly off of your home directory,you could type:<p>&nbsp;&nbsp;&nbsp;<tt>cd ~</tt><br>&nbsp;&nbsp;&nbsp;<tt>mkdir avida</tt><br>&nbsp;&nbsp;&nbsp;<tt>cd avida</tt><br><p>Now that we have the place to put avida, we need to download it from theCVS.  We have many different versions in the cvs, but you only want the mostcurrent version, which we have labeled "current".<p>&nbsp;&nbsp;&nbsp;<tt>cvs get current</tt><br><p>If you are downloading from a SourceForge account, it will ask you for yourpassword.  You will then see a stream of filenames fly by you on the screen asit downloads them one at a time.  When it is finished, you want to enter thedirectory it has created, and perhaps look at the files available:<p>&nbsp;&nbsp;&nbsp;<tt>cd current</tt><br>&nbsp;&nbsp;&nbsp;<tt>ls -sF</tt><br><p>You may notice that there are both a bunch of files and a few sub-directories.The CVS/ sub-directory is where the cvs keeps all of its information aboutwhat's up to date.  The source/ sub-directory is where the source code is,and work/ is where you will be doing your runs.  Most importantly, the doc/ sub-directory contains lots of documentations for doing Avida runs.<p>Your next step is to tell avida that it has just been taken out of the CVS,and that it should unpack any special files related to this.  The programcalled "make" is used to execute a series of commands related to compilingsource code.  Normally it looks at the file "Makefile" for instructions, butthis time we tell it to use the special file "Makefile.cvs" that tells itwhat to do when its removed from the CVS.  The file Makefile.cvs is notincluded when we package avida up for other people to use.<p>&nbsp;&nbsp;&nbsp;<tt>make -f Makefile.cvs</tt><br><p>This should have run quickly.  Now that we have avida setup as it wouldbe were we installing it from a package, we can use the normal utilities.First, you want to configure it for your machine.  Do this by typing:<p>&nbsp;&nbsp;&nbsp;<tt>./configure --enable-viewer</tt><br><p>If you don't care about compiling the ncurses (text) viewer, you can justtype "./configure" by itself.  The flags allow us to tell configure what itshould and shouldn't setup to be compiled.  For example, if we wanted tocompile avida with the special debug modules turned on, we could also include"--enable-debug".  For the moment, we're not going to worry aboutthe graphical viewer (--enable-qt-viewer) since its not quite ready yet, andyou would need to install extra packages on your machine.  See the documenton the <a href="qt-viewer.html">qt-viewer</a> for more information on that.<p>When we're done with the configuration, we finally compile to source code!<p>&nbsp;&nbsp;&nbsp;<tt>make</tt><br><p>This will take a while; depending on the speed of the machine, it shouldbe about 5 minutes.  When it finally finishes, you should type:<p>&nbsp;&nbsp;&nbsp;<tt>make install</tt><br><p>This will "install" all of the avida configuration files into the workdirectory, so you can do everything you need to right there.  If you changea file in the work directory, CVS will *not* modify it on you then next timeyou do an update (nor will it assume that you want to commit the changes).If, as a developer, you do want to make permanent changes to everyone'sconfiguration files, you need to do this in the source/support/ sub-directory.<p>And with that, we're done!<p>Try it out.  Go into the work directory, and run avida:<p>&nbsp;&nbsp;&nbsp;<tt>cd work</tt><br>&nbsp;&nbsp;&nbsp;<tt>viewer</tt><br><p>The viewer has problems showing up properly on some systems, if it doesn'twork for you, you can always just run avida in "primitive" move by typing"<tt>primitive</tt>" instead of "<tt>viewer</tt>".

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -