1
我收到的時候我試圖在Ubuntu 13.10安裝古藪無法在Ruby中安裝古藪庫在Linux中
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using diff-lcs 1.2.5
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux
checking for TTF_RenderUTF8_Blended() in -lSDL2_ttf... yes
checking for SDL_ttf.h... yes
checking for FreeImage_ConvertFromRawBits() in -lfreeimage... yes
checking for FreeImage.h... yes
checking for main() in -lopenal... no
creating Makefile
make
compiling gosu_wrap.cxx
In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
from gosu_wrap.cxx:850:
gosu_wrap.cxx: In function ‘void Gosu::loadBitmap(Gosu::Bitmap&, VALUE)’:
/usr/include/ruby-1.9.1/ruby/ruby.h:675:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
RSTRING(str)->as.heap.len)
^
我試圖從https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux將每個庫這個錯誤,但我仍然得到上述錯誤。任何人都可以幫助我嗎?
編輯: 當我檢查安裝的軟件包的地位
dpkg -s gcc libsdl2-dev libsdl2-ttf-dev libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev | grep Status
我得到以下狀態:
Status: install ok installed
dpkg-query: package 'libsdl2-ttf-dev' is not installed and no information is available
Status: install ok installed
Status: install ok installed
Status: install ok installed
dpkg-query: package 'libopenal-dev' is not installed and no information is available
Status: install ok installed
dpkg-query: package 'libsndfile-dev' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
所以,libsdl2-TTF-dev的和libsndfile-dev的是未安裝。我試圖用apt-get install
安裝這些軟件包,但無法安裝它們,因爲它說在任何來源中找不到軟件包。
謝謝你的信息,但腳本不能停在那裏。請更新完整的日誌或日誌文件的結尾,而不是啓動,您必須在日誌文件 – Achilles 2015-02-24 07:22:05
的最後一行上看到錯誤或致命錯誤,還有關於丟失的deps,關於libsdl,只有兩個可用於您的ubuntu版本的軟件包,您可以安裝他們用這個命令:apt-get install libsdl-ttf2.0-0 libsdl -ttf-gst和另外兩個丟失的軟件包,可以使用以下命令安裝:apt-get install libopenal-dev libsndfile1-dev – Achilles 2015-02-24 07:32:58
如果你有打開此命令之一,首先使用apt-cache搜索軟件包名稱,然後再試一次。 – Achilles 2015-02-24 07:35:48