Problem with Linux libraries

There are essentially TWO parts to the YUN.
First being the Linux side and the other being the MCU side.
One talks to the other via what it termed a bridge.

Sounds like you need to set up the MCU side first as that is where most libs get compiled to.
Then you can add the commands to the sketch to talk through the bridge to the linux side.