我正在尝试从github上的master分支安装Ruby-gnome2(因为在下一个版本之前,我需要从Cairo的最新错误修复中受益)。
我确实采用了此处说明的程序。
但是,我收到此消息:
jcll@jcll-probook ~/packages/ruby-gnome2 $ bundle exec rake
gem:install /home/jcll/.rvm/rubies/ruby-2.4.0/bin/ruby -S gem install --local --user-install glib2/pkg/glib2-3.3.0.gem
Building native extensions. This could take a while...
Successfully installed glib2-3.3.0
Parsing documentation for glib2-3.3.0
Done installing documentation for glib2 after 1 seconds
1 gem installed
/home/jcll/.rvm/rubies/ruby-2.4.0/bin/ruby -S gem install --local --user-install gobject-introspection/pkg/gobject-introspection-3.3.0.gem
ERROR: Could not find a valid gem 'glib2' (= 3.3.0) in any repository rake aborted!
Command failed with status (2):
[/home/jcll/.rvm/rubies/ruby-2.4.0/bin/ruby...]
/home/jcll/packages/ruby-gnome2/Rakefile:416:in block (3 levels) in <top (required)>
/home/jcll/packages/ruby-gnome2/Rakefile:415:in each
/home/jcll/packages/ruby-gnome2/Rakefile:415:in block (2 levels) in <top (required)>
/home/jcll/.rvm/gems/ruby-2.4.0/gems/rake-12.3.1/exe/rake:27:in<top (required)>
/home/jcll/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:24:in eval
/home/jcll/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:24:in
Tasks: TOP => gem:install (See full trace by running task with --trace)
尽管有一条消息告诉我glib2 gem已正确安装,但脚本抱怨它无法“在任何存储库中找到有效的gem'glib2'(= 3.3.0)”并中止了rake。
我在做错什么吗?请注意,我正在使用RVM。我需要设置一些适当的环境变量吗?
预先感谢