octave-maintainers
[Top][All Lists]
Advanced

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

Re: Portable Octave ?


From: John W. Eaton
Subject: Re: Portable Octave ?
Date: Mon, 30 Oct 2017 20:27:25 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 10/30/2017 07:55 PM, CdeMills wrote:
Hello
While wishing to test two versions of Octave with different compile options,
I came up with a simple idea. I usually configure octave as configure
--prefix=${HOME}/usr
meaning files are under
   ${HOME}/usr/bin, ${HOME}/usr/lib, and so on
Now, what about having a prefix of somepath/octave-4.2/
meaning files would be now on
somepath/octave-4.2/bin, somepath/octave-4.2/lib, ...
with some symbolic links (for executable, man and info files) in the usual
path. Furthermore, under somepath/octave-4.2 should be a simple Makefile
with targets:
1) create the mentionned links
2) purge those links

in such a way that 'uninstalling' would be as simple as
cd somepath/octave-4.2
make uninstall
cd ..
rm -rf octave-4.2

It is similar to Mac OS Application approach: everything living under a
common place instead of a /usr/lib with files from dozen of packages. The
latter is easier for searching; the former is easier to manage: one hierachy
= one App
Given the number of files typically included in Octave, this would simplify
its management. and Yes, I do not always use the OS package manager.

Your opinions ?

For many years I've recommended installing Octave with

  ---prefix=/some/where/VERSION

Then you can use that version of Octave either by executing it with /some/where/VERSION/bin/octave or by adding /some/where/VERSION/bin to your shell PATH ahead of any other directory that has Octave installed. Uninstalling is as simple as

  rm -rf /some/where/VERSION

What else do you need?

jwe



reply via email to

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