ryanb / ruby-warrior

Game written in Ruby for learning Ruby.
MIT License
3.84k stars 837 forks source link

Cannot run rubywarrior on a fresh ubuntu environment that comes with a default ruby installation #87

Open SamuelToh opened 9 years ago

SamuelToh commented 9 years ago

tigerroar@ubuntu:~$ rubywarrior Welcome to Ruby Warrior /var/lib/gems/1.9.1/gems/rubywarrior-0.1.3/lib/ruby_warrior/profile.rb:31:in load': incompatible marshal file format (can't be read) (TypeError) format version 4.8 required; 254.154 given from /var/lib/gems/1.9.1/gems/rubywarrior-0.1.3/lib/ruby_warrior/profile.rb:31:indecode' from /var/lib/gems/1.9.1/gems/rubywarrior-0.1.3/lib/ruby_warrior/profile.rb:35:in load' from /var/lib/gems/1.9.1/gems/rubywarrior-0.1.3/lib/ruby_warrior/game.rb:8:instart' from /var/lib/gems/1.9.1/gems/rubywarrior-0.1.3/lib/ruby_warrior/runner.rb:17:in run' from /var/lib/gems/1.9.1/gems/rubywarrior-0.1.3/bin/rubywarrior:5:in<top (required)>' from /usr/local/bin/rubywarrior:23:in load' from /usr/local/bin/rubywarrior:23:in

'

Newbie here. This is reproducible on a new ubuntu installation env that doesn't have the full ruby package installed yet.

To fix this, do=> "sudo apt-get install ruby-full"

Vic-ST commented 7 years ago

I had the same problem. Thanks!