I have downloaded a Riot-iOS and follow a build instructions.
When I run '$ bundle install'
Traceback (most recent call last): 2: from /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:in
activate_bin_path' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:infind_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
bundle update --bundler. To install the missing version, run
gem install bundler:2.0.2`
After I run a '$ bundle exec pod install'
Traceback (most recent call last): 2: from /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:in
activate_bin_path' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:infind_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
bundle update --bundler. To install the missing version, run
gem install bundler:2.0.2`
So, I update a gem by running '$gem update --system'
Updating rubygems-update ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
Kindly help me.
It looks like you are using the system Ruby that ships with MacOS. In order for this to work you would need to try running these commands with sudo
. You can also try installing Ruby with RVM(https://rvm.io/) then running those same commands without sudo
RVM makes it very easy. Run this from your terminal:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
This command will install RVM and the latest stable Ruby version now 2.6.3.