ruby - 在 Linux Mint 中安装 gstreamer gem 时遇到问题

标签 ruby linux rubygems rvm

我正在使用 Linux Mint。当我尝试使用 gem install gstreamer 安装时,我看到了这个错误:

    ERROR:  Error installing gstreamer:
    ERROR: Failed to build gem native extension.

   /home/msdc/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb`
    checking for -Wall option to compiler... yes
    checking for -Waggregate-return option to compiler... yes
    checking for -Wcast-align option to compiler... yes
    checking for -Wextra option to compiler... yes

    checking for -Wformat=2 option to compiler... yes
    checking for -Winit-self option to compiler... yes
    checking for -Wlarger-than-65500 option to compiler... yes

    checking for -Wmissing-declarations option to compiler... yes
    checking for -Wmissing-format-attribute option to compiler... yes
    checking for -Wmissing-include-dirs option to compiler... yes

    checking for -Wmissing-noreturn option to compiler... yes
    checking for -Wmissing-prototypes option to compiler... yes
    checking for -Wnested-externs option to compiler... yes

    checking for -Wold-style-definition option to compiler... yes
    checking for -Wpacked option to compiler... yes
    checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
    checking for -Wpointer-arith option to compiler... yes

    checking for -Wswitch-default option to compiler... yes
    checking for -Wswitch-enum option to compiler... yes
    checking for -Wundef option to compiler... yes

    checking for -Wunsafe-loop-optimizations option to compiler... yes
    checking for -Wwrite-strings option to compiler... yes
    checking for rb_define_alloc_func() in ruby.h... yes
    checking for rb_block_proc() in ruby.h... yes

    checking for new allocation framework... yes
    checking for attribute assignment... no
    checking for Win32 OS... no
    checking for gstreamer-1.0... no

    checking for sudo... yes
    installing 'libgstreamer1.0-dev' native package... failed
    failed to run '/usr/bin/sudo -p \[sudo\]\ password\ for\ \%u\     to\ install\ \<libgstreamer1.0-dev\>:\  apt-get install -V -y libgstreamer1.0-dev'

. * extconf.rb 失败 * 由于某种原因无法创建 Makefile,可能是缺少必要的 库和/或标题。检查 mkmf.log 文件以获取更多详细信息。您可以 需要配置选项。

 Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/msdc/.rvm/rubies/ruby-2.1.2/bin/ruby
--with-pkg-config
--without-pkg-config
--with-override-variables
--without-override-variables

extconf failed, exit code 1

Gem files will remain installed in /home/msdc/.rvm/gems/ruby-2.1.2/gems/gstreamer-2.2.0 for inspection.
Results logged to /home/msdc/.rvm/gems/ruby-2.1.2/extensions/x86-linux/2.1.0/gstreamer-2.2.0/gem_make.out

这是我的 ruby 版本:

ruby 2.1.2p95

还有我的 ruby​​gems 版本

2.2.2

最佳答案

以下是对我有帮助的内容:

sudo add-apt-repository ppa:gstreamer-developers/ppa
sudo apt-get update
sudo apt-get install gstreamer1.0

关于ruby - 在 Linux Mint 中安装 gstreamer gem 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25158867/

相关文章:

linux - 使用 sudo chmod 命令将/usr 文件权限更改为 0744

linux - 在 Linux 机器或 VM 上安装 Eclipse Kura

ruby - 找不到 gem -v 命令 - CentOS 6.3

ruby - 在 Win7-x64/ruby1.9.2p0 上启动?

ruby - gem 安装错误

ruby - 根据矩阵形状进行坐标转换

ruby - 从 Amazon S3 流式传输动态 zip

ruby-on-rails - 使用 Rails API 进行设计 - current_user

javascript - 对象比较 : Javascript vs Ruby

linux - 如何在 shell 脚本中创建菜单?