Error installing Nokogiri 1.5.0 with rails 3.1.0 and ubuntu

前端 未结 8 1388
[愿得一人]
[愿得一人] 2020-11-29 03:38

Here is the error running bundle install vendor/gems on server:

Installing nokogiri (1.5.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR         


        
8条回答
  •  情书的邮戳
    2020-11-29 03:46

    When I used this code I got another error:

    ERROR:  Error installing disposable:
        invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /home/admin/.rvm/gems/ruby-2.1.3@lol/cache/nokogiri-1.6.4.1.gem
    

    I tried many different solutions, but helped med:

    $ rm /home/admin/.rvm/gems/ruby-2.1.3@lol/cache/nokogiri-1.6.4.1.gem
    $ gem update
    $ gem install nokogiri
    

    Other commands that can help:

    sudo apt-get install synaptic
    sudo apt-get update
    sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
    sudo apt-get install build-essential
    sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev
    

提交回复
热议问题