zoukankan      html  css  js  c++  java
  • rails 5.2 启动警告 warning: previous definition of VERSION was here和bootsnap

    bootsnap依赖问题

    1 You should add gem 'bootsnap' to your gemfile to install it or remove the line require 'bootsnap/setup' in config/boot.rb

    or

    1 using rails new myapp --skip-bootsnap
    1 If the app doesn’t contain the bootsnap gem already then we will need to add it manually since rails app:update task adds the bootsnap/setup line to boot.rb regardless of its presence in the Gemfile.

    or

    1 https://blog.bigbinary.com/2018/01/01/rails-5-2-adds-bootsnap-to-the-app-to-speed-up-boot-time.html

    warning: previous definition of VERSION was here

    1 https://github.com/ruby/fileutils/issues/22
     1 Ran into this, and the solution here works: https://stackoverflow.com/questions/51334732/rails-5-2-0-with-ruby-2-5-1-console-warning-already-initialized-constant
     2 
     3 I understand 1.0.2 stays installed as the default, 1.1.0 being installed too. Hence the issue.
     4 
     5 When installed automatically, I get the warnings. Following command shows (new rails app, 2.5.1) :
     6 
     7 gem list | grep fileutils
     8 fileutils (1.1.0, default: 1.0.2)
     9 
    10 Then doing:
    11 
    12 gem uninstall fileutils
    13 gem update fileutils --default
    14 
    15 makes the warnings disappear. And btw, it shows:
    16 
    17 gem list | grep fileutils
    18 fileutils (default: 1.1.0, default: 1.0.2)
    19 
    20 Hope it will help fixing this annoyance. Sorry I cannot be of more help, not really a wizard with those versioning topics!
  • 相关阅读:
    寻找道路
    联合权值
    二分图
    最优贸易
    读入优化
    专属空间五——新世界(新闻浏览功能)中
    专属空间四——新世界(新闻浏览功能)上
    专属空间三——文件管理器
    专属空间二-记账本的实现
    专属空间一-主界面设计
  • 原文地址:https://www.cnblogs.com/or2-/p/9929299.html
Copyright © 2011-2022 走看看