2
我嘗試安裝使用Rubygame不工作:「load_library」:無法加載SDL
sudo gem install rubygame
雖然安裝工作正常當前Rubygame寶石,當我試圖要求寶石,紅寶石提出了以下錯誤:
/var/lib/gems/1.9.1/gems/nice-ffi-0.4/lib/nice-ffi/library.rb:98:in 'load_library': Could not load SDL. (LoadError)
from /var/lib/gems/1.9.1/gems/ruby-sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:51:in '<module:SDL>'
from /var/lib/gems/1.9.1/gems/ruby-sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:34:in '<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 'require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 'require'
from /var/lib/gems/1.9.1/gems/rubygame-2.6.4/lib/rubygame/main.rb:22:in '<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 'require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 'require'
from /var/lib/gems/1.9.1/gems/rubygame-2.6.4/lib/rubygame.rb:44:in 'block in <top (required)>'
from /var/lib/gems/1.9.1/gems/rubygame-2.6.4/lib/rubygame.rb:29:in 'each'
from /var/lib/gems/1.9.1/gems/rubygame-2.6.4/lib/rubygame.rb:29:in '<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in 'require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in 'rescue in require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in 'require'
from /home/lakerking008/Ruby/Ruby Game Practice/Game.rb:2:in '<main>'
我在Ubuntu 13.04上運行。
我做錯了什麼?我怎樣才能解決這個問題?
你採取的步驟,這裏=> https://github.com/rubygame/rubygame/wiki/Linux-Install-Guide解釋呢? – lexmihaylov