Kat*_*gan 5 ruby rubygems bundler ios
我已经下载了Riot-iOS并按照构建说明进行操作。
当我运行“ $bundle install ”时
回溯(最近一次调用最后一次):2:来自 /usr/bin/bundle:23:in
<main>' 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:inactivate_bin_path' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems。 rb:283:在find_spec_for_exe': Could not find 'bundler' (2.0.2) required by your /Users/premkumar/Downloads/riot-ios-develop/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run捆绑包更新中--bundler. To install the missing version, rungem安装捆绑器:2.0.2`
在我运行“ $bundleexecpodinstall ”之后
回溯(最近一次调用最后一次):2:来自 /usr/bin/bundle:23:in
<main>' 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:inactivate_bin_path' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems。 rb:283:在find_spec_for_exe': Could not find 'bundler' (2.0.2) required by your /Users/premkumar/Downloads/riot-ios-develop/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run捆绑包更新中--bundler. To install the missing version, rungem安装捆绑器:2.0.2`
因此,我通过运行“ $gem update --system ”来更新 gem
更新 rubygems-update 错误:执行 gem 时 ... (Gem::FilePermissionError) 您没有 /Library/Ruby/Gems/2.6.0 目录的写入权限。
请帮助我。
Zac*_*tle 11
看起来您正在使用 MacOS 附带的系统 Ruby。为了使其工作,您需要尝试使用 运行这些命令sudo。您还可以尝试使用 RVM ( https://rvm.io/ ) 安装 Ruby,然后运行相同的命令,而不需要sudo
RVM 使这一切变得非常容易。从您的终端运行此命令:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
Run Code Online (Sandbox Code Playgroud)
此命令将安装 RVM 和最新的稳定 Ruby 版本(现在为 2.6.3)。