I am preparing a Jupyter Notebook using an Octave kernel based on this nice example:
However I would also like to use Octave packages, first I tried the usual way to install packages on Octave by typing pkg install -forge package_name
(image, in my case) in the Jupyter Notebook code cell and I got the following error message:
warning: creating installation directory /home/jovyan/octave
warning: called from
install at line 30 column 5
pkg at line 394 column 9
configure: error: in/tmp/oct-mAomxr/image-2.12.0/src': configure: error: C++ compiler cannot create executables See
config.log’ for more details
checking for a sed that does not truncate output… /bin/sed
checking for octave… /srv/conda/envs/notebook/bin/octave-4.2.1
checking for mkoctfile… /srv/conda/envs/notebook/bin/mkoctfile-4.2.1
checking whether the C++ compiler works… no
pkg: error running the configure script for image.
error: called from
configure_make at line 78 column 9
install at line 192 column 7
pkg at line 394 column 9`
Then I tried to install the package with apt-get (Octave for Debian systems - Octave) by adding the octave-image
to apt.txt. The when I tried loading the package in the Jupyter Notebook by writing pkg load image
, I got the following error message:
error: package image is not installed
error: called from
load_packages at line 41 column 7
pkg at line 411 column 7`
Is there any quick fix for one these methods or another way to do it?