my first test gave me positive results on arduino 1. The same code don't work on arduino yun. I have to realize this project for the university and I have only two days to complete it .
I think that the code is broken here:
Serial.print(gyro.getX());
Do you mean the Arduino Uno? If so, there are some differences between the Uno's '328P processor, and the Yun's '32U4.
The library appears to use the Wire library, which uses I2C to talk over the SDA and SCL pins. That is one of the differences between the two processors: the I2C pins have moved.
On the Uno, the I2C pins are on A4 and A5, while on the Yun they are on pins D2 and D3. You will need to change your hardware to connect to these pins.