Can't program the Yun via WiFi

Hello, I am wondering if someone can help.
Problem: after setting up the Yun, I am trying to program via WiFi. Under "Port" I can see that the Yun is on the WiFi network as it shows up "Arduino at 192.168.178.5 (Arduino Yun)"
But when trying to upload the sketch it will complain:
"
avrdude: '/usr/lib/libusb-0.1.so.4' is not an ELF file
avrdude: can't load library 'libusb-0.1.so.4'
"
Yes, the Yun is on the network as I can access it through "arduino.local" webpanel etc. Everythings seems OK. The Yun also works when using the USB Port. But it always refuses to upload via WiFI. I am using 1.5.4. I have tried to reboot etc but I get always the same error message ...
Thanks,
Joe

Hi joenj14, which linux distribution are you using? Have you downloaded the IDE from the Arduino website or installed it through the package manager of your linux?

Hi Frederico,
I am using the IDE from the Arduino Web-Site Vers. 1.5.4 running on OSX. Linux Version running on the Yun is 3.8.3 GNU/Linux. Thanks, Joe

It looks like an IDE issue but I can't figure out how your loading an .so file (which is a linux library) with avrdude running on a mac. cmaglie?

joenj14 is uploading via wifi, what you are seeing is probably the output from linino.
Seems like the libusb in linino was corrupted in some way, but I can't explain why. Maybe replacing it with a fresh copy may solve the problem?