已安装Rails但无法运行?

时间:2019-05-28 21:06:57

标签: ruby-on-rails ruby rubygems

我正在使用asdf作为Ruby包管理器,我在PATH环境中遇到了很多问题,并且能够正确安装所有内容。但是,我遇到了Rails gem的问题。

我认为我可能仍然会遇到所有权错误。

openssl-cmake

这是我的路径:

/Users/carlos.grijalva/.asdf/shims:/Users/carlos.grijalva/.asdf/bin:/Users/carlos.grijalva/.rbenv/bin:/Users/carlos.grijalva/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

这是which ruby

/Users/carlos.grijalva/.asdf/shims/ruby

这是ruby -v

ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]

这是我的GEM environment

RubyGems Environment:
  - RUBYGEMS VERSION: 2.7.6
  - RUBY VERSION: 2.5.3 (2018-10-18 patchlevel 105) [x86_64-darwin18]
  - INSTALLATION DIRECTORY: /Users/carlos.grijalva/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0
  - USER INSTALLATION DIRECTORY: /Users/carlos.grijalva/.gem/ruby/2.5.0
  - RUBY EXECUTABLE: /Users/carlos.grijalva/.asdf/installs/ruby/2.5.3/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/carlos.grijalva/.asdf/installs/ruby/2.5.3/bin
  - SPEC CACHE DIRECTORY: /Users/carlos.grijalva/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/carlos.grijalva/.asdf/installs/ruby/2.5.3/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-18
  - GEM PATHS:
     - /Users/carlos.grijalva/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0
     - /Users/carlos.grijalva/.gem/ruby/2.5.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/carlos.grijalva/.asdf/installs/ruby/2.5.3/bin
     -
     - /Users/carlos.grijalva/.asdf/shims
     - /Users/carlos.grijalva/.asdf/bin
     - /Users/carlos.grijalva/.rbenv/bin
     - /Users/carlos.grijalva/bin
     - /usr/local/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin

1 个答案:

答案 0 :(得分:0)

您只想使用一个ruby版本管理器。如果不将其用作版本管理器,请确保删除与RBEN相关的所有内容。

为您可能需要做的事情准备一个look here

您还应该检查您的shell中是否不需要有关RBENV的任何PATH定义。