help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell and emacs should load new version of octave


From: Judd Storrs
Subject: Re: shell and emacs should load new version of octave
Date: Tue, 22 Dec 2009 13:14:44 -0500

I think you need to add the location you installed octave into your
path? For example, if I built and installed octave using

./configure --prefix=/usr/local/octave-stable

Then entering

/usr/local/octave-stable/bin/octave

should work to start octave after it is installed. To avoid typing out
that whole thing you can set an environment variable called PATH that
tells the shell where to search for programs. In bash if you type

export PATH=/usr/local/octave-stable/bin:$PATH

Then typing octave will use the new version. You can permanently
change your path by editing your ~/.bashrc file.
https://answers.launchpad.net/ubuntu/+question/3199

That should work to fix emacs when you start emacs from a terminal as
well. I'm not certain, but I suspect you will have to edit your
~/.profile file instead and then logout and log back in to get emacs
to work from the Applications menu.


--judd



On Tue, Dec 22, 2009 at 11:11 AM,  <address@hidden> wrote:
> Dear all,
>
> I built octave 3.2.3 today on ubuntu 9.10 and it's working. However, the
> shell command 'octave' still refers to previous version 3.2.2, the command
> 'octave-3.2.3' has to be used for the most recent version. How can I make
> the shell command 'octave' load the latest version? How can I make emacs
> M-x-run-octave load the most recent octave version?
>
> Regards & many thanks,
>
> Adi
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]