ruby / snap.ruby

Ruby snap
30 stars 5 forks source link

Failed to install gem #15

Closed Marco-Sulla closed 5 years ago

Marco-Sulla commented 5 years ago

This is what I've done:

$ sudo snap install ruby --classic
$ sudo gem install htmlbeautifier

Result:

ERROR:  While executing gem ... (ArgumentError)
    "\x00\x00\x00\x000\x02" is not an octal string

I uninstalled the snap and installed ruby with apt and I had no problem to install htmlbeautifier

znz commented 5 years ago

I can't reproduce.

vagrant@vagrant:~$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
vagrant@vagrant:~$ which ruby
/snap/bin/ruby
vagrant@vagrant:~$ sudo gem install htmlbeautifier
Fetching htmlbeautifier-1.3.1.gem
Successfully installed htmlbeautifier-1.3.1
Parsing documentation for htmlbeautifier-1.3.1
Installing ri documentation for htmlbeautifier-1.3.1
Done installing documentation for htmlbeautifier after 0 seconds
1 gem installed
vagrant@vagrant:~$ ruby -r htmlbeautifier -e 0
vagrant@vagrant:~$ gem list | grep htmlbeautifier
htmlbeautifier (1.3.1)
hsbt commented 5 years ago

@znz Thanks for your confirmation.

@Marco-Sulla Can you file the details of your environment and version of htmlbeautifier?

Marco-Sulla commented 5 years ago

The bug is disappeared, probably it was a bug of the gem. Anyway, I need it for Atom, and now I use Sublime :D