To begin with I installed Octave using pacman as a root or sudo user (I prefer sudo)
sudo pacman -Sy; pacman -S octaveThere was no problems with this.
Now, to install Image processing package it is necessary to do as follows:
To install a package, download the package file, and install it from the Octave prompt by typing pkg install package_file_name.tar.gzIn my case the package_file_name.tar.gz was image-1.0.10.tar.gz and it can be downloaded form here
where package_file_name.tar.gz is the name of the file you downloaded.
So, when I tried to install it I got the following error
octave:1> pkg install image-1.0.10.tar.gzAs it can be seen lgfortranbegin is missing. The library belongs to fortran compiler and in Arch Linux it can be installed simply by
warning: creating installation directory /usr/share/octave/packages
/usr/bin/ld: cannot find -lgfortranbegin
collect2: ld returned 1 exit status
make: *** [__spatial_filtering__.oct] Error 1
'make' returned the following error: make: Entering directory `/tmp/oct-9oWZxI/image-1.0.10/src'
make: Leaving directory `/tmp/oct-9oWZxI/image-1.0.10/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.2.3/m/pkg/pkg.m near line 1253, column 2
error: called from:
error: /usr/share/octave/3.2.3/m/pkg/pkg.m at line 714, column 5
error: /usr/share/octave/3.2.3/m/pkg/pkg.m at line 287, column 7
sudo pacman -S gcc-fortranTo make sure that the library was installed I performed a search and I found it
[marcin@arch ~]$ sudo find / -name "*fortranbegin*"After this there was no problems. I installed Image package as previously described and I checked if I got functions that I needed (e.g. imrotate, imresize) by:
octave:1> pkg install image-1.0.10.tar.gzThe installation was almost finished. I needed one more package, i.e. gnuplot to be able to display figures
imread imresize imrotate_Fourier
sudo pacman -S gnuplotFinally, I did some simple test to create an image, make a rotated version of it and display both of them
ConclusionSo in conclusion, to install octave along with Image package I needed to have gcc-fortran and gnuplot installed first:
sudo pacman -S gcc-fortran gnuplot octaveThen follow general instruction on how to install Octave packages from here.