AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题

问题[ruby](computer)

Martin Hope
Jonathan
Asked: 2023-12-06 16:47:48 +0800 CST

安装乘客时出错:乘客中的乘客 6 需要 libruby.so.2.5,但无法安装任何提供程序

  • 5

本来我想更新ruby2.5到ruby2.7.

然而passenger阻碍了更新(yum 抛出了一个错误),所以我删除 passenger并随后ruby2.5安装ruby2.7。

然后安装ruby2.7就成功了,但是现在我无法重新安装passenger。(试图智胜错误只会改变它)

$ sudo yum -y install passenger

passenger                                                                        2.7 kB/s | 833  B     00:00
Error:
 Problem: conflicting requests
  - package passenger-6.0.4-3.el8.x86_64 from epel requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - package passenger-6.0.10-1.el8.x86_64 from passenger requires libruby.so.2.5()(64bit), but none of the providers can be installed
    ...
  - package passenger-6.0.18-1.el8.x86_64 from passenger requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - package passenger-6.0.19-1.el8.x86_64 from passenger requires libruby.so.2.5()(64bit), but none of the providers can be installed
    ...
  - package passenger-6.0.9-1.el8.x86_64 from passenger requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - package ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 from appstream is filtered out by modular filtering
    ...
  - package ruby-libs-2.5.9-111.module_el8+475+35a6c697.x86_64 from appstream is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages)

关于官方乘客文件,我删除passenger-repo并重新安装它但没有成功。

对我来说,似乎有什么东西仍然粘在 ruby 2.5这里。

谁能帮我?


我的存储库:

appstream                    CentOS Stream 8 - AppStream
baseos                       CentOS Stream 8 - BaseOS
docker-ce-stable             Docker CE Stable - x86_64
docker-ce-test               Docker CE Test - x86_64
epel                         Extra Packages for Enterprise Linux 8 - x86_64
epel-next                    Extra Packages for Enterprise Linux 8 - Next - x86_64
extras                       CentOS Stream 8 - Extras
extras-common                CentOS Stream 8 - Extras common packages
passenger                    passenger
powertools                   CentOS Stream 8 - PowerTools
remi-modular                 Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe                    Safe Remi's RPM repository for Enterprise Linux 8 - x86_64
ruby
  • 1 个回答
  • 47 Views
Martin Hope
Arpan Abhishek
Asked: 2021-01-20 02:09:09 +0800 CST

如何在新的 MacBook Air M1 上运行 Ruby on Rails?

  • 5

我正在运行 Ruby 版本 2.7.2,并且我一直在尝试运行 Ruby on Rails,但似乎没有任何效果。我试过了rvm,但rbenv现在asdf每次我在成功运行后尝试rails server在旧项目中运行时bundle install,都会收到这个长错误:

    Traceback (most recent call last):
    29: from bin/rails:2:in `<main>'
    28: from bin/rails:2:in `load'
    27: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `<top (required)>'
    26: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `tap'
    25: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:10:in `block in <top (required)>'
    24: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    23: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    17: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    16: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    15: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `<top (required)>'
    14: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `require_relative'
    13: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `<top (required)>'
    12: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `require'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:41:in `with_gems'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     2: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `require': cannot load such file -- msgpack/2.6/msgpack (LoadError)
    30: from bin/rails:2:in `<main>'
    29: from bin/rails:2:in `load'
    28: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `<top (required)>'
    27: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `tap'
    26: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:10:in `block in <top (required)>'
    25: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    24: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    23: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    17: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    16: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `<top (required)>'
    15: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `require_relative'
    14: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `<top (required)>'
    13: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `require'
    12: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:41:in `with_gems'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     2: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:8:in `<top (required)>'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `rescue in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle - /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle (LoadError)
    30: from bin/rails:2:in `<main>'
    29: from bin/rails:2:in `load'
    28: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `<top (required)>'
    27: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `tap'
    26: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:10:in `block in <top (required)>'
    25: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    24: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    23: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    17: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    16: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `<top (required)>'
    15: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `require_relative'
    14: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `<top (required)>'
    13: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `require'
    12: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:40:in `with_gems'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:44:in `rescue in with_gems'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     2: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `require': cannot load such file -- msgpack/2.6/msgpack (LoadError)
    31: from bin/rails:2:in `<main>'
    30: from bin/rails:2:in `load'
    29: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `<top (required)>'
    28: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:7:in `tap'
    27: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/spring:10:in `block in <top (required)>'
    26: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    25: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    24: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    23: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    17: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `<top (required)>'
    16: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/bin/rails:4:in `require_relative'
    15: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `<top (required)>'
    14: from /Users/arpanabhishek/projects/coronafree-projects/todo_manager/config/boot.rb:4:in `require'
    13: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    12: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:40:in `with_gems'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:44:in `rescue in with_gems'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     2: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:8:in `<top (required)>'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `rescue in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle - /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle (LoadError)

如果我尝试创建新的 rails 应用程序,我会收到此错误

    Traceback (most recent call last):
    29: from bin/rails:2:in `<main>'
    28: from bin/rails:2:in `load'
    27: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `<top (required)>'
    26: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `tap'
    25: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:10:in `block in <top (required)>'
    24: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    23: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    17: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    16: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    15: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `<top (required)>'
    14: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `require_relative'
    13: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `<top (required)>'
    12: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `require'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:41:in `with_gems'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     2: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `require': cannot load such file -- msgpack/2.6/msgpack (LoadError)
    30: from bin/rails:2:in `<main>'
    29: from bin/rails:2:in `load'
    28: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `<top (required)>'
    27: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `tap'
    26: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:10:in `block in <top (required)>'
    25: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    24: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    23: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    17: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    16: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `<top (required)>'
    15: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `require_relative'
    14: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `<top (required)>'
    13: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `require'
    12: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:41:in `with_gems'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     2: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:8:in `<top (required)>'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `rescue in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `require': dlsym(0x7fe15f3a38d0, Init_msgpack): symbol not found - /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle (LoadError)
    30: from bin/rails:2:in `<main>'
    29: from bin/rails:2:in `load'
    28: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `<top (required)>'
    27: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `tap'
    26: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:10:in `block in <top (required)>'
    25: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    24: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    23: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    17: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    16: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `<top (required)>'
    15: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `require_relative'
    14: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `<top (required)>'
    13: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `require'
    12: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:40:in `with_gems'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:44:in `rescue in with_gems'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     2: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:9:in `require': cannot load such file -- msgpack/2.6/msgpack (LoadError)
    31: from bin/rails:2:in `<main>'
    30: from bin/rails:2:in `load'
    29: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `<top (required)>'
    28: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:7:in `tap'
    27: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/spring:10:in `block in <top (required)>'
    26: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    25: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    24: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
    23: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
    22: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
    21: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
    20: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
    19: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
    18: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
    17: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `<top (required)>'
    16: from /Users/arpanabhishek/projects/coronafree-projects/myApp/bin/rails:4:in `require_relative'
    15: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `<top (required)>'
    14: from /Users/arpanabhishek/projects/coronafree-projects/myApp/config/boot.rb:4:in `require'
    13: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `<top (required)>'
    12: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/setup.rb:2:in `require_relative'
    11: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `<top (required)>'
    10: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap.rb:5:in `require_relative'
     9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `<top (required)>'
     8: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache.rb:74:in `require_relative'
     7: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `<top (required)>'
     6: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:40:in `with_gems'
     5: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/explicit_require.rb:44:in `rescue in with_gems'
     4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `block in <top (required)>'
     3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/store.rb:4:in `require'
     2: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:8:in `<top (required)>'
     1: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `rescue in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack.rb:11:in `require': dlsym(0x7fe15f2d35c0, Init_msgpack): symbol not found - /Library/Ruby/Gems/2.6.0/gems/msgpack-1.3.3/lib/msgpack/msgpack.bundle (LoadError)
macos ruby
  • 2 个回答
  • 1885 Views
Martin Hope
Chloe
Asked: 2020-02-26 13:58:36 +0800 CST

如何使用 Chocolatey 安装 Ruby 2.6?

  • 10

我试图列出所有版本的 Ruby,但它只列出了一个。

choco list ruby --exact --all
ruby 2.7.0.1 [Approved]
1 packages found.

Nokogiri 不能使用最新的 Ruby。

Gem::RuntimeRequirementNotMetError: nokogiri requires Ruby version >= 2.3, <
2.7.dev. The current ruby version is 2.7.0.0.
windows ruby
  • 1 个回答
  • 1450 Views
Martin Hope
christian Martin
Asked: 2019-10-10 15:03:06 +0800 CST

升级 Catalina 后 zsh 返回错误的解释器

  • 9

升级到 macOS Catalina 后,我收到一条错误消息。

zsh:/usr/local/bin/colorls:错误的解释器:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby:没有这样的文件或目录

似乎 Ruby 已经更新,因为当我运行时ruby -v,它输出以下内容。

ruby 2.6.3p62(2019-04-16 修订版 67580)[universal.x86_64-darwin19]

如何让 colorls 使用 Ruby 2.6 而不是安装命令时存在的 Ruby 2.3?

我尝试重新安装然后多次卸载它,但我仍然遇到同样的错误。

我确实设法使用以下行暂时使错误消息消失。

PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"

每次我打开一个新终端时,错误消息都会再次出现。我想找到一种让它持久的方法。

ruby macos-catalina
  • 4 个回答
  • 10083 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve