Skip to content

nokogiri setup problem in Ubuntu 20.04 #23

@marksvc

Description

@marksvc

In Ubuntu 20.04, I have problems in setup:

$ bundle install
[ doing things successfully, until ]
Fetching nokogiri 1.8.2                                                                                                                                                                 
/var/lib/gems/3.0.0/gems/bundler-1.16.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.                                      
ArgumentError: wrong number of arguments (given 2, expected 1)                                                                                                                          
An error occurred while installing nokogiri (1.8.2), and Bundler cannot continue.                                                                                                       
Make sure that `gem install nokogiri -v '1.8.2' --source 'http://rubygems.org/'` succeeds before bundling.                                                                              
                                                                                                                                                                                        
In Gemfile:                                                                                                                                                                             
  nokogiri-pretty was resolved to 0.1.0, which depends on                                                                                                                               
    nokogiri          
$ sudo gem install nokogiri -v '1.8.2' --source 'http://rubygems.org/'                                                                                                                  
Building native extensions. This could take a while...                                                                                                                                  
ERROR:  Error installing nokogiri:                                                                                                                                                      
        ERROR: Failed to build gem native extension.                                                                                                                                    
                                                                                                                                                                                        
[A bunch of compilation errors]
make: *** [Makefile:245: xml_document.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/3.0.0/gems/nokogiri-1.8.2 for inspection.
Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/nokogiri-1.8.2/gem_make.out

Is there something new that needs to be done to set up in Ubuntu 20.04?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions