After you have upgraded.... then the main error is that there is library missing so it won't compile...
../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or directory
#include <libudev.h>
^
so you need to do
sudo apt-get update && sudo apt-get install libudev-dev
then retry the install