Ubuntu 16.04-64 and 17.04rc

For libSBML 15.0 not testing R, Matlab, Octave bindings

Setup build environment

Start with a default Ubuntu 16.04/17.04

sudo apt-get -y install mc scite git subversion cmake cmake-gui p7zip codeblocks

svn checkout https://svn.code.sf.net/p/sbml/code/trunk/libsbml sbml-code

sudo apt-get -y install build-essential g++ gfortran python python-dev python3-dev swig check sudo apt-get -y install libxml2 libxml2-dev libxslt-dev zlib1g zlib1g-dev bzip2 libbz2-dev sudo apt-get -y install libexpat-dev libxerces-c-dev libcurl4-openssl-dev

sudo apt-get -y install bzr p7zip mercurial

sudo apt-get -y install ruby ruby-dev perl libperl-dev node-gyp sudo apt-get -y install default-jdk r-base mono-complete node-gyp

sudo apt-get -y install libapache2-mod-php php php-dev libperl-dev sudo apt-get -y install octave octave-pkg-dev

Issues

Package dependency issues, so unable to install completely:

sudo apt-get -y install slurm slurm-wlm

If you use the distro check library as installed above then you also need to add the following to the cmake EXTRA_LIBS configuration:

EXTRA_LIBS: -lrt -lpthread -lsubunit

PHP bindings:

/home/sbml/src/libSBML-5.15.0-build/src/bindings/php/libsbml_wrap.cpp: In function ?void _wrap_destroy_p_ListOfOutwardBindingSites(zend_resource*)?:
/home/sbml/src/libSBML-5.15.0-build/src/bindings/php/libsbml_wrap.cpp:353756:43: error: ?rsrc? was not declared in this scope
   __wrap_delete_ListOfOutwardBindingSites(rsrc, SWIGTYPE_p_ListOfOutwardBindingSites->name TSRMLS_CC);
                                           ^~~~
/home/sbml/src/libSBML-5.15.0-build/src/bindings/php/libsbml_wrap.cpp:353756:101: error: ?__wrap_delete_ListOfOutwardBindingSites? was not declared in this scope
   __wrap_delete_ListOfOutwardBindingSites(rsrc, SWIGTYPE_p_ListOfOutwardBindingSites->name TSRMLS_CC);
                                                                                                     ^
src/bindings/php/CMakeFiles/binding_php_lib.dir/build.make:754: recipe for target 'src/bindings/php/CMakeFiles/binding_php_lib.dir/libsbml_wrap.cpp.o' failed
make[2]: *** [src/bindings/php/CMakeFiles/binding_php_lib.dir/libsbml_wrap.cpp.o] Error 1
CMakeFiles/Makefile2:3652: recipe for target 'src/bindings/php/CMakeFiles/binding_php_lib.dir/all' failed
make[1]: *** [src/bindings/php/CMakeFiles/binding_php_lib.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2