Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute command "openttd". #6200

Closed
DorpsGek opened this issue Jan 2, 2015 · 4 comments
Closed

Failed to execute command "openttd". #6200

DorpsGek opened this issue Jan 2, 2015 · 4 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jan 2, 2015

asl97 opened the ticket and wrote:

problem: the Desktop Entry doesn't work
Failed to execute child process "openttd" (No such file or directory)

cause: the games folder isn't in the PATH on some distro (eg: Arch, fedora)

possible solution:

  1. add the games folder to the PATH (end-user need some knowledge on how to do it)
  2. use a symlink to add it to /usr/local/bin (end-user doesn't need to do anything)
  3. add the executable to /usr/local/bin (end-user doesn't need to do anything)

r27101

note: openspades also suffer from the same issue, see yvt/openspades#323 for more info on it.

Reported version: trunk
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/6200
@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 2, 2015

Rubidium wrote:

Contrary to what is suggested in the ticket you linked to, /usr/local/bin is not for local game binaries, just for local non-game binaries, according to the specification: http://www.pathname.com/fhs/pub/fhs-2.3.html# USRLOCALLOCALHIERARCHY (at least since FHS 2.0 which was released in 1997). As a result, the standard specifies that OpenTTD's binary should be, at least by default, installed in /usr/local/games and not /usr/local/bin.

You can make OpenTTD install into /usr/local/bin by passing --binary-dir=bin to ./configure, i.e. './configure --binary-dir=bin'. Then 'make install' installs the binary in /usr/local/bin.

If this happens with a package from your distribution, then the package maintainer should try to convince the distribution to conform to the FHS and add /usr/local/games and if that fails just use './configure --binary-dir=bin' instead of just './configure'.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6200#comment13689

@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 3, 2015

asl97 wrote:

it doesn't say non-game binaries, just binaries, most other game does install into /usr/local/bin, /usr/local/games is rarely used nowadays.

but i just wanted you to know that some distro doesn't add /usr/local/games into the PATH and would cause minor inconveniences to end-user since they would have to manually (soft)link it into /usr/local/bin (or other directory in the PATH) or know about the `--binary-dir` option.

in any case, i just make an bug report at https://bugzilla.redhat.com/show_bug.cgi?id=1178293 , i highly doubt they would add it to the PATH though.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6200#comment13692

@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 3, 2015

krinn wrote:

Distro using systemd aren't fhs compliant (systemd enforce breaking the fhs itself by issuing warning when /sbin and /usr/sbin aren't symlink), so it is no surprise redhat is not.
systemd also enforce that by targetting critical service from /usr/sbin path (look at any service file for a boot critical service and watch /usr/sbin been use in its ExecStart part instead of /sbin).


This comment was imported from FlySpray: https://bugs.openttd.org/task/6200#comment13695

@DorpsGek
Copy link
Member Author

Alberth closed the ticket.

Reason for closing: Won't fix

Install issues on random systems are out of scope for the OpenTTD project. You can set the install path while building the binary, if a package builder does not do that, there is little we can do.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6200

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Build system labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant