|
From: | Andrew Janke |
Subject: | Re: Wiki : Octave for GNU/Linux |
Date: | Sun, 10 Feb 2019 18:00:39 -0500 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 |
On 2/10/19 5:41 PM, Tatsuro MATSUOKA wrote:
o MATSUOKA wrote:$ sudo flatpak run org.octave.Octave octave:1> pkg install -forge -verbose control warning: creating installation directory /app/share/octave/packages warning: called from install at line 30 column 5 pkg at line 437 column 9 error: could not create installation directory: Read-only file system error: called from install at line 33 column 7 pkg at line 437 column 9I think the problem here is that you are running as root. Don't use sudo to run Octave. You can install flatpak applications system-wide or per-user. System-wide: sudo flatpak install flathub org.octave.Octave Per-user: flatpak install --user flathub org.octave.Octave But you should always run it as a normal user: flatpak run org.octave.Octave --gui The problem with root is that Octave's pkg function assumes packages will be installed system-wide if root is running Octave. But in flatpak the application root directory /app is read-only by design.The control package is very popular package. (I use signal package and signal package requires control package)After fixing the above you should definitely be able to install control and signal easily as a normal user. Does that help?Perhaps I have made some mistakes and could not run flapak octave without sudo. I remove ~.local/share/flatpak and reinstall octave. I can launch flatpak octave without sudo and can install control package. Thanks Tatsuro
I've been using flatpak installs lately too. One thing I've learned: you need to either do everything in flatpak as root (sudo) or nothing as root. Mixing the two doesn't work.
Here's what I am doing on Ubunu Xenial to get flatpak Octave 4.4 installed:flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user -y flathub org.octave.OctaveNo sudo on either of those commands. And it seems to matter for the remote-add, too: maybe you did the remote-add with a sudo previously?
If you want to see details on how to do this in an automated context, it's in https://github.com/apjanke/octave-control-testing-2019-01-23 in the .travis.yml and dev-tools/install-octave-ubuntu.sh files.
Cheers, Andrew
[Prev in Thread] | Current Thread | [Next in Thread] |