matoom / frostbite

MUD client for dragonrealms.
29 stars 17 forks source link

Amazon Linux 2 issue #76

Open unborder opened 3 years ago

unborder commented 3 years ago

I was successful in installing Frostbite on Amazon Linux 2, but I am unable to get ruby to work properly. Any advice on what could be happening here?

--- Open "/home/linux0/.rbenv/versions/2.5.1/bin/ruby /home/linux0/lich/lich.rbw --dragonrealms --frostbite -g dr.simutronics.net:11024" which: no wine in (/usr/local/bin:/usr/bin:/bin:/sbin:/usr/local/sbin:/usr/sbin:/home/linux0/.local/bin:/home/linux0/bin)

--- Lich process exited with code 0

matoom commented 3 years ago

I'm not familiar with amazon linux but it seems like the wine check in lich is not being caught by the rescue block and is instead calling exit 0 on the process? That's a native command being called through lich so it's fair to assume that it has something to do with this particular linux distribution and the way it behaves calling that command.

In lich.rbw:

begin
  $wine_bin = `which wine`.strip
rescue
  $wine_bin = nil
end

Maybe try replacing that with: $wine_bin = nil

If that doesn't work you could try calling that exact same command (the one that runs lich) directly in terminal and hopefully that produces a different, more verbose error.