Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install Octave on my Ubuntu LTS with apt-get. The problem is that the official repositories list only Octave 3.0 and Octave 3.2, whereas the latest Octave is Octave 3.6.

How do I update the repositories of apt-get to get Octave 3.6?

share|improve this question
    
possible duplicate of When will Octave 3.6.1 be available to be installed? –  hhlp May 18 '12 at 9:22
3  
No, this is about installing it in 10.04 while your link is about 12.04-12.10. –  izx May 18 '12 at 12:59
add comment

3 Answers

up vote 1 down vote accepted

The answer is quite simple. Go to the Octave downloads website and find the latest release of GNU Octave and download the .tar.gz file of it.

After this copy and paste the following terminal (CTRL+ALT+T) commands:

sudo apt-get build-dep octave
cd ~/Downloads
sudo mv octave-x.x.x.tar.gz ~
cd ~
tar xvf octave-x.x.x.tar.gz
cd octave-x.x.x
./configure
make
sudo make install

Where the 'x.x.x' refers to the version of GNU Octave you'd like to install, such as 3.6.3.

share|improve this answer
add comment

This PPA should solve your problem, provided you are running the latest 12.04.

Open Terminal Ctrl-Alt-T and type:

sudo apt-add-repository -y ppa:picaso/octave
sudo apt-get update 
sudo apt-get install octave
sudo apt-get install liboctave-dev 
share|improve this answer
    
even after update the repositories are not showing octave 3.6. I am searching in both synaptic and apt-get –  prometheuspk May 18 '12 at 9:47
    
What version of Ubuntu are you running? –  izx May 18 '12 at 9:48
    
Ubuntu 10.04 LTS –  prometheuspk May 18 '12 at 9:49
    
Repos in both answers are for 12.04 LTS only :(. Can you upgrade? –  izx May 18 '12 at 9:52
2  
PPAs must usually be restricted to specific versions because they contain binaries which have been compiled on that specific version, for that specific version. –  izx May 18 '12 at 9:59
show 3 more comments

Just as an update: this PPA (maintained by a member of the Debian Octave Group) provides the latest Octave for a range of Ubuntu versions.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.