Fenics project on GNU Octave

I trying to install package for the resolution of partial differential equations based on FENICS on GNU Octave 5.1.0. When I try to install the fem-fenics package, I get the following error:

 pkg install -forge fem-fenics

configure: error: dolfin required to install Fem-fenics Package
configure: loading site script /usr/local/etc/config.site
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for pkg-config... /mingw64/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dolfin... no

After getting the above error, I installed dolfin-adjoint from the following website:
http://www.dolfin-adjoint.org/en/latest/download/index.html

But still I could not install fem-fenics package on GNU Octave. Can anyone guide me to install fem-fenics package.

Also, I would like guidance on the following topics:
1)dolfin required to install Fem-fenics Package
2)Cross-compling
3)minix/config.h

Dolfin and dolfin-adjoint are two separate packages. Dolfin-adjoint is an overloading tool for optimization, while dolfin is the actual Finite element package. To install dolfin, see: https://fenics.readthedocs.io/en/latest/installation.html#from-source

fem-fenics is not up to date with latest dolfin releases (and might not be up to date with latest octave either). It hasn’t been updated since 2016. You’re going to be in a world of trouble getting it to work.

dolfin provides a python interface. You’ll probably save yourself a lot of pain if you learn to use dolfin through python rather than octave.

1 Like