Closed notklaatu closed 5 years ago
Snap programs should be executed out of /snap/bin . I'm not sure how that would get added to your path on fedora.
Does it work if you add that to PATH and use it there?
On November 26, 2018 1:19:34 PM EST, notklaatu notifications@github.com wrote:
On Fedora 28, I've installed both
hello
as a test andpdftk
. The first executes successfully, the latter fails.$ head -n 2 /etc/os-release NAME=Fedora VERSION="28 (Twenty Eight)" $ sudo dnf install -y snapd [ ... ] $ sudo systemctl start snapd $ sudo snap install hello [ ... ] $ hello bash: hello: command not found $ /var/lib/snapd/snap/hello/20/bin/hello Hello, World! $ sudo snap install pdftk [ ... ] $ /var/lib/snapd/snap/pdftk/9/usr/bin/pdftk bash: /var/lib/snapd/snap/pdftk/9/usr/bin/pdftk: No such file or directory $ sudo chmod +x /var/lib/snapd/snap/pdftk/9/usr/bin/pdftk Error blah blah: Read-only file system
This is my first experience with snap, so I may be overlooking a step, but given that hello works, I'm assuming pdftk ought to work in the same way, even if I do have to add /var/lib/snapd/snap/ to my PATH. But maybe there's some other path I need to add?
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/smoser/pdftk/issues/6
There is no /snap directory on my system, after having installed with the steps shown above. Maybe this is a larger bug with the snap install, or the snap RPM.
Cool, it seems to be working now.
Following your lead, I did this:
$ sudo ln -s /var/lib/snapd/snap /snap
And now I can execute by providing the full path to the executable:
$ /snap/pdftk/9/usr/bin/pdftk --version
pdftk 2.02 a Handy Tool for Manipulating PDF Documents
Copyright (c) 2003-13 Steward and Lee, LLC - Please Visit: www.pdftk.com
This is free software; see the source code for copying conditions. There is
NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
So I'm closing this issue as resolved. Now to look into who owns the snap RPM so I can report the install bug.
Thanks for the snap package! pdftk isn't supported on Fedora any more, apparently, so this snap package is going to make my life a lot easier. Cheers!
On Fedora 28, I've installed both
hello
as a test andpdftk
. The first executes successfully, the latter fails.This is my first experience with snap, so I may be overlooking a step, but given that hello works, I'm assuming pdftk ought to work in the same way, even if I do have to add /var/lib/snapd/snap/ to my PATH. But maybe there's some other path I need to add?