Note that on Ubuntu 10.04 and above, the default command to get packages is apt-get instead of aptitude (unless you have installed aptitude). Therefore the command to search the available packages is
$ apt-cache search octave
The rest of the commands are the same but replacing aptitude with apt-get.
newer releases of octave some extra packages may be needed. Next some extra compilation instructions are given.
If you plan to compile stuff in your Ubuntu system is not unwise to get the essential tools.
$ sudo apt-get install build- essential
After these you can proceed to get the dependencies as explained before.
$ sudo apt-get build- dep octave3.2
After this, it should be possible to follow the [[Build from source]] instructions. However, you may notice that the <code>configure</code> script says that '''bison''' and '''libfontconfig- dev''' are still missing so you need to get them too.
$ sudo apt-get install bison libfontconfig-dev
After this you can compile (which takes some time, 1:30 hr in a 2.0 Ghz PC). Even though make check may work perfectly, you may still find a problem when trying to plot. This is due to missing x11 for gnuplot. Gnuplot will tell you <code>Terminal set to unknown</code>. To fix it get the full gnuplot package
$ sudo apt-get install gnuplot
Make sure that gnuplot - x11 is in the list of installed packages.
You may still find a problem when plotting: <code>Gtk-WARNIN **: Unable to locate theme engine in module_path: "pixmap"</code> To fix this do