I had some problems installing the newest version of octave first, but now everything is fine. In posting the steps that lead me to success, I hope I can save some people precious time they might want to use for doing mathematics.
(The Distribution I use is Kubuntu 10.04 LTS and I had octave 3.0.5 running)
0. download the octave-3.4.3 .tar.gz from http://www.gnu.org/software/octave/download.html and unpack into a folder.
1 . if not on your system yet, install the following package:
Code:
$ sudo apt-get install build-essential
This package contains an informational list of packages which are considered essential for building Debian packages. This package also depends on the packages on that list, to make it easy to have the build-essential packages installed. It includes the gcc/g++ compilers and libraries and other utilities.
2.
Code:
$ sudo apt-get build-dep octave3.2
The dependencies of 3.4 are similar to those of 3.2., so this should get you the needed dependencies for 3.4. To make sure take a look at the list of dependencies for build from source http://wiki.octave.org/wiki.pl?actio...uildFromSource and install any further needed packages.
3. I had the package fort77 installed which caused problems when I tried to build octave. Just dump the package.
4. The next two steps are crucial and solved my initial problems in building octave-3.4.3:
rename gfortran in /usr/bin:
Code:
$ sudo mv /usr/bin/gfortran /usr/bin/gfortran.ORG
create a symbolic link:
Code:
$ sudo ln -s /usr/bin/gfortran-x.x /usr/bin/gfortran
(at x.x insert your version number for gfortran; in my case it was gfortran-4.4)
5. Tell octave to build in gcc-x.x:
Code:
$ export CC=/usr/bin/gcc-x.x
Code:
$ export CXX=/usr/bin/g++-x.x
6. The rest is as usual:
cd into the folder with the downloaded octave-files and configure files:
if you want you can now run octave in place to test before installing:
hopefully octave works You can now run the package's built in tests. This step is also optional, but it might be good to make sure the programs that have been built behave as they should, before you decide to install them:
now, after everything has been built and tested, install octave (the default target is /usr/local):
Code:
$ sudo make install
As a last step, to save disk space, you can remove files that created and were needed just during the build process:
(You should keep your makefile. It is useful if you want to uninstall octave by doing a simple make uninstall.)
7. If you want to install further packages or newer versions of packages (for example the package audio-1.1.4 with sound.m, soundsc.m etc. which are not contained in the normal installation), get them from http://octave.sourceforge.net and install them in /usr/local/share/octave/3.4.3/m where all your packages with .m-files should be.
8. Have fun with your free, open and powerful new toy!!
Bookmarks