我使用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
我是Rails的新手,并且一直在尝试设置我的Mac来处理一些开发。我当前在一个项目文件夹中,正在尝试安装Gem,并收到以下错误:
*bash-3.2$ gem install pg
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.*
它似乎正在尝试将其安装到1.8目录。我希望所有的宝石安装只为这个项目,而
我之前使用mac预装的ruby安装了rails。我最近通过rvm安装了ruby。
然后我就这么做了
rails -v
并得到以下错误
kingsosina$ rails -v
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'railties' (>= 0) among 5 total gem(s) (Gem::LoadError)
from /Library/Ruby/Site/2.0.0/rubygems/dependency
我已经干净地安装了Mac OS X Lion,并且已经安装了开发人员工具。我正在尝试安装一些ruby gem,但是那些需要本地扩展的并没有构建。
sudo gem install rmagick
例如,将不会构建。我返回了这个错误:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/V
求求你,我需要帮助!我对所有这些安装都是新手,我试着安装ruby我的,它总是给我这个错误'Cucumber gem不是为ruby -2.0.0 -p 481 SDC安装的‘我有mac,当我在终端上安装一个通用版本的ruby时,它总是给我这样的答案。
tests-MBP:~ annasena$ gem install cucumber
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.
当我收到以下错误时,我正在我的Mac上安装Rails (gem installing ):
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the Users/[myusername]/.rvm/gems/ruby-1.9.3-p429/bin directory.
我通过rbenv安装。我安装了红宝石-2.0和红宝石-1.9.3-p 428。
任何帮助都将不胜感激。谢谢:)
我在使用Bundler安装Git依赖项时遇到了问题。bundle install似乎已成功完成:
Using gemname version from git://github.com/username/repo.git (at master)
Your bundle is complete!
但是,运行任何后续命令、bundle exec等都会失败:
git://github.com/username/repo.git (at master) is not yet checked out. Run `bundle install` first.
我注意到Bundler获取gem没有问题,但是
如何在我的苹果电脑上安装RubyGems?
我试图运行$ gem install rubygems-update,但没有成功。它返回
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
任何帮助都是最好的。谢谢
我刚刚克隆了一个项目,可以开始玩了。获取下面的错误。我已经在这里穷尽了其他答案,因为它们似乎都不能解决这个问题。我才刚刚开始使用web dev,对我来说是如此的赤裸裸。我们非常感谢您的任何建议或帮助。
我已经完成了捆绑器的故障排除,并尝试了他们建议的修复,但没有任何乐趣……
Patricks-MacBook-Pro:ytutorial patrickwalsh$ bundle install
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation
当我尝试运行/check bundle on on Mac Bundler/bundler are in local gem list时遇到问题--local
Gem env返回以下内容
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14
- RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin14]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
- R
我在Ubuntu 12.04上运行,我正在尝试在Ruby 1.9.3p194 / Rails 3.2.3上安装pg gem v '0.12.2‘。我已经安装了libpq-dev和build-essential,但仍然收到相同的错误:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.9.1 directory.
fernando@ubuntu:/media/fernando/OS/Rail
我有多个用户在同一系统上使用CLI应用程序。为了使用未发布的补丁,Gemfile指向github上的grit gem的特定提交。这个应用程序有一个Gemfile.lock。所有用户都设置了相同的$GEM_HOME和$GEM_PATH位置。
现在,除了一个用户'cd app;bundle show grit‘之外,所有用户的路径都类似于'$GEM_HOME/bundler/gems/grit-35b71d599549’(存在的原因是我运行了bundle install)。但是对于奇怪的情况,'cd app;bundle show grit‘显示的路径是这样的'/n
我正在Pi3上安装仪表板。我在安装步骤中“找不到‘邦德勒’问题。我如何完成安装?”
$ source /home/pi/.rvm/scripts/rvm
-> OK
$ rvm current
ruby-2.3.0
$ bundle
/usr/lib/ruby/2.1.0/rubygems/dependency.rb:298:in 'to_specs': Could not find 'bundler' (>= 0) among 42 total gem(s) (Gem::LoadError)
from /usr/lib/ruby/2.1
为了开始使用RubyMine集成开发环境,我正在尝试在我的mac上设置一个ruby on rails环境。我已经使用了homebrew、rbenv和所有其他必需的库来安装ruby/rails -然而,当我sudo gem install rails安装失败时,原因如下:
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /us
我通过brew在OS X上安装了gcc6.1,当我尝试在Mac上安装sciruby-full时,总是收到以下错误:
>Fetching: nmatrix-0.1.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing sciruby-full:
ERROR: Failed to build gem native extension.
/usr/local/opt/ruby/bin/ruby -r ./siteconf20150627-989