Suivi — Administration système Exceptions lors de la création d'un environnement de développement

#1762 Posté par  (site web personnel, Mastodon) . État de l’entrée : corrigée. Assigné à Bruno Michel. Licence CC By‑SA.
Étiquettes :
1
28
oct.
2017

Hello,

Ça fait quelques jours que j'essaie de monter un environnement de développement sur ma machine Debian Buster (j'ai testé aussi sur une machine virtuelle Debian Stretch).

Je suis les étapes du Readme pour configurer l'environnement: j'ai été capable d'installer les paquets nécessaires et de faire l'installation de ruby par mon utilisateur.

J'ai pu installer la Gem "bundler" et lancer l'installation des gems avec bundle install sans problème.

Pour info, les logs de ces étapes:

adrien@bureau-ado:~/code/linuxfr.org$ rvm reinstall ruby-2.4.1
ruby-2.4.1 - #removing src/ruby-2.4.1..
ruby-2.4.1 - #removing rubies/ruby-2.4.1..
Searching for binary rubies, this might take some time.
No binary rubies available for: debian/9/x86_64/ruby-2.4.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for debian.
Requirements installation successful.
Installing Ruby from source to: /home/adrien/.rvm/rubies/ruby-2.4.1, this may take a while depending on your cpu(s)...
ruby-2.4.1 - #downloading ruby-2.4.1, this may take a while depending on your connection...
ruby-2.4.1 - #extracting ruby-2.4.1 to /home/adrien/.rvm/src/ruby-2.4.1....
ruby-2.4.1 - #applying patch /home/adrien/.rvm/patches/ruby/2.4.1/random_c_using_NR_prefix.patch.
ruby-2.4.1 - #configuring..................................................................
ruby-2.4.1 - #post-configuration..
ruby-2.4.1 - #compiling................................................................................
ruby-2.4.1 - #installing...........
ruby-2.4.1 - #making binaries executable..
ruby-2.4.1 - #downloading rubygems-2.6.14
ruby-2.4.1 - #extracting rubygems-2.6.14.....
ruby-2.4.1 - #removing old rubygems.........
ruby-2.4.1 - #installing rubygems-2.6.14...........................
ruby-2.4.1 - #gemset created /home/adrien/.rvm/gems/ruby-2.4.1@global
ruby-2.4.1 - #importing gemset /home/adrien/.rvm/gemsets/global.gems...............................................
ruby-2.4.1 - #generating global wrappers........
ruby-2.4.1 - #gemset created /home/adrien/.rvm/gems/ruby-2.4.1
ruby-2.4.1 - #importing gemsetfile /home/adrien/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.4.1 - #generating default wrappers........
ruby-2.4.1 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.4.1 - #complete 
Ruby was built without documentation, to build it run: rvm docs generate-ri
Making gemset ruby-2.4.1 pristine.................................................................
Making gemset ruby-2.4.1@global pristine...................................................................
adrien@bureau-ado:~/code/linuxfr.org$ gem install bundler
Successfully installed bundler-1.15.4
Parsing documentation for bundler-1.15.4
Done installing documentation for bundler after 5 seconds
1 gem installed
adrien@bureau-ado:~/code/linuxfr.org$ bundle install
The latest bundler is 1.16.0.pre.3, but you are currently running 1.15.4.
To update, run `gem install bundler --pre`
Using rake 10.5.0
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile 0.6.2
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using addressable 2.3.8
Using ansi 1.5.0
Using bcrypt 3.1.10
Using coderay 1.1.0
Using debug_inspector 0.0.2
Using bitfields 0.5.2
Using boson 1.3.0
Using bundler 1.15.4
Using columnize 0.9.0
Using canable 0.3.0
Using highline 1.7.8
Using net-ssh 4.0.0
Using json 2.0.3
Using coffee-script-source 1.9.1
Using execjs 2.5.0
Using thor 0.19.4
Using concurrent-ruby 1.0.4
Using crass 1.0.2
Using daemons 1.2.4
Using database_cleaner 1.4.1
Using orm_adapter 0.5.0
Using diff-lcs 1.2.5
Using diff_match_patch 0.0.1 from https://github.com/nono/diff_match_patch-ruby.git (at master@acb4147)
Using escape_utils 1.2.1
Using eventmachine 1.2.1
Using ffi 1.9.14
Using rspec-support 3.2.2
Using ruby-progressbar 1.7.5
Using gctools 0.2.4
Using tilt 2.0.5
Using hiredis 0.6.0
Using patron 0.8.0
Using multi_json 1.12.1
Using redcarpet 3.4.0
Using htmlentities 4.3.4
Using kgio 2.11.0
Using libv8 3.16.14.7 (x86_64-linux)
Using method_source 0.8.2
Using subexec 0.2.3
Using mysql2 0.4.5
Using slop 3.6.0
Using raindrops 0.17.0
Using redis 3.3.2
Using ref 1.0.5
Using rinku 1.7.3
Using sass 3.4.22
Using sitemap_generator 2.2.1
Using spring 1.3.4
Using state_machine 1.2.0
Using sushi 0.0.4
Using tzinfo 1.2.3
Using nokogiri 1.6.5
Using rack-test 0.6.3
Using warden 1.2.3
Using mime-types 3.1
Using launchy 2.4.3
Using better_errors 2.1.1
Using binding_of_caller 0.7.2
Using mo 1.4.0
Using byebug 4.0.5
Using net-scp 1.2.1
Using net-sftp 2.1.2
Using net-ssh-gateway 1.2.0
Using coffee-script 2.4.1
Using uglifier 2.7.1
Using sprockets 3.7.1
Using thin 1.7.0
Using ffi-hunspell 0.3.1 from https://github.com/postmodern/ffi-hunspell.git (at master@c5c98da)
Using rspec-core 3.2.3
Using rspec-expectations 3.2.1
Using rspec-mocks 3.2.1
Using haml 4.0.7
Using pygments.rb 1.1.2
Using mini_magick 3.8.1
Using pry 0.10.1
Using unicorn 5.2.0
Using redis-store 1.1.7
Using therubyracer 0.12.2
Using activesupport 4.2.8
Using loofah 2.0.3
Using xpath 2.0.0
Using nokogumbo 1.4.10
Using html_truncator 0.4.1
Using mail 2.6.6
Using letter_opener 1.3.0
Using capistrano 2.15.9 from https://github.com/capistrano/capistrano.git (at legacy-v2@08a82f3)
Using html_spellchecker 0.1.8
Using rspec 3.2.0
Using pry-rails 0.3.4
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.8
Using factory_girl 2.6.4
Using redis-activesupport 4.1.5
Using rails-html-sanitizer 1.0.3
Using capybara 2.4.4
Using sanitize 4.4.0
Using capistrano-maintenance 0.0.4
Using fuubar 2.0.0
Using rails-dom-testing 1.0.8
Using activejob 4.2.8
Using activerecord 4.2.8
Using carrierwave 0.10.0
Using html-pipeline-linuxfr 0.14.28
Using actionview 4.2.8
Using acts_as_list 0.6.0
Using annotate 2.6.8
Using friendly_id 5.1.0
Using actionpack 4.2.8
Using actionmailer 4.2.8
Using actionpack-page_caching 1.0.2
Using railties 4.2.8
Using sprockets-rails 3.2.0
Using has_scope 0.6.0
Using kaminari 0.16.3
Using coffee-rails 4.1.0
Using responders 2.1.0
Using doorkeeper 2.1.4
Using factory_girl_rails 1.7.0
Using jquery-rails 4.0.4
Using quiet_assets 1.1.0
Using rspec-rails 3.2.1
Using rails 4.2.8
Using sass-rails 5.0.6
Using web-console 2.2.1
Using devise 3.4.1
Using inherited_resources 1.6.0
Using french_rails 0.3.0
Bundle complete! 55 Gemfile dependencies, 138 gems now installed.
Bundled gems are installed into ./vendor.

Je suis maintenant bloqué à l'étape de configuration de la base de donnée mariadb/mysql avec les exceptions suivantes:

adrien@bureau-ado:~/code/linuxfr.org$ bin/rake db:setup
Array values in the parameter to `Gem.paths=` are deprecated.
Please use a String or nil.
An Array ({"GEM_PATH"=>["/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0", "/home/adrien/.rvm/gems/ruby-2.4.1", "/home/adrien/.rvm/gems/ruby-2.4.1@global"]}) was passed in from bin/rake:3:in `load'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21: warning: constant ::Fixnum is deprecated
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:85:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'coffee-rails'.
Gem Load Error is: wrong argument type Class (expected Module)
Backtrace for gem load error is:
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in `include'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in `block (2 levels) in <top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:22:in `class_eval'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:22:in `block in <top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21:in `each'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21:in `<top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8.rb:22:in `<top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/ruby_racer_runtime.rb:108:in `available?'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:53:in `each'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:53:in `find'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:53:in `best_available'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:47:in `autodetect'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs.rb:5:in `<module:ExecJS>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs.rb:4:in `<top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `<top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/coffee-script-2.4.1/lib/coffee-script.rb:1:in `<top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/coffee-rails-4.1.0/lib/coffee-rails.rb:1:in `<top (required)>'
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `require'
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `each'
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `block in require'
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `each'
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `require'
/home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler.rb:108:in `require'
/home/adrien/code/linuxfr.org/config/application.rb:6:in `<top (required)>'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `require'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `preload'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:143:in `serve'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:131:in `block in run'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `loop'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `run'
/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application/boot.rb:18:in `<top (required)>'
/home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-e:1:in `<main>'
Bundler Error Backtrace:
 (Bundler::GemRequireError)
    from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
    from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `each'
    from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `block in require'
    from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `each'
    from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `require'
    from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler.rb:108:in `require'
    from /home/adrien/code/linuxfr.org/config/application.rb:6:in `<top (required)>'
    from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `require'
    from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `preload'
    from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:143:in `serve'
    from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:131:in `block in run'
    from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `loop'
    from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `run'
    from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application/boot.rb:18:in `<top (required)>'
    from /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from -e:1:in `<main>'

Est-ce que vous auriez une piste pour m'aide à débloquer cette situation ? Faut-il adapter le code actuel aux versions de Gems récupérées et/ou à ruby 2.4.1 ?

  • # Et maintenant ?

    Posté par  (site web personnel) . Évalué à 3 (+0/-0).

    Je viens de pusher ce commit : https://github.com/linuxfrorg/linuxfr.org/commit/1329455941e5b5481547d0eecb944dc5779ee2b0. Est-ce que ça marche mieux ?

    • [^] # Re: Et maintenant ?

      Posté par  (site web personnel, Mastodon) . Évalué à 3 (+0/-0).

      Ça va un peu mieux, mais l'exception est toujours là:

      adrien@bureau-ado:~/code/linuxfr.org$ bin/rake db:setup
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21: warning: constant ::Fixnum is deprecated
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:85:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'coffee-rails'.
      Gem Load Error is: wrong argument type Class (expected Module)
      Backtrace for gem load error is:
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in `include'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in `block (2 levels) in <top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:22:in `class_eval'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:22:in `block in <top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21:in `each'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21:in `<top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/therubyracer-0.12.2/lib/v8.rb:22:in `<top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/ruby_racer_runtime.rb:108:in `available?'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:53:in `each'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:53:in `find'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:53:in `best_available'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs/runtimes.rb:47:in `autodetect'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs.rb:5:in `<module:ExecJS>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/execjs-2.5.0/lib/execjs.rb:4:in `<top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `<top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/coffee-script-2.4.1/lib/coffee-script.rb:1:in `<top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/coffee-rails-4.1.0/lib/coffee-rails.rb:1:in `<top (required)>'
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `require'
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `each'
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `block in require'
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `each'
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `require'
      /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler.rb:108:in `require'
      /home/adrien/code/linuxfr.org/config/application.rb:6:in `<top (required)>'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `require'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `preload'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:143:in `serve'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:131:in `block in run'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `loop'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `run'
      /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application/boot.rb:18:in `<top (required)>'
      /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      -e:1:in `<main>'
      Bundler Error Backtrace:
       (Bundler::GemRequireError)
          from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
          from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `each'
          from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `block in require'
          from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `each'
          from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler/runtime.rb:66:in `require'
          from /home/adrien/.rvm/gems/ruby-2.4.1/gems/bundler-1.15.4/lib/bundler.rb:108:in `require'
          from /home/adrien/code/linuxfr.org/config/application.rb:6:in `<top (required)>'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `require'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:82:in `preload'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:143:in `serve'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:131:in `block in run'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `loop'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application.rb:125:in `run'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/application/boot.rb:18:in `<top (required)>'
          from /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from -e:1:in `<main>'
      

      Ah, cette fois-ci, j'ai trouvé le coupable: au début je pensais que c'était coffee-rails, mais comme indiqué dans leur rapport de bug, c'est en fait therubyracer qui doit être en version 0.12.3 pour avoir le support de Ruby 2.4.0.

      Je viens de faire un pull request sur la branche before-redesign pour appliquer cette modification au Gemfile et au Gemfile.lock: https://github.com/linuxfrorg/linuxfr.org/pull/215

      Maintenant, cette exception n'est plus levée, mais la commande bin/rake db:setup tourne dans le vide.
      Quand je l'arrête manuellement, il me donne ces informations:

      adrien@bureau-ado:~/code/linuxfr.org$ bin/rake db:setup
      ^C/home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/client/run.rb:99:in `gets': Interrupt
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/client/run.rb:99:in `verify_server_version'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/client/run.rb:56:in `run'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/client/run.rb:37:in `warm_run'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/client/run.rb:26:in `call'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/client/command.rb:7:in `call'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/client.rb:26:in `run'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/bin/spring:48:in `<top (required)>'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/binstub.rb:11:in `load'
          from /home/adrien/code/linuxfr.org/vendor/ruby/2.4.0/gems/spring-1.3.4/lib/spring/binstub.rb:11:in `<top (required)>'
          from /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from /home/adrien/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from /home/adrien/code/linuxfr.org/bin/spring:13:in `<top (required)>'
          from bin/rake:3:in `load'
          from bin/rake:3:in `<main>'
      
      • [^] # Re: Et maintenant ?

        Posté par  (site web personnel) . Évalué à 3 (+0/-0).

        Je viens de faire un pull request sur la branche before-redesign pour appliquer cette modification au Gemfile et au Gemfile.lock: https://github.com/linuxfrorg/linuxfr.org/pull/215

        Merci, c'est intégré.

        Maintenant, cette exception n'est plus levée, mais la commande bin/rake db:setup tourne dans le vide.

        Je ne suis pas encore passé à Ruby 2.4 et il y a des changements visiblement assez importants qui nécessitent de mettre à jour quelques gems. Ici, ça a l'air d'être spring. J'ai fait cette mise à jour : https://github.com/linuxfrorg/linuxfr.org/commit/2f07cba9558cc4acf77e90ace7e7ed7fb7eaa320. Pour l'appliquer, il faut faire bin/spring stop ; git pull origin before-redesign && bundle.

        • [^] # Re: Et maintenant ?

          Posté par  (site web personnel, Mastodon) . Évalué à 2 (+0/-0).

          Chouette, ça a marché, merci !

          Désolé pour le dérangement avec cette nouvelle version de Ruby…
          Il faudrait peut-être modifier le fichier README pour ne pas conseiller d'installer la version stable de Ruby, mais plutôt une version exacte ?

          • [^] # Re: Et maintenant ?

            Posté par  (site web personnel) . Évalué à 3 (+0/-0).

            Désolé pour le dérangement avec cette nouvelle version de Ruby…

            Pas de soucis, merci à toi d'avoir essuyé les plâtres !

            Il faudrait peut-être modifier le fichier README pour ne pas conseiller d'installer la version stable de Ruby, mais plutôt une version exacte ?

            Il y a malheureusement pas mal de petits points plus très à jour dans le README. Ce n'est pas facile de savoir lesquels sans refaire une installation depuis zéro. Ça fait déjà plusieurs fois que je me fais la remarque que je devrais me refaire une installation depuis zéro de temps en temps (disons une fois par an pour que ça ne soit pas trop difficile) et en profiter pour mettre à jour le README, mais pour le moment, je ne l'ai toujours pas fait.

Envoyer un commentaire

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.