Electrum

安裝電子產品時遇到問題,找不到 libsecp256k1

  • September 5, 2019

我無法從源頭執行電子。

似乎我需要安裝 libsecp256k1(但我安裝了比特幣核心 v.18,所以我認為我已經有了它)。Electrum 有關於此的文件:https ://github.com/spesmilo/electrum-docs/blob/master/libsecp256k1-linux.rst#1-using-package-manager 。但是這個命令在 linux mint 上找不到任何東西???

Traceback (most recent call last):
 File "run_electrum", line 80, in <module>
   from electrum.logging import get_logger, configure_logging
 File "/home/zach/electrum/electrum/electrum/__init__.py", line 3, in <module>
   from .wallet import Wallet
 File "/home/zach/electrum/electrum/electrum/wallet.py", line 50, in <module>
   from .simple_config import get_config
 File "/home/zach/electrum/electrum/electrum/simple_config.py", line 13, in <module>
   from . import constants
 File "/home/zach/electrum/electrum/electrum/constants.py", line 30, in <module>
   from . import bitcoin
 File "/home/zach/electrum/electrum/electrum/bitcoin.py", line 34, in <module>
   from . import ecc
 File "/home/zach/electrum/electrum/electrum/ecc.py", line 45, in <module>
   do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1()
 File "/home/zach/electrum/electrum/electrum/ecc_fast.py", line 189, in do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1
   raise Exception('libsecp256k1 library not available. '
Exception: libsecp256k1 library not available. Verifying Lightning channels is too computationally expensive without libsecp256k1, aborting.`

比特幣核心不安裝 libsecp256k1。它被打包到二進製文件本身中,因此不會安裝到系統中。如果 libsecp256k1 在系統的包管理器中不可用(它可能不應該因為它不是官方分發的 AFAIK),你可以從 source安裝它。相關說明直接在自述文件中。

在 github 上提供了有關此問題的此連結:

<https://github.com/spesmilo/electrum-docs/blob/master/libsecp256k1-linux.rst>

引用自:https://bitcoin.stackexchange.com/questions/90179