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