To begin with I installed Octave using pacman as a root or sudo user (I prefer sudo)
sudo pacman -Sy; pacman -S octave
There 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.gz
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'
mkoctfile __spatial_filtering__.cc
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
As it can be seen lgfortranbegin is missing. The library belongs to fortran compiler and in Arch Linux it can be installed simply by sudo pacman -S gcc-fortran
To make sure that the library was installed I performed a search and I found it[marcin@arch ~]$ sudo find / -name "*fortranbegin*"
/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libgfortranbegin.a
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.gz
octave:2> imr<tabulator>
imread imresize imrotate_Fourier
imremap imrotate
octave:2>
The installation was almost finished. I needed one more package, i.e. gnuplot to be able to display figuressudo pacman -S gnuplot
Finally, I did some simple test to create an image, make a rotated version of it and display both of themoctave:8> I=randn(256);
octave:9> I2=imrotate(I,30);
octave:10> figure,imshow(I);
octave:11> figure,imshow(I2);
Conclusion
So 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 octave
Then follow general instruction on how to install Octave packages from here.
I did not know Octave has Image processing toolbox! Its nice.
ReplyDeleteHi, I have a similar installation problem:
ReplyDeleteoctave:1> ls
image-1.0.15.tar.gz octave-matlab-tut.pdf
octave:2> pkg install image-1.0.15.tar.gz
make: mkoctfile: No such file or directory
make: *** [__spatial_filtering__.oct] Error 1
'make' returned the following error: mkoctfile -Wall __spatial_filtering__.cc
error: called from `pkg>configure_make' in file /sw/share/octave/3.6.3/m/pkg/pkg.m near line 1385, column 9
error: called from:
error: /sw/share/octave/3.6.3/m/pkg/pkg.m at line 827, column 5
error: /sw/share/octave/3.6.3/m/pkg/pkg.m at line 383, column 9
Do you have a idea what could be the problem here?
Thanks a lot.
Regards
Marcus (marcus.hudritsch@bfh.ch)
Wіth this consiԁеrablу of terгific praiseѕ for the ѕolutiοn, it
ReplyDeleteis nо wonder thаt it has beеn on mајor
from otheг bгandѕ οf stretсh mаrk сгeamѕ.
Here is my blog ρost ... hyperlink
No aԁditіοnаl tіmе еxpеnԁeԁ оn the fitneѕѕ centeг, no
ReplyDeletebaсk pain ԁue to the fасt of to quite a few сгunches oг other stomасh ωοгkοut гoutines
аnd no far more sweaty worκοuts meгеly
to make certain that your abѕ appear supегb.
Ηere iѕ my sitе - Www.Celebritybookzstar.Com
Wonderful article! That is the type of info that should be shared around the net.
ReplyDeleteDisgrace on the search engines for now not positioning this publish upper!
Come on over and visit my web site . Thank you =)
Look into my weblog ... pole pruner saw
Wow that was unusual. I just wrote an incredibly long comment
ReplyDeletebut after I clicked submit my comment didn't appear. Grrrr... well I'm not writing all that
over again. Anyway, just wanted to say superb blog!
Feel free to surf to my page; how to exercise
I'm gone to say to my little brother, that he should also visit this web site on regular basis to take updated from most up-to-date news.
ReplyDeleteFeel free to surf to my web blog :: stability ball exercises
I'm really enjoying the design and layout of your site. It's a very
ReplyDeleteeasy on the eyes which makes it much more pleasant for me
to come here and visit more often. Did you hire out a designer to create
your theme? Superb work!
Here is my weblog: 2011 mazda rx 8
Hi there colleagues, nice article and nice urging commented here, I am really enjoying by these.
ReplyDeletemy webpage :: mazda rx 8 convertible
If some one wishes to be updated with latest technologies
ReplyDeleteafter that he must be pay a visit this web site and be up to date daily.
Also visit my blog post ... my snoring solution
hello!,I really like your writing very a lot!
ReplyDeleteshare we keep in touch more approximately your post on AOL?
I require a specialist in this space to solve my problem.
Maybe that's you! Having a look forward to look you.
My web site snore mouthpiece reviews