[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to co-install forge package both stable and development versions
From: |
Tatsuro MATSUOKA |
Subject: |
Re: How to co-install forge package both stable and development versions on linux |
Date: |
Thu, 28 Jul 2016 10:09:31 +0900 (JST) |
----- Original Message -----
> From: Mike Miller
> To: Tatsuro MATSUOKA
> Cc: "help-octave
> Date: 2016/7/28, Thu 03:19
> Subject: Re: How to co-install forge package both stable and development
> versions on linux
>
> On Wed, Jul 27, 2016 at 10:28:05 +0900, Tatsuro MATSUOKA wrote:
>> Platform : Ubuntu 14.04 amd 64 LTS.
>> Tried forge package : gsl
>> Issue : overwritten "pkg install" for different
> version
>>
>>
>> execute octave 4.0.3
>>
>>
>> pkg prefix /home/tatsuro/work/octave/octave-forge/4.0.3
> /home/tatsuro/work/octave/octave-forge/4.0.3
>> pkg install gsl-1.1.0.tar.gz
>>
>>
>> "pkg list" tells that the package is installed in
> /home/tatsuro/work/octave/octave-forge/4.0.3
>>
>> After that
>>
>> execute octave 4.1.0+
>>
>>
>> pkg prefix /home/tatsuro/work/octave/octave-forge/4.1.0+
> /home/tatsuro/work/octave/octave-forge/4.1.0+
>> pkg install gsl-1.1.0.tar.gz
>>
>>
>> "pkg list" tells that the package is installed in
> /home/tatsuro/work/octave/octave-forge/4.1.0+
>>
>> After that
>>
>> execute octave 4.0.3
>>
>> "pkg list" tells that the package is installed in
> /home/tatsuro/work/octave/octave-forge/4.1.0+
>>
>> I cannot use gsl package unless re-install on octave-4.0.3.
>>
>> How can I co exist gsl package for 4.0.3 and 4.1.0+?
>>
>> On windows, the octave install package is self contained.
>> octave for packages does not interfere.
>
> In addition to pkg prefix, you might also want to set the pkg local_list
> variable. This is a file that stores the cache of all installed
> packages, which is regenerated with `pkg rebuild` or when a package is
> installed or re-installed.
>
Thanks.
pkg prefix /home/tatsuro/work/octave/octave-forge/4.0.3
/home/tatsuro/work/octave/octave-forge/4.0.3
pkg local_list ~/.octave_packages
more off
cd /home/tatsuro/work/octave/gsl/gsl-hg/target
pkg install -verbose gsl-1.1.0.tar.gz
In the last of pkg install
error: couldn't append to
save: unable to open output file ''
error: called from 'install' in file
/opt/octave/4.0.3/share/octave/4.0.3/m/pkg/private/install.m near line 289,
column 7
Perhaps setting
pkg local_list ~/.octave_packages
is inadequate.
Tatsuro