Problem with pkg

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with pkg

Nir Krakauer-3
Package management stopped working for me, maybe due to conflicts
between Octave versions (I recall several related bug reports being
filed against pkg lately, but they were supposed to have been fixed).
I can run `pkg install -forge -local name` successfully (the package
shows up in the Packages directory), but `pkg list` then continues to
give `no packages installed.` and I can't load and use the package.
`pkg rebuild` runs, but doesn't change matters. Any guidance on how to
troubleshoot this? I'm running the development branch of Octave on
Ubuntu, which built and tested fine.


Reply | Threaded
Open this post in threaded view
|

Re: Problem with pkg

Juan Pablo Carbajal-2
On Fri, Jun 12, 2020 at 1:01 AM Nir Krakauer <[hidden email]> wrote:

>
> Package management stopped working for me, maybe due to conflicts
> between Octave versions (I recall several related bug reports being
> filed against pkg lately, but they were supposed to have been fixed).
> I can run `pkg install -forge -local name` successfully (the package
> shows up in the Packages directory), but `pkg list` then continues to
> give `no packages installed.` and I can't load and use the package.
> `pkg rebuild` runs, but doesn't change matters. Any guidance on how to
> troubleshoot this? I'm running the development branch of Octave on
> Ubuntu, which built and tested fine.
>
Hi Nik,
I am currently unable to compile in Ubuntu 20.04, so I am not running
the latest commits from dev, but with the compiled version I have I do
not see this problem.
It might be because I define my own prefix for octave. My octaverc files has

pkg prefix ~/.octave/ ~/.octave;

check if by changing the prefix your problem is solved.


Reply | Threaded
Open this post in threaded view
|

Re: Problem with pkg

Nir Krakauer-3
Thanks, Juan.
For me also, Forge packages in the repository Ubuntu version of Octave
[1] are working fine.

However, with the development version I compiled from source, setting
the pkg prefix doesn't seem to help with the Forge packages being
listed.

[1] https://packages.ubuntu.com/focal/octave

On Sat, Jun 13, 2020 at 5:39 PM Juan Pablo Carbajal
<[hidden email]> wrote:

>
> On Fri, Jun 12, 2020 at 1:01 AM Nir Krakauer <[hidden email]> wrote:
> >
> > Package management stopped working for me, maybe due to conflicts
> > between Octave versions (I recall several related bug reports being
> > filed against pkg lately, but they were supposed to have been fixed).
> > I can run `pkg install -forge -local name` successfully (the package
> > shows up in the Packages directory), but `pkg list` then continues to
> > give `no packages installed.` and I can't load and use the package.
> > `pkg rebuild` runs, but doesn't change matters. Any guidance on how to
> > troubleshoot this? I'm running the development branch of Octave on
> > Ubuntu, which built and tested fine.
> >
> Hi Nik,
> I am currently unable to compile in Ubuntu 20.04, so I am not running
> the latest commits from dev, but with the compiled version I have I do
> not see this problem.
> It might be because I define my own prefix for octave. My octaverc files has
>
> pkg prefix ~/.octave/ ~/.octave;
>
> check if by changing the prefix your problem is solved.