2013-07-10 4 views
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>' 

우분투 13.04에서 실행됩니다.

내가 잘못 했나요? 이 문제를 어떻게 해결할 수 있습니까?

+1

당신은 단계가 여기 => https://github.com/rubygame/rubygame/wiki/Linux-Install-Guide 설명 보셨나요? – lexmihaylov

답변

2

한번에 설치하는이 패키지 :

sudo apt-get install ruby ruby-dev irb ri rubygems 
sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev 
+0

아! 그것은 작동합니다! 고마워요! –