My favorites | Sign in
Logo
                
Search
for
Updated Dec 16 (6 days ago) by shawnlaffan
Labels: Featured, Phase-Deploy
Installation  
Installation instructions

These instructions assume you have downloaded the relevant Biodiverse release and saved it to your hard drive.

They also apply to version 0.12, the current release as of 07Dec2009.


Update an existing installation


Windows 32-bit

Executable version

You can associate .bps, .bds, .bms and .bts files with the BiodiverseGUI_win32.exe file if you want to double click on a Biodiverse file to open it. (.bpy files are currently supported, but are scheduled for deprecation). See DataStructures#File_naming_scheme for an explanation of the file names.


Source code

Use this approach if you want to debug the source code and provide patches, etc. You can still use the executable version if you use this installation.

  • Once that's done, copy and paste the following commands into a command window. These install additional perl libraries needed by Biodiverse. Note that this assumes you don't already have ppm repositories defined. If you do then disable the trouchelle repository for the first three sets, as its gtk libs don't install properly (when last I checked).

ppm install Pod-Simple
ppm install PadWalker

ppm repo add http://voltar.org/active/5.8
ppm install http://voltar.org/active/5.8/Gtk2.ppd

ppm repo add http://www.biodiverse.unsw.edu.au/ppm
ppm install http://www.biodiverse.unsw.edu.au/ppm/Geo-Shapelib.ppd
ppm install http://www.biodiverse.unsw.edu.au/ppm/Gnome2-Canvas.ppd
ppm install http://www.biodiverse.unsw.edu.au/ppm/Statistics-Descriptive2.ppd
ppm install http://www.biodiverse.unsw.edu.au/ppm/Gtk2-GladeXML.ppd

ppm repo add http://trouchelle.com/ppm/
ppm install Data-DumpXML
ppm install Math-Random-MT-Auto
ppm install Devel-Symdump
ppm install Text-CSV_XS
ppm install DBD-XBase
ppm install IO-Stringy
ppm install HTML-QuickTable
ppm install YAML-Syck
ppm install Data-Structure-Util

You should now be able to run Biodiverse by executing C:\Biodiverse\bin\BiodiverseGUI.bat (or C:\Biodiverse\bin\BiodiverseGUI.pl if your system runs Perl files when they are opened).


Macintosh

The current Mac install requires a source code installation. We are working on a standalone executable, or at least one that bundles all the relevant dependencies.

  • You now need to install a number of ports. Open a terminal window and copy and paste the following commands one after the other. You could copy and paste all of them at once, but the commands can take a while (Gtk takes 30mins+) and download a large number of dependencies. Doing them one at a time makes it easier to keep track of which one you're up to.
  • sudo port install gtk2
    sudo port install p5-gtk2
    sudo port install p5-gtk2-gladexml
    sudo port install p5-gnome2-canvas
    sudo port install p5-yaml-syck
    
  • You now need to install the following perl libraries using the “cpan” program that comes with perl. To install these, open an X11 terminal window and type:
  • sudo /opt/local/bin/cpan
Follow the appropriate prompts to set up cpan. If you are asked if you want cpan to install automatically, choose YES. It should be all defaults if you are asked any questions.
Once cpan is ready, install the following libraries individually, by copying and pasting them one by one and hitting return after each. Wait until each is installed before going on to the next one (this is again for keeping track).
install Data::DumpXML
install Math::Random::MT::Auto
install Devel::Symdump
install Pod::Simple
install Text::CSV_XS
install DBD::XBase
install IO::Stringy
install HTML::QuickTable
install Geo::Shapelib
install YAML::Syck
install PadWalker
  • Now you are ready to install Biodiverse. Extract the biodiverse source code zip file to somewhere on your hard drive, eg your home folder.
  • To run Biodiverse, open a terminal window and change directory to the Biodiverse/bin folder. If it is in your home folder and called Biodiverse then type:
  • cd ~/Biodiverse/bin
  • Once you have done this, type the following to open Biodiverse:
  • /opt/local/bin/perl BiodiverseGUI.pl
You can dispense with the /opt/local/bin text if you are using the first perl in the search path. To check if it is, type:
which perl
If it returns /opt/local/bin/perl as first in the list then you can dispense with the /opt/local/bin and type
perl BiodiverseGUI.pl

Mac trouble shooting


Linux and UNIX

Please let us know so we can document it.

Comment by frog.girl, Oct 21, 2009

I get the following error when I attempt to compile the BiodiverseGui?-

BEGIN failed--compilation aborted at XXXXXXXX/bin/../lib/Biodiverse/GUI/GUIManager.pm line 9. Compilation failed in require at BiodiverseGUI.pl line 45. BEGIN failed--compilation aborted at BiodiverseGUI.pl line 45.

Comment by shawnlaffan, Oct 21, 2009

frog.girl: This is failing at the line where it tries to use Data::DumpXML::Parser. Either Data::DumpXML::Parser hasn't been successfully installed with Data::DumpXML, or it needs to be installed explicitly. If the former then re-run the cpan program and type "install Data::DumpXML" (without the quotes). If the latter then run cpan and type "install Data::DumpXML::Parser". Please let me if either one works so we can update the instructions. Shawn.

Comment by frog.girl, Oct 21, 2009

Hi Shawn, Thanks! I re-installed the Data::DumpXML again and everything is now working.Not sure why the second install was required since the first install appeared to have worked without issue. Thanks again.

Comment by shawnlaffan, Oct 21, 2009

Good to hear it worked. I'm not sure why it didn't install properly. if it happens to others then we can put troubleshooting notes into the doc.


Sign in to add a comment
Hosted by Google Code