387
edits
m (moved Octave in Userland to Octave in home directory) |
(Proofreading, rename "userland" to "home directory".) |
||
Line 1: | Line 1: | ||
Installing in | Installing in your home directory is a method to install GNU Octave next to your repository installation at the same time. This works with every Linux distribution and is especially for old Ubuntu LTS versions very useful! | ||
One advantage is that you do not clutter your system by running ''sudo make install''. | One advantage is that you do not clutter your system by running ''sudo make install''. | ||
Another advantage is that you can keep your | Another advantage is that you can keep your Octave installation that is provided by your distribution. | ||
== 1. Install dependencies == | == 1. Install dependencies == | ||
Line 18: | Line 18: | ||
cd octave-3.8.0/ | cd octave-3.8.0/ | ||
or clone current | or clone current development branch | ||
hg clone http://hg.octave.org/octave/ | hg clone http://hg.octave.org/octave/ | ||
Line 35: | Line 35: | ||
== 4. make & make install == | == 4. make & make install == | ||
After you have successful configured octave without errors ''(warnings may be | After you have successful configured octave without errors ''(warnings may be okay)'', you can run ''make''. If you have a dual core CPU, you can run make with two threads like that (increase -j number if you have more CPU cores). | ||
make -j2 | make -j2 | ||
This may take now ~30-300 Minutes (depends on the speed of your cpu and the size of your RAM | This may take now ~30-300 Minutes (depends on the speed of your cpu and the size of your RAM) | ||
Feel free to run ''make check'' too. | Feel free to run ''make check'' too. | ||
Line 55: | Line 55: | ||
== Uninstall == | == Uninstall == | ||
==== | ==== Method A ==== | ||
If you're still have the compiled source folder, just do ''make uninstall'' from it. And don't forget to remove the ''alias octave38'' entry in your ''~/.bashrc''. | If you're still have the compiled source folder, just do ''make uninstall'' from it. And don't forget to remove the ''alias octave38'' entry in your ''~/.bashrc''. | ||
==== | ==== Method B ==== | ||
Just delete (e.g. ''rm -rf ~/.octave38/'') the install folder and remove the ''alias octave38'' entry from your ''~/.bashrc''. | Just delete (e.g. ''rm -rf ~/.octave38/'') the install folder and remove the ''alias octave38'' entry from your ''~/.bashrc''. |