zaterdag 7 september 2013

configure error libusb headers missing

I got the below error while trying to build libnfc on a mac running mountain lion.

configure: error: The libusb headers are missing

I first checked if libusb what installed with macports. That was OK so I kept looking. Turned out I needed the libusb-legacy package instead.

sudo port install libusb-legacy

woensdag 4 september 2013

raspberry pi apt-get illegal instruction

After an apt-get dist-upgrade attempt all apt-get calls on a raspberry pi with official raspbian distro returned an unhealthy illegal instruction response.

A quick look at my /etc/apt/sources.list showed that I specified a non raspbian source there. So I had to get the apt files back from as deb packages and install them again.

The commands, make sure to check the given url for the proper releases.


sudo dpkg -i apt_0.9.7.8+rpi1_armhf.deb libapt-pkg4.12_0.9.7.8+rpi1_armhf.deb