在Linux Mint中安装gstreamer gem时遇到问题 [英] Trouble with installation of gstreamer gem in Linux Mint
本文介绍了在Linux Mint中安装gstreamer gem时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用linux mint。当我尝试安装 gem install gstreamer
时,我发现这个错误:
错误:安装gstreamer时出错:
错误:无法构建gem本机扩展。
/home/msdc/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb`
检查 - 编译器的壁选项...是
检查编译器的-Waggregate-return选项... yes
检查-Wcast-align选项以编译器... yes
检查-Wextra选项以编译器... yes
检查编译器的-Wformat = 2选项...是
检查编译器的-Winit-self选项...是
检查-Wlarger-than-65500选项以编译器.. 。是
为编译器检查-Wmissing-declarations选项...是
为编译器检查-Wmissing-format-attribute选项...是
检查-Wmissing -include-dirs选项编译器...是
检查-Wmissing-noreturn选项到编译器...是
检查-Wmissing-prototypes选项到编译器...是
为编译器检查-Wnested-externs选项...是
检查编译器的Wold-style-definition选项。 ..是
检查-Wpacked选项编译器...是
检查-Wp,-D_FORTIFY_SOURCE = 2选项编译器...是
检查-Wpointer-arith选项编译器...是
检查-Wswitch-编译器的默认选项...是
检查-Wswitch -enum选项到编译器...是
检查 - Wundef选项编译器...是
检查-Wunsafe-loop-optimizations选项编译器...是
检查-Wwrite-strings选项编译器...是
在ruby.h中检查rb_define_alloc_func()...是
在ruby.h中检查rb_block_proc()...是
检查新分配框架...是
检查属性赋值...没有
检查Win32操作系统...没有
检查gstreamer-1.0 ...没有
检查sudo ... yes
安装'libgstreamer1.0-dev'本地软件包...失败
无法运行'/ usr / bin / sudo -p \ [sudo \] \ password \ for \ \%\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ .0-dev'
。
* extconf.rb失败*
由于某些原因无法创建Makefile,可能缺少必要的
库和/或头文件。检查mkmf.log文件以获取更多详细信息。您可以
需要配置选项。
提供的配置选项:
--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失败,退出代码1
Gem文件将保留安装在/home/msdc/.rvm/gems/ruby-2.1.2/gems/gstreamer-2.2.0中进行检查。
记录到/home/msdc/.rvm/gems/ruby-2.1.2/extensions/x86-linux/2.1.0/gstreamer-2.2.0/gem_make.out
$ c的结果
这里是我的ruby版本:
ruby 2.1。 2p95
和我的rubygems版本
2.2。 2
解决方案
sudo add-apt-repository ppa:gstreamer-developers / ppa
sudo apt-get update $ b $ sudo apt-get install gstreamer1.0
I'm using linux mint. When I try to install with gem install gstreamer
I see this error:
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 failed *
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
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
Here's my ruby version:
ruby 2.1.2p95
And my rubygems version
2.2.2
解决方案 Here's what helped me:
sudo add-apt-repository ppa:gstreamer-developers/ppa
sudo apt-get update
sudo apt-get install gstreamer1.0
这篇关于在Linux Mint中安装gstreamer gem时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文