我正在尝试安装Ruby on rails,所以首先我安装了RVM rvm install 1.9.2。之后,安装此gem install rails。它显示此错误
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.8 directory.
然后我使用了这个sudo chmod 0777 /var/lib/gems/1.8/
在那之后,当我安装的时候,它显示这个错误:
ERROR: While execu
我正在使用Arch Linux并安装了Ruby (这是2.0.0版)。
当我安装Ruby时,它说我应该添加:
$(ruby -rubygems -e "puts Gem.user_dir")/bin
在我的路径中,我将其添加到.bashrc
当我尝试gem安装rails或任何其他gem时,它会给出错误:无法构建gem本地扩展。这是完整的错误:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/lib/ru
我创建了一个新的Rails项目。并使用了著名的Michael教程中使用的gem文件。
source 'https://rubygems.org'
gem 'rails', '3.2.9'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.11.0'
end
# Gems used only for assets and not required
# in pro
我使用Mac OSx中的终端安装了一个名为"Ziya“的GEM。但是,当我使用Netbeans打开应用程序时,它显示无法找到GEM。
如果我使用GEM管理器安装Ziya,我会得到以下错误,并且GEM没有安装。
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/snehal/.gem/ruby/1.8/bin in your PATH,
gem e
我正在OSX10.11.3上运行Vagrant1.8.1,我正在尝试安装一个插件。在尝试安装时,我得到以下错误:
vagrant plugin install vagrant-libvirt
............
An error occurred while installing ruby-libvirt (0.6.0), and Bundler cannot continue.
Make sure that `gem install ruby-libvirt -v '0.6.0'` succeeds before bundling.
.........
Gem::E
我在上使用Windows installer安装了Ruby on Rails。安装过程中没有任何错误。然而,当我尝试的时候:
rails new blog
我得到了以下错误:
使用本机扩展安装json (1.6.5) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension。C:/opt/Ruby_on_Rails/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb安装json (1.6.5)时出错,Bundler无法继续。在捆绑之前,请确保ge
因此,我正在尝试安装rspec,以便使用我的新rails应用程序进行测试。
这是我的gem文件
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.2'
group :development, :test do
gem 'sqlite3', '1.3.8'
gem 'rspec-rails', '2.13.1'
end
group :test do
gem 'seleni
当我试图捆绑安装时,我得到了这个错误
Bundler::GemspecError: Could not read gem at /home/theareba/.rvm/gems/ruby-2.0.0-p353/cache/nokogiri-1.6.1.gem. It may be corrupted.
An error occurred while installing nokogiri (1.6.1), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.1'` succeeds