[英]Cannot install RUBY Gem Twitter on MAC OS
I have a problem trying to install the gem twitter on MAC OS. 我在尝试在MAC OS上安装gem twitter时遇到问题。
I input the command sudo gem install twitter
我输入命令sudo gem install twitter
and got the following result : 并得到以下结果:
Building native extensions. This could take a while...
ERROR: Error installing twitter:
ERROR: Failed to build gem native extension.
current directory: /Users/Will/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
/Users/Will/.rvm/rubies/ruby-2.3.3/bin/ruby -r ./siteconf20170712-36084-peffuw.rb extconf.rb
creating Makefile
current directory: /Users/Will/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR=" clean
/usr/local/bin/make:23:in `load': cannot load such file -- /Library/Ruby/Gems/2.0.0/gems/make-0.3.1/bin/make (LoadError)
from /usr/local/bin/make:23:in `<main>'
current directory: /Users/Will/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR="
/usr/local/bin/make:23:in `load': cannot load such file -- /Library/Ruby/Gems/2.0.0/gems/make-0.3.1/bin/make (LoadError)
from /usr/local/bin/make:23:in `<main>'
make failed, exit code 1
Gem files will remain installed in /Users/Will/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /Users/Will/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0/http_parser.rb-0.6.0/gem_make.out
I already tried stuff from around the net (installed XCode command line tools, re-installed Ruby and rvm...) and I'm all out of ideas/solutions/places to search... 我已经从网上尝试了一些东西(安装了XCode命令行工具,重新安装了Ruby和rvm ...),但我全都没有想法/解决方案/搜索的地方...
Could you please help me ? 请你帮助我好吗 ?
Thanks guys :) 多谢你们 :)
Looks like make is trying to load things from the default ruby: /Library/Ruby/Gems/2.0.0/gems/make-0.3.1/bin/make (LoadError)
rather than from your rvm-installed ruby. 看起来make试图从默认的ruby加载东西: /Library/Ruby/Gems/2.0.0/gems/make-0.3.1/bin/make (LoadError)
而不是从rvm安装的ruby加载东西。 I'd try installing the make gem with gem install make
to see if that resolves your issue. 我会尝试使用gem install make
安装make gem,以查看是否可以解决您的问题。
You could also check your GEM_PATH environment variable to make sure that local gems aren't being used before the gems installed for your rvm ruby. 您还可以检查GEM_PATH环境变量,以确保在为rvm红宝石安装gem之前未使用本地gem。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.