rubygems / bundler

Manage your Ruby application's gem dependencies
https://bundler.io
MIT License
4.88k stars 2k forks source link

Rails app Error on creation #6299

Closed haroutp closed 6 years ago

haroutp commented 6 years ago

Hello, I'm a Mac user, This is my first Issue report, I tried looking what is the right method for posting errors, if I need to provide more information please be kind enough to ask more! I tried creating a rails new app, at the end of the creation I got this:

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error: https://github.com/bundler/bundler/search?q=incompatible+library+version+-+%2FUsers%2user_name%2F.rvm%2Fgems%2Fruby-2.4.3%40global%2Fgems%2Fpsych-3.0.2%2Flib%2Fpsych.bundle&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at: https://github.com/bundler/bundler/issues/new run bundle exec spring binstub --all Ignoring bigdecimal-1.3.3 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.3 bundler: command not found: spring Install missing gem executables with bundle install

Can anyone help me understand this?

colby-swandale commented 6 years ago

Hi, Please make sure that you copy the full error report, you're missing about a good 2/3 of it.

The error message is: command not found: spring which means you're trying to run spring but don't have spring installed. I suggest making sure that spring is in your Gemfile and installing it with bundle install

haroutp commented 6 years ago

I hope this is it

Ignoring bigdecimal-1.3.3 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.3 Ignoring nokogiri-1.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.1 Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2 Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0 Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2 Ignoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0 Ignoring nio4r-2.2.0 because its extensions are not built. Try: gem pristine nio4r --version 2.2.0 Ignoring openssl-2.1.0 because its extensions are not built. Try: gem pristine openssl --version 2.1.0 Ignoring psych-3.0.2 because its extensions are not built. Try: gem pristine psych --version 3.0.2 Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5 create create README.md create Rakefile create config.ru create .gitignore create Gemfile run git init from "." Initialized empty Git repository in /Users/User_name/Documents/Studies/Coursera/Ruby/my_first_app/my_first_app/.git/ create app create app/assets/config/manifest.js create app/assets/javascripts/application.js create app/assets/javascripts/cable.js create app/assets/stylesheets/application.css create app/channels/application_cable/channel.rb create app/channels/application_cable/connection.rb create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/jobs/application_job.rb create app/mailers/application_mailer.rb create app/models/application_record.rb create app/views/layouts/application.html.erb create app/views/layouts/mailer.html.erb create app/views/layouts/mailer.text.erb create app/assets/images/.keep create app/assets/javascripts/channels create app/assets/javascripts/channels/.keep create app/controllers/concerns/.keep create app/models/concerns/.keep create bin create bin/bundle create bin/rails create bin/rake create bin/setup create bin/update create bin/yarn create config create config/routes.rb create config/application.rb create config/environment.rb create config/secrets.yml create config/cable.yml create config/puma.rb create config/spring.rb create config/environments create config/environments/development.rb create config/environments/production.rb create config/environments/test.rb create config/initializers create config/initializers/application_controller_renderer.rb create config/initializers/assets.rb create config/initializers/backtrace_silencers.rb create config/initializers/cookies_serializer.rb create config/initializers/cors.rb create config/initializers/filter_parameter_logging.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/new_framework_defaults_5_1.rb create config/initializers/wrap_parameters.rb create config/locales create config/locales/en.yml create config/boot.rb create config/database.yml create db create db/seeds.rb create lib create lib/tasks create lib/tasks/.keep create lib/assets create lib/assets/.keep create log create log/.keep create public create public/404.html create public/422.html create public/500.html create public/apple-touch-icon-precomposed.png create public/apple-touch-icon.png create public/favicon.ico create public/robots.txt create test/fixtures create test/fixtures/.keep create test/fixtures/files create test/fixtures/files/.keep create test/controllers create test/controllers/.keep create test/mailers create test/mailers/.keep create test/models create test/models/.keep create test/helpers create test/helpers/.keep create test/integration create test/integration/.keep create test/test_helper.rb create test/system create test/system/.keep create test/application_system_test_case.rb create tmp create tmp/.keep create tmp/cache create tmp/cache/assets create vendor create vendor/.keep create package.json remove config/initializers/cors.rb remove config/initializers/new_framework_defaults_5_1.rb run bundle install Ignoring bigdecimal-1.3.3 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.3 Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2 Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0 Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2 Ignoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0 Ignoring nio4r-2.2.0 because its extensions are not built. Try: gem pristine nio4r --version 2.2.0 Ignoring nokogiri-1.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.1 Ignoring openssl-2.1.0 because its extensions are not built. Try: gem pristine openssl --version 2.1.0 Ignoring psych-3.0.2 because its extensions are not built. Try: gem pristine psych --version 3.0.2 Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5 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, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java. Ignoring bigdecimal-1.3.3 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.3 Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2 Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0 Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2 Ignoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0 Ignoring nio4r-2.2.0 because its extensions are not built. Try: gem pristine nio4r --version 2.2.0 Ignoring nokogiri-1.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.1 Ignoring openssl-2.1.0 because its extensions are not built. Try: gem pristine openssl --version 2.1.0 Ignoring psych-3.0.2 because its extensions are not built. Try: gem pristine psych --version 3.0.2 Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5 --- ERROR REPORT TEMPLATE -------------------------------------------------------

Error Report

Questions

Please fill out answers to these questions, it'll help us figure out why things are going wrong.

Backtrace

fatal: incompatible library version - /Users/User_name/.rvm/gems/ruby-2.4.3@global/gems/psych-3.0.2/lib/psych.bundle
  /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/User_name/.rvm/gems/ruby-2.4.3@global/gems/psych-3.0.2/lib/psych.rb:11:in `rescue in <top (required)>'
  /Users/User_name/.rvm/gems/ruby-2.4.3@global/gems/psych-3.0.2/lib/psych.rb:8:in `<top (required)>'
  /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/psyched_yaml.rb:12:in `<top (required)>'
  /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/rubygems_integration.rb:115:in `configuration'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/fetcher.rb:242:in `connection'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/fetcher.rb:85:in `initialize'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:251:in `new'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:251:in `block in fetchers'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:249:in `map'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:249:in `fetchers'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:381:in `block in remote_specs'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/index.rb:11:in `build'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:380:in `remote_specs'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:89:in `specs'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/definition.rb:268:in `block (2 levels) in index'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/definition.rb:266:in `each'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/definition.rb:266:in `block in index'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/index.rb:11:in `build'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/definition.rb:263:in `index'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/definition.rb:257:in `resolve'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/definition.rb:170:in `specs'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/definition.rb:158:in `resolve_remotely!'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/installer.rb:279:in `resolve_if_needed'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/installer.rb:83:in `block in run'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/process_lock.rb:12:in `block in lock'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/process_lock.rb:9:in `open'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/process_lock.rb:9:in `lock'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/installer.rb:72:in `run'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/installer.rb:25:in `install'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/cli/install.rb:65:in `run'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/cli.rb:224:in `block in install'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/settings.rb:136:in `temporary'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/cli.rb:223:in `install'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/exe/bundle:30:in `block in <main>'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
  /Users/User_name/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.1/exe/bundle:22:in `<main>'

Environment

Bundler             1.16.1
  Platforms         ruby, universal-darwin-17
Ruby                2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
  Full Path         /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
  Config Dir        /Library/Ruby/Site
RubyGems            2.5.2
  Gem Home          /Users/User_name/.rvm/gems/ruby-2.4.3
  Gem Path          /Users/User_name/.rvm/gems/ruby-2.4.3:/Users/User_name/.rvm/gems/ruby-2.4.3@global
  User Path         /Users/User_name/.gem/ruby/2.3.0
  Bin Dir           /Users/User_name/.rvm/gems/ruby-2.4.3/bin
OpenSSL
  Compiled          LibreSSL 2.2.7
  Loaded            LibreSSL 2.2.7
  Cert File         /private/etc/ssl/cert.pem
  Cert Dir          /private/etc/ssl/certs
Tools
  Git               2.15.1
  RVM               1.29.3 (latest)
  rbenv             not installed
  chruby            not installed
  rubygems-bundler  (1.4.4)

Bundler Build Metadata

Built At          2017-12-21
Git SHA           0034ef341
Released Version  true

Gemfile

Gemfile

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.5'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '~> 2.13'
  gem 'selenium-webdriver'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

<No /Users/User_name/Documents/Studies/Coursera/Ruby/my_first_app/my_first_app/Gemfile.lock found>

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error: https://github.com/bundler/bundler/search?q=incompatible+library+version+-+%2FUsers%2FUser_name%2F.rvm%2Fgems%2Fruby-2.4.3%40global%2Fgems%2Fpsych-3.0.2%2Flib%2Fpsych.bundle&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at: https://github.com/bundler/bundler/issues/new run bundle exec spring binstub --all Ignoring bigdecimal-1.3.3 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.3 bundler: command not found: spring Install missing gem executables with bundle install User_names-Air:my_first_app User_name$ run bundle exec speing binstub --all -bash: run: command not found User_names-Air:my_first_app User_name$ bundle install Could not locate Gemfile User_names-Air:my_first_app User_name$ rails --version Ignoring bigdecimal-1.3.3 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.3 Ignoring nokogiri-1.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.1 Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2 Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0 Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2 Ignoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0 Ignoring nio4r-2.2.0 because its extensions are not built. Try: gem pristine nio4r --version 2.2.0 Ignoring openssl-2.1.0 because its extensions are not built. Try: gem pristine openssl --version 2.1.0 Ignoring psych-3.0.2 because its extensions are not built. Try: gem pristine psych --version 3.0.2 Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5 Rails 5.1.5

colby-swandale commented 6 years ago

This is not a Bundler issue, you need to check your ruby environment, you're loading gem extensions that were built for another version of Ruby. I suggest checking out the bundle pristine command and making sure that you're installing your gems in the same version of ruby that you're using to run bundle exec.

haroutp commented 6 years ago

Thank you @colby-swandale , That helped.