加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby – Homebrew:忽略bigdecimal-1.3.2,因为它的扩展没有构建

发布时间:2020-12-17 02:10:23 所属栏目:百科 来源:网络整理
导读:我总是运行brew更新忽略bigdecimal-1.3.2,因为它的扩展没有构建.尝试:gem pristine bigdecimal –version 1.3.2警告显示: brew updateIgnoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2Igno
我总是运行brew更新忽略bigdecimal-1.3.2,因为它的扩展没有构建.尝试:gem pristine bigdecimal –version 1.3.2警告显示:

> brew update
Ignoring bigdecimal-1.3.2 because its extensions are not built.  Try: gem pristine bigdecimal --version 1.3.2
Ignoring bigdecimal-1.3.2 because its extensions are not built.  Try: gem pristine bigdecimal --version 1.3.2
Already up-to-date.

我正在使用Homebrew v1.7.7(Homebrew / homebrew-core(git revision 77cae; last commit 2018-10-19),Homebrew / homebrew-cask(git revision c95843; last commit 2018-10-19))和rbenv v1 .1.1.

我已经做了宝石质朴的bigdecimal –version 1.3.2,它说:

> gem pristine bigdecimal --version 1.3.2
ERROR:  While executing gem ... (Gem::Exception)
    Failed to find gems ["bigdecimal"] = 1.3.2

甚至宝石原始 – 所有都没有固定它.

宝石环境向我展示了2条宝石路径.那很好吗?

> gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 2.6.11
  - RUBY VERSION: 2.4.1 (2017-03-22 patchlevel 111) [x86_64-darwin16]
  - INSTALLATION DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0
  - USER INSTALLATION DIRECTORY: /Users/ricardo/.gem/ruby/2.4.0
  - RUBY EXECUTABLE: /Users/ricardo/.rbenv/versions/2.4.1/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/bin
  - SPEC CACHE DIRECTORY: /Users/ricardo/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-16
  - GEM PATHS:
     - /Users/ricardo/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0
     - /Users/ricardo/.gem/ruby/2.4.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-rdoc --no-ri --user-install"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/ricardo/.rbenv/versions/2.4.1/bin
     - /usr/local/Cellar/rbenv/1.1.1/libexec
     - /Users/ricardo/.gem/ruby/2.4.0/bin
     - /Users/ricardo/.rbenv/shims
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin

解决方法

确保你使用正确的宝石.以下为我修好了:

$which ruby
/usr/local/bin/ruby
$/usr/bin/gem uninstall bigdecimal --all --force

(编辑:修复“删除”到“卸载”)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读