Home | Download/Install | Documentation | Packages | Screenshots | News | Forum/Mailing-lists | Contact | GForge
The OpenAlea projects are released as a source tarball that can be downloaded from our file repository. It it also available from the Subversion repositories but you only want this if you are a developer.
Create yourself a directory to work in
mkdir openalea cd openalea
Now you can choose to download the code from the release tarballs, or from SVN (branches, tags, trunk…).
Click to display ⇲
Click to hide ⇱
Windows instructions
Commands to download and uncompress tarballs for Unixes
wget https://gforge.inria.fr/frs/download.php/34176/openalea-1.2.0.tar.gz --no-check-certificate wget https://gforge.inria.fr/frs/download.php/34177/vplants-1.2.0.tar.gz --no-check-certificate wget https://gforge.inria.fr/frs/download.php/32483/alinea_1_0.tar.gz --no-check-certificate tar xzvf openalea-1.2.0.tar.gz tar xzvf vplants-1.2.0.tar.gz tar xzvf alinea_1_0.tar.gz
Click to display ⇲
Click to hide ⇱
svn checkout svn://scm.gforge.inria.fr/svn/openalea/tags/openalea_0_9_0 openalea_0_9
svn checkout svn://scm.gforge.inria.fr/svn/vplants/vplants/tags/vplants_0_9_0 vplants_0_9
svn checkout svn://scm.gforge.inria.fr/svn/openaleapkg/tags/alinea_0_9_0 openaleapkg_0_9
(1) Openalea is public and you are granted anonymous read-only access. To be able to commit changes, see (2).
(2) Private Subversion or commit rights : You need to register and be granted access by the administrators to gain access to private projects or to be able to commit to public repositories.
Click to display ⇲
Click to hide ⇱
svn checkout svn://scm.gforge.inria.fr/svn/openalea/trunk openalea
svn checkout svn+ssh://mylogin@scm.gforge.inria.fr/svnroot/vplants/vplants/trunk vplants
svn checkout svn+ssh://mylogin@scm.gforge.inria.fr/svnroot/openaleapkg/trunk openaleapkg
OR
svn checkout --username mylogin https://scm.gforge.inria.fr/svn/openaleapkg/trunk openaleapkg
(1) Openalea is public and you are granted anonymous read-only access. To be able to commit changes, see (2).
(2) Private Subversion or commit rights : You need to register and be granted access by the administrators to gain access to private projects or to be able to commit to public repositories.
Click to display ⇲
Click to hide ⇱
installing all dependencies
cd c:\python27\scripts easy_install -f http://openalea.gforge.inria.fr/pi openalea.deploy
Install runtime-deps:
alea_install pywin32 alea_install qt4 alea_install numpy alea_install scipy alea_install matplotlib alea_install gnuplot alea_install pyqglviewer alea_install pyopengl alea_install boost
Install compilation-deps:
alea_install mingw alea_install scons alea_install qt4-dev alea_install bisonflex alea_install qhull
If you're interested in building the dependencies, read Foreword : Everything is egg.
Click to display ⇲
Click to hide ⇱
Installing all dependencies
sudo yum install python-matplotlib CGAL-devel boost-math PyQt4 python-nose freeglut-devel freeglut boost-python scons gnuplot ann-devel python-fpconst bison-devel qscintilla-python SOAPpy subversion gcc-gfortran qhull-devel numpy flex python-setuptools boost-devel PyOpenGL PyQt4-devel flex-static scipy readline-devel gcc-c++ python-imaging python-networkx bison sip-devel R ipython python-matplotlib-qt4 rpy python-pandas
Installing all dependencies
sudo yum install python-matplotlib CGAL-devel boost-math PyQt4 python-nose freeglut-devel freeglut boost-python scons gnuplot ann-devel python-fpconst bison-devel qscintilla-python SOAPpy subversion gcc-gfortran qhull-devel numpy flex python-setuptools boost-devel PyOpenGL PyQt4-devel flex-static scipy readline-devel gcc-c++ python-imaging python-networkx bison sip-devel R
The sources can be compiled and installed system wide or only for the user. You can also consider developing in virtual python environments using virtualenv (in this case, all the following commands will operate in the virtual environment).
Two modes of installation are described below : “install” and “develop”. The “install” mode allows to install everything from build directory. The “develop” mode allows to edit the original source code, and relaunch the application without having to reinstall it.
On most systems, Python will be correctly configured and installed. On Windows, even though Python is installed, it won't be available from the command line. Consider reading this: Setting up the environment
–user
option does not work, consider using a virtualenv.
Click to display ⇲
Click to hide ⇱
cd openalea python multisetup.py install --user alea_config --install-dyn-lib=%USERPROFILE%\.local\lib cd ..\vplants python multisetup.py install --user cd ..\alinea python multisetup.py install --user
Click to display ⇲
Click to hide ⇱
cd openalea python multisetup.py develop --user alea_config --install-dyn-lib=%USERPROFILE%\.local\lib cd ..\vplants python multisetup.py develop --user cd ..\alinea python multisetup.py develop --user
Click to display ⇲
Click to hide ⇱
cd openalea [sudo] python multisetup.py install cd ..\vplants [sudo] python multisetup.py install cd ..\alinea [sudo] python multisetup.py install
Click to display ⇲
Click to hide ⇱
–user
option under Linux doesn't usually work out-of-the box.
First you need to create the directories used by the option.
cd ~/.local mkdir lib bin include cd lib mkdir python2.7 python2.7/site-packages
Click to display ⇲
Click to hide ⇱
cd openalea python multisetup.py install --user alea_config --install-dyn-lib=${HOME}/.local/lib cd ../vplants cp options_linux.py options.py python multisetup.py install --user cd ../alinea python multisetup.py install --user
Click to display ⇲
Click to hide ⇱
cd openalea python multisetup.py develop --user alea_config --install-dyn-lib=${HOME}/.local/lib cd ../vplants cp options_linux.py options.py python multisetup.py develop --user cd ../alinea python multisetup.py develop --user
Click to display ⇲
Click to hide ⇱
cd openalea [sudo] python multisetup.py install cd ../vplants cp options_linux.py options.py [sudo] python multisetup.py install cd ../alinea [sudo] python multisetup.py install
Click to display ⇲
Click to hide ⇱
mkdir -p ~/Library/Python/2.7/lib/python2.7/site-packages cd ~/Library/Python/2.7 mkdir bin include
Edit the file ~/.pydistutils.cfg
[install] prefix = ~/Library/Python/2.7
Then edit your ~/.profile file:
source ~/.openalea.sh export DYLD_FALLBACK_LIBRARY_PATH=$HOME/Library/Python/2.7/lib:$DYLD_FALLBACK_LIBRARY_PATH export PATH=$HOME/Library/Python/2.7/bin:$PATH export PYTHONPATH=$HOME/Library/Python/2.7/lib/python2.7/site-packages:$PYTHONPATH
Rename the options file according to your package manager (Homebrew and Macports).
cd vplants # for Macports users cp options_macports.py options.py # for Homebrew users cp options_brew.py options.py
Click to display ⇲
Click to hide ⇱
cd openalea python multisetup.py install --user alea_config --install-dyn-lib=${HOME}/Library/Python/2.7/lib cd ../vplants python multisetup.py install --user cd ../alinea python multisetup.py install --user
Click to display ⇲
Click to hide ⇱
cd openalea python multisetup.py develop alea_config --install-dyn-lib=${HOME}/Library/Python/2.7/lib cd ../vplants python multisetup.py develop cd ../alinea python multisetup.py develop
Click to display ⇲
Click to hide ⇱
cd openalea [sudo] python multisetup.py install cd ../vplants [sudo] python multisetup.py install cd ../alinea [sudo] python multisetup.py install