【问题标题】:`raw_require_paths': NotImplementedError (NotImplementedError)`raw_require_paths': NotImplementedError (NotImplementedError)
【发布时间】:2016-11-01 15:34:18
【问题描述】:

我的 ruby​​ 命令都不起作用。 最初我试图让罗盘在一个 yeoman 生成的项目中与 Grunt 一起工作,但不知何故我把我电脑上的所有东西都搞砸了。

它是一台较旧的 Mac,我无法将操作系统升级到 10.6.8 以上。 (雪豹)

Ruby -v:ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin10.0]

如果我输入任何gem 命令,我会得到以下信息:

Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/basic_specification.rb:219:in `raw_require_paths': NotImplementedError (NotImplementedError)
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/basic_specification.rb:240:in `require_paths'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems.rb:1098:in `register_default_spec'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:773:in `block in load_defaults'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:738:in `block in each_spec'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:723:in `block (2 levels) in each_gemspec'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:722:in `each'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:722:in `block in each_gemspec'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:721:in `each'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:721:in `each_gemspec'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:736:in `each_spec'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:770:in `load_defaults'
from /Users/home/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems.rb:1239:in `<top (required)>'
from <internal:gem_prelude>:1:in `require'
from <internal:gem_prelude>:1:in `<compiled>'

我的 .bash_profile 如下所示:

export PATH=/usr/local/bin:$PATH
alias ll="ls -lahG"
export NODE_PATH="/usr/local/lib/node"
export PATH="/usr/local/share/npm/bin:$PATH"
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
#export PATH=/bin:/usr/bin:"$PATH"
export PATH="/usr/local/mysql/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session. 
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" #Load RVM function
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
eval "$(rbenv init -)"


##
# Your previous /Users/home/.bash_profile file was backed up as /Users/home/.bash_profile.macports-saved_2016-10-31_at_23:29:59
##

# MacPorts Installer addition on 2016-10-31_at_23:29:59: adding an appropriate PATH variable for use with MacPorts.
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.

【问题讨论】:

    标签: ruby path yeoman compass-sass compass


    【解决方案1】:

    我通过部分遵循此处How to upgrade ruby and rails in mac os snow leopard的这些说明修复了它

    RVM(Ruby 版本管理器)是升级 Ruby 的标准 在 OSX 上安装:https://rvm.io(任何平台 - 包括 OSX Snow 豹)

    要开始,请打开终端窗口并发出以下命令 命令:

    \curl -L https://get.rvm.io | bash -s stable --ruby

    然后我收到一个警告,我需要将 rvm cleanup allthe --auto-dotfiles 标志一起使用

    然后我rvm use ruby-1.9.3-p194@global到以前的安装成功。

    【讨论】:

      猜你喜欢
      • 2020-06-03
      • 1970-01-01
      • 2022-08-04
      • 2021-03-15
      • 1970-01-01
      • 2019-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多