Re: permission denied error
Thomas Leonard <[email protected]> Wed, 19 Oct 2016 20:21:42 +0100
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAG4opy-YfhQDFb4cBFnU0S=AQpaAbkO9UmAze-U8pQS3rSc-MQ@mail.gmail.com> |
On 19 October 2016 at 12:20, Thomas von Kiedrowski <[email protected]> wrote: > Hi, > > I just started to get into 0install. I'm using version 2.12-post > Anyway, I made a simple template: > > <?xml version="1.0"?> > <interface > xmlns="http://zero-install.sourceforge.net/2004/injector/interface"> > <name>NucleoATAC-git</name> > <summary>does useful stuff</summary> > > <description> > NucleoATAC > > ... > </description> > > <homepage>https://github.com/GreenleafLab/NucleoATAC</homepage> > > <feed-for > interface="http://intranet.embl.de/download/its/zeroinstall/NucleoATAC-git.xml"/> > > <group license="OSI Approved :: GNU Lesser General Public License (LGPL)"> > <command name="run" path="bin/nucleoatac"> > <executable-in-path name="nucleoatac"/> > </command> > > <!-- Add additional requirements here. > <requires interface="..."/> > --> > > <implementation arch="*-*" > id="sha1new=ba67d533cf636dfccce7e8b3b75982688660bc9e" > released="2016-10-19" version="01"> > <manifest-digest > sha256new="Z7UU76J4JVVVKO22I7D75HSOGYTWNHLT26LFVSP543ERIYA6FB4A"/> > <archive extract="NucleoATAC-master" > href="https://github.com/GreenleafLab/NucleoATAC/archive/master.zip" > size="11898888"/> > </implementation> > </group> > </interface> > > > When I run it with: > > 0install run > http://intranet.embl.de/download/its/zeroinstall/NucleoATAC-git.xml > > I get: > > execve(/home/kiedrows/.cache/0install.net/implementations/sha256new_Z7UU76J4JVVVKO22I7D75HSOGYTWNHLT26LFVSP543ERIYA6FB4A/bin/nucleoatac): > Permission denied > ... trying to exec: > /home/kiedrows/.cache/0install.net/implementations/sha256new_Z7UU76J4JVVVKO22I7D75HSOGYTWNHLT26LFVSP543ERIYA6FB4A/bin/nucleoatac > ... running > http://intranet.embl.de/download/its/zeroinstall/NucleoATAC-git.xml > > > What I'm doing wrong? The file in the zip archive is not marked as executable (you can try running the path in the error message yourself to get the same result). This appears to be a genuine problem with the file in the Git repository. However, it would be better to use a <runner> to tell 0install that this is a Python program (and which version of Python to use). See e.g. https://github.com/0install/0compile/blob/master/0compile.xml#L28 for an example of using <runner> to run a Python (2) program. Then it doesn't matter whether the file is executable or not and it will work on all platforms. > Can I somehow setup the permission? > Also why do I get no entry under $HOME/bin ? Use "0install add NAME" instead of "0install run" if you want a launcher script (called NAME). -- talex5 (GitHub/Twitter) http://roscidus.com/blog/ GPG: 5DD5 8D70 899C 454A 966D 6A51 7513 3C8F 94F6 E0CC GPG: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot