What is the specific error?
If the problem is related to libray/ies avr dependencies as seems to be the case at
then it is a hard one. Most of the avr dependencies have not been solved yet in the Intel Galileo environment/hardware.
Yes the issue is it says avr.h not found. I don't know what to do, but the Arduino library I am using is here:The Mind of Bill Porter.
Sorry to know about that. The only suggestion I've heard about it: "you should make your own library/adapt this library to Intel Galileo". And none of those options seem to be simple. My suggestion: use Arduino unless you find a working library.