我正在尝试使用硬件钱包trezor.io作为 ssh 协议的登录代理,这是一个很酷的想法。
根据他们的做法
http://doc.satoshilabs.com/trezor-apps/sshagent.html
我正在尝试继续安装:
$ sudo pip install trezor_agent
但它失败了:
hidapi/libusb/hid.c:47:20: fatal error: libusb.h: No such file or directory
#include <libusb.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
^
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python2.7 -c hidapi/libusb/hid.c -o build/temp.linux-x86_64-2.7/hidapi/libusb/hid.o
hidapi/libusb/hid.c:47:20: fatal error: libusb.h: No such file or directory
#include <libusb.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 23: ordinal not in range(128)
我正在使用 ubuntu 14 lts 并且没有使用 python 的经验。我删除了大部分编译日志