Re: [Ecolab-list] Installing EcoLab with UNURAN
Brought to you by:
hpcoder
From: <ad...@he...> - 2007-12-14 00:45:15
|
I am now able to post to the list, so let me post it here. The reason for non standard install is I am evaluating quite a few ABM software right now, on the lines of StupidModel. Actually it is a very simplified version of an population based technique I am working on. So once I am done with this evaluation, I would want to be able to just copy the entire /opt directory on to another machine. I have run into few more problems though. I tried running stupid01 (actually any model from the StupidProject). It compiles fine, but when I run it I get a runtime St9bad_alloc exception. It occurs with setup() at the line, objref& o=objects[mapid(i, j)]; when x=0, y=3. Any ideas?? --shivakar > Thanks for this comment Srinivasa. I will make a new release shortly > to adapt it to the new UNURAN library. In the meantime, your note is > archived in the ecolab-list archives, so people can find it. > > I'm not quite sure why you chose to install in a nonstandard > directory, but I'm happy to add some extra search paths to the DIRS > variable of include/Makefile if the ones provided are not > sufficient. Perhaps /opt/ecolab (which can be a link to something like > /opt/ecolab.4.D25 if versioning is desired) is desirable? > > Cheers > > On Thu, Dec 13, 2007 at 04:29:35PM -0600, Srinivasa Shivakar Vulli wrote: >> Hi everyone, >> >> I was trying to install EcoLab with UNURAN and ran into some problems >> (which I think is because I am using a newer version of UNURAN) and I >> would like to describe here how I fixed them. I used very non-standard >> installation directories so I am just going to go through the entire >> installation procedure. This can serve as a guide for anyone who is new >> at this and others can also point out how this could be done in an >> easier way. >> >> I am running EcoLab on a Dell Latitude D610, Pentium M 2.13Ghz system >> with 1GB RAM, running Fedora 8. I used the following versions of the >> softwares required. >> tcl-8.4.15-5.fc8 >> blt-2.4-19.fc8 >> gcc-4.1.2-33 >> EcoLab-4.D25 >> unuran-1.1.0 >> prng-3.0.2 >> >> Installation Procedure >> ----------------------------- >> For simplicity, I am assuming everything is done as root. >> >> 1. Download PRNG 3.0.2 from >> http://statistik.wu-wien.ac.at/prng/download.html >> tar -xvzf prng-3.0.2.tar.gz >> cd prng-3.0.2 >> ./configure --prefix=/opt/ecolab-4.D25/prng >> make all && make all install >> >> 2. Download UNURAN 1.1.0 from >> http://statistik.wu-wien.ac.at/unuran/download.html >> tar -xvzf unuran-1.1.0.tar.gz >> cd unuran-1.1.0 >> export LDFLAGS=-L/opt/ecolab-4.D25/prng/lib >> export CPPFLAGS=-I/opt/ecolab-4.D25/prng/include >> ./configure --prefix=/opt/ecolab-4.D25/unuran --with-urng-prng >> make all && make all install >> >> 3. Download EcoLab 4.D25 from http://ecolab.sourceforge.net >> tar -xvzf ecolab.4.D25.tar.gz >> cd ecolab.4.D25 >> >> To let ecolab know where unuran and prng are located edit the >> include/Makefile and in the block for UNURAN configuration starting with >> ifdef UNURAN include the installed directories for unuran and prng >> vi include/Makefile >> change the FLAGS variable to FLAGS+=-DUNURAN >> -I/opt/ecolab-4.D25/unuran/include -I/opt/ecolab-4D25/prng/include >> change the LIBS variable to >> LIBS+=-L/opt/ecolab-4.D25/unuran/lib -L/opt/ecolab-4.D25/prng/lib >> -lunuran -lprng >> >> The following I think is because I am using a newer version of UNURAN >> than EcoLab 4.D25 was developed on. But you will have make two changes >> in include/random_unuran.h otherwise the compilation will throw an error >> complaining that prng* cannot be converted to UNUR_URNG*. After going >> through the unuran documentation I found a method which actually >> converts the prng* to UNUR_URNG*. So the changes to the >> include/random_unuran.h file are as follows. >> >> vi include/random_unuran.h >> add #include <unuran_urng_prng.h> to the include statements >> >> change line 50 ( after adding the above include it is line 51) which >> is originally >> unur_chg_urng(gen, uni.gen); to >> unur_chg_urng(gen, unur_urng_prngptr_new(uni.gen)); >> >> Now install Ecolab using the following command and everything should >> be fine. After this I was able to open all the models without any errors >> >> make PREFIX=/opt/ecolab-4.D25 UNURAN=1 all install >> >> >> Hope a guide on this lines is put up at the EcoLab website. It took me >> almost an entire day to just get EcoLab installed and working. >> >> Regards, >> Srinivasa Shivakar Vulli (shivakar) >> >> > > -- > > ---------------------------------------------------------------------------- > A/Prof Russell Standish Phone 0425 253119 (mobile) > Mathematics > UNSW SYDNEY 2052 hp...@hp... > Australia http://www.hpcoders.com.au > ---------------------------------------------------------------------------- > |