ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Rails 번들 설치시 오류 발생
    카테고리 없음 2020. 8. 16. 15:20

    질문

    json (1.8.6)을 설치하는 동안 오류가 발생하여 Bundler를 계속할 수 없습니다.번들링하기 전에 gem install json -v '1.8.6'이 성공했는지 확인하세요.

    Gemfile에서 :

    rails는 4.2.6으로 해결되었습니다.

    actionmailer was resolved to 4.2.6, which depends on
      actionpack was resolved to 4.2.6, which depends on
        actionview was resolved to 4.2.6, which depends on
          rails-dom-testing was resolved to 1.0.9, which depends on
            rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
              activesupport was resolved to 4.2.6, which depends on
                json

    Gem :: Ext :: BuildError : ERROR : gem 기본 확장을 빌드하지 못했습니다.

    current directory: /tmp/bundler20180201-46774-s2jlm4json-1.8.6/gems/json-1.8.6/ext/json/ext/generator
    /usr/bin/ruby2.3 -r ./siteconf20180201-46774-16pojxx.rb extconf.rb
    mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

    이것은 무엇을 의미하고 그것을 수정하는 방법 이미 업데이트 및 업그레이드 방법을 시도했지만 특정 종속성을 제거하는 다른 방법이 있습니다.


    답변1

    필요한 경우 소스 목록을 업데이트하십시오. 그렇지 않으면 최근에 설치된 대부분의 파일을 제거한 다음 처음부터 새로 설치하십시오.필요한 경우 각 보관 패키지를 별도로 설치했습니다.

    sudo apt-get uprade 

    또한 작동합니다.



    답변2

    이 시도:

    bundle update

    번 들러 오류의 경우

    gem install bundler  #After that run below command too.
    
    bundle install


     

     

     

     

    출처 : https://stackoverflow.com/questions/48565750/giving-error-on-rails-bundle-install

    댓글

Designed by Tistory.