IR Remote with Arduino Yun

I am new to using Arduino and am trying to figure out how to use an IR remote with it. I

I installed this IR Remote library: https://github.com/shirriff/Arduino-IRremote

I decided to try following the simple code from here: http://blog.whatgeek.com.pt/arduino/keyes-ir-remote-sensor/

The code is:

#include <IRremote.h> //include the library
//PIN
int receiver = 11;
IRrecv irrecv(receiver); //create a new instance of receiver
decode_results results;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  irrecv.enableIRIn(); //start the receiver
}

void loop() {
  // put your main code here, to run repeatedly:
  if (irrecv.decode(&results)) { //we have received an IR
    Serial.println (results.value, HEX); //display HEX
    irrecv.resume(); //next value
  }
}

The error code I get when I am compiling it is:

/Applications/Arduino.app/Contents/Java/libraries/RobotIRremote/src/IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
 int RECV_PIN = TKD2; // the pin the IR receiver is connected to
                ^
Error compiling.

I am not sure what to do at this point.

that library worked for me

try inserting it in C:\Users\xxx\Documents\Arduino\libraries

and restarting the IDE

Tip: start with the examples provided withthe library -available thru the IDE menu. Then progress to more complex projects.

Also, check out IRLib which is better.