Thanks for reply @gongomgra
First i run bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32
.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32
.
Using rake 13.0.1
Using concurrent-ruby 1.1.7
Using i18n 1.6.0
Using minitest 5.14.2
Using thread_safe 0.3.6
Using tzinfo 1.2.8
Using activesupport 5.2.4.2
Using builder 3.2.4
Using erubi 1.10.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.10
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.8.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.4.2
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 5.2.4.2
Using nio4r 2.5.4
Using websocket-extensions 0.1.5
Using websocket-driver 0.7.3
Using actioncable 5.2.4.2
Using globalid 0.4.2
Using activejob 5.2.4.2
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.4.2
Using method_source 1.0.0
Using thor 1.0.1
Using railties 5.2.4.2
Using actionpack-xml_parser 2.0.1
Using activemodel 5.2.4.2
Using arel 9.0.0
Using activerecord 5.2.4.2
Using mimemagic 0.3.5
Using marcel 0.3.3
Using activestorage 5.2.4.2
Using public_suffix 4.0.6
Using addressable 2.7.0
Using bundler 2.1.2
Using css_parser 1.7.1
Using csv 3.1.9
Using htmlentities 4.3.4
Using mini_magick 4.9.5
Using mysql2 0.5.3
Using net-ldap 0.16.3
Using ruby-openid 2.9.2
Using rack-openid 1.4.2
Using sprockets 4.0.2
Using sprockets-rails 3.2.2
Using rails 5.2.4.2
Using rbpdf-font 1.19.1
Using rbpdf 1.20.1
Using redcarpet 3.5.0
Using request_store 1.4.1
Using roadie 4.0.0
Using roadie-rails 2.1.1
Using rouge 3.12.0
Bundle complete! 31 Gemfile dependencies, 59 gems now installed.
Gems in the groups development, test and sqlite were not installed.
Bundled gems are installed into ./vendor/bundle
and then run bundle config default 2.2.5
:
You are replacing the current global value of default, which is currently "2.1.2"
Finally run sudo ruby bin/rake db:migrate RAILS_ENV=production
again :
Activating bundler (~> 2.1) failed:
Could not find 'bundler' (~> 2.1) among 5 total gem(s)
To install the version of bundler this project requires, run gem install bundler -v '~> 2.1'