Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 2.06 KB

git.md

File metadata and controls

69 lines (49 loc) · 2.06 KB

To compile the Git repository, proceed as follows. This procedure does need git and autoconf but new versions can be pulled and recompiled easily. If something goes wrong and you get an error, do not hesitate to ask in FeenoX's discussion page.

:::: {.only-in-format .html }

<div id="feenox-clone-configure-make-check-install"></div>
<script>AsciinemaPlayer.create('feenox-clone-configure-make-check-install.cast', document.getElementById('feenox-clone-configure-make-check-install'), {cols:128,rows:32, poster: 'npt:0:10'});</script>

::::

  1. Install mandatory dependencies

    sudo apt-get update
    sudo apt-get install git build-essential make automake autoconf libgsl-dev
    

    If you cannot install libgsl-dev but still have git and the build toolchain, you can have the configure script to download and compile it for you. See point\ 4 below.

  2. Install optional dependencies (of course these are optional but recommended)

    sudo apt-get install libsundials-dev petsc-dev slepc-dev
    
  3. Clone Github repository

    git clone https://github.com/seamplex/feenox
    
  4. Bootstrap, configure, compile & make

    cd feenox
    ./autogen.sh
    ./configure
    make -j4
    

    If you cannot (or do not want to) use libgsl-dev from a package repository, call configure with --enable-download-gsl:

    ./configure --enable-download-gsl
    

    If you do not have Internet access, get the tarball manually, copy it to the same directory as configure and run again. See the detailed compilation instructions for an explanation.

  5. Run test suite (optional)

    make check
    
  6. Install the binary system wide (optional)

    sudo make install
    

To stay up to date, pull and then autogen, configure and make (and optionally install):

git pull
./autogen.sh; ./configure; make -j4
sudo make install