Version 9.0.0 bundle install error

Hey guys,

I am pretty new to ruby and rails and had some issues to set up sharetribe locally.

PS C:\Users\sboke\sharetribe> bundle install
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies…
Bundler could not find compatible versions for gem "ruby ":
In Gemfile:
ruby (~> 2.6.2.0)

transit-ruby (~> 0.8.602) was resolved to 0.8.602, which depends on
  msgpack (~> 1.1.0) was resolved to 1.1.0, which depends on
    ruby  (< 2.5) x64-mingw32

Could not find gem ‘ruby (< 2.6)’, which is required by gem ‘rest-client (~>
2.0.2)’, in any of the relevant sources:
the local ruby installation

I am running ruby 2.6.2 and rails 5.2.3. Does anybody know how to fix this?
Thanks you.

well, Windows is quite unusual OS for Sharetribe, for development people use OS X or Linux flavors (like Ubuntu).

yet, you can try following workaround:

  1. git clone https://github.com/cognitect/transit-ruby
  2. edit gemspec, changing required versions (seems ruby 2.6 support was added only in v1.2.7):
spec.version       = "0.8.602"
spec.add_dependency "msgpack",                        "~> 1.3.0"
  1. build gem locally and install
gem build transit-ruby.gemspec
gem install transit-ruby-0.8.602.gem
  1. back in sharetribe directory run again bundle install - it should use already installed local transit-ruby gem
1 Like

thanks for your response, but I run in another error trying to install the local gem. I’ll install Ubuntu and try it again.

same problem and done following
edit the gemspec
added
spec.version = “0.8.602”
spec.add_dependency “msgpack”, “~> 1.3.0”

and also build gem locally then install
by

cd transit-ruby
gem build transit-ruby.gemspec
gem install transit-ruby-0.8.602.gem

succeeded

but same error on bundle install

what to do??