Skip to content

Instantly share code, notes, and snippets.

@nl5887
Created December 19, 2014 23:25
Show Gist options
  • Select an option

  • Save nl5887/87d92199550be6160884 to your computer and use it in GitHub Desktop.

Select an option

Save nl5887/87d92199550be6160884 to your computer and use it in GitHub Desktop.
Workaround for unable to convert "\xCA" issue
sh-3.2# export LC_CTYPE="utf-8"
sh-3.2# gem install nokogiri -v '1.6.5'
Building native extensions. This could take a while...
Successfully installed nokogiri-1.6.5
Parsing documentation for nokogiri-1.6.5
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/nokogiri/nokogiri.bundle, skipping
1 gem installed
-----
This will skip the generation of docs, and suppress the error:
sh-3.2# vim ~/.gemrc
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
-----
sh-3.2# gem install nokogiri -v '1.6.5' -f
Building native extensions. This could take a while...
Successfully installed nokogiri-1.6.5
1 gem installed
@jonnyijapan
Copy link
Copy Markdown

I got this on os x yosemite:

mjgmbp:workspace me$ sudo gem install nokogiri
Password:
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.6.2
Parsing documentation for nokogiri-1.6.6.2
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/nokogiri/nokogiri.bundle, skipping
1 gem installed
mjgmbp:workspace me$ 

@jaimeguzman
Copy link
Copy Markdown

Hi there, do you solve this ? I have the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment