[英]Using bitcoin trezor's ssh agent
我正在嘗試使用硬件錢包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沒有任何經驗。 我刪除了大部分的編譯日志
該錯誤信息非常清楚。
libusb.h:沒有這樣的文件或目錄
該軟件包具有pip可以解決的依賴性。 您需要先安裝libusb。
apt-get install libusb-1.0-0-dev
每次收到此類消息時,都沒有此類文件或目錄,您可以檢查所需安裝的文件或目錄
dpkg -S 'missing_file"
要么
apt-file list "missing_file"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.