Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

oily_png ruby gem installation error

I'm getting an error upon installing of oily_png gems. Ruby is already installed my system. I'm on Windows 7 - 64 bit.

C:\Users\jitendra>gem install oily_png
Fetching: oily_png-1.0.2.gem (100%)
ERROR:  Error installing oily_png:
        The 'oily_png' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

enter image description here

like image 292
Jitendra Vyas Avatar asked Jan 23 '26 11:01

Jitendra Vyas


1 Answers

OilyPNG is written in C and therefore has to be compiled. You need to have a compiler installed and set up properly so that Ruby/Rubygems can find it in order to install the gem.

It is possible to release a gem with a Windows binary, so that compilation is not needed on Windows machines. Unfortunately, because I don't have a Windows machine nor do I have Windows development experience, I am not able to to this. (Pull requests are accepted though :)

My advice is to follow the advice Rubygems gave you:

Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

like image 187
wvanbergen Avatar answered Jan 26 '26 02:01

wvanbergen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!