Open wechsler42 opened 3 years ago
I'm not sure if it's the same thing but I had the same problem and to resolve it you can do two things:
Go to the Properties > Permissions > Allow executing file as program
or type sudo chmod +x GoMoPhoCoreConsole
Thanks for the heads up. I'll check into this, as it is a long weekend and I'm feeling the code.
I know it's literally at the bottom of the readme / release stuff but does this do the same as what @mattyeux suggests?
My windows build process does not support unix permissions. The native compiled GNU/Linux versions require unzipping and then applying execute permissions. The CrossPlatform version does not. The following bash commandline will unzip and apply the execute permission to the GoMoPhoCoreConsole file
unzip -d ./GoMoPho GoMoPho.GNULinux.3.0.zip && cd ./GoMoPho && source grant_perms.sh
inside that file is the following, hich i think should do what you're suggesting above?
#!/bin/bash
# file: grant_perms.sh
chmod a+x GoMoPhoCoreConsole
@wechsler42 i think the cross platform version works, because the dotnet
runtime is the executor... so it runs, and reads all the files, so the files themselves don't need to be executable, just readable.
When executing this: unzip -d ./GoMoPho GoMoPho.GNULinux.3.0.zip && cd ./GoMoPho && source grant_perms.sh
I get chmod: Accessing ''$'\r' not possible: File or Directory not found
Could you run the statements seperately?
i.e.
unzip -d ./GoMoPho GoMoPho.GNULinux.3.0.zip
cd ./GoMoPho
source grant_perms.sh
The grant_perms.sh
file inside it's trying to grant execution permissions to the file GoMoPhoCoreConsole
via this command, perhaps you could try run it seperately and see how it goes?
chmod a+x GoMoPhoCoreConsole
Hi there, first of all thanks a lot for providing us GoMoPho!
With GoMoPho.Ubuntu.3.3 as well as with GoMoPho.GNULinux.3.3.zip I face a permission error while trying to run GoMoPho on Debian 10 (actual patch state).
Steps to reproduce: Apply: "unzip -d ./GoMoPho GoMoPho.GNULinux.3.3.zip && cd ./GoMoPho && source grant_perms.sh" results in: -rwxr-xr-x 1 root users 138736 Jun 21 22:16 GoMoPhoCoreConsole -rw-r--r-- 1 root users 119922 Jun 21 22:16 GoMoPhoCoreConsole.deps.json -rw-r--r-- 1 root users 12800 Jun 21 22:16 GoMoPhoCoreConsole.dll -rw-r--r-- 1 root users 477 Jun 20 14:53 GoMoPhoCoreConsole.dll.config -rw-r--r-- 1 root users 12972 Jun 21 22:16 GoMoPhoCoreConsole.pdb
Trying to start GoMoPho with: "./GoMoPhoCoreConsole" resutls in: "-bash: ./GoMoPhoCoreConsole: Permission denied"
I face this permissions error with GoMoPho.Ubuntu.3.3.zip as well.
For comparison: If I install "Microsoft.NETCore.App 5.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]" and use "GoMoPho.CrossPlatform.3.3.zip" it just works