我想在 VirtualBox 内的虚拟机上维护 BTC 节点/钱包。为此,我手动安装了 Arch Linux。这个过程并不是最顺利的,但我最终还是成功了。然后我用了本指南安装耶, 成功地。
我继续尝试安装比特币核心通过运行yay -Sa bitcoin-core --answerclean y --answerdiff n
。
安装需要很长时间并且最终会失败。经过很多行开头后,CXX
我得到了这些行:
==> Starting check()...
-> Testing ...
Making check in src
make[1]: Entering directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0/src'
make[2]: Entering directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0/src'
make[3]: Entering directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0'
make[3]: Leaving directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0'
make check-TESTS check-local
...
make[4]: Entering directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0/src'
==================================================================================
Running tests: arith_uint256_tests from test/arith_uint256_tests.cpp
Running 11 test cases...
Entering test module "Bitcoin Core Test Suite"
test/arith_uint356_tests.cpp(18): Entering test suite "arith_uint256_tests"
test/arith_uint256_tests.cpp(68(: Entering test case "basics"
2021-04-12T19:57:00 Seed: Setting random seed for current tests to RANDOM_CTX_SEED=........
2021-04-12T19:57:00 [test] Bitcoin Core version v0.21.0.0-d79e0e2 (release build)
2021-04-12T19:57:00 [test] Assuming ancestors of block .....................
unknown location(0): fatal error: in "arith_uint356_tests/basics": std::runtime_error: locale::facet::_S_create_c_locale name not valid
test/arith_uint256_tests.cpp(68): last checkpoint: "basics" fiture ctor
test/arith_uint256_tests.cpp(68): Leaving test case "basics"; testing time 789us
test/arith_uint256_tests.cpp(157): Entering test case "shifts"
test_bitcoin: util/system.cpp:519: void ArgsManager::AddArg(const string&, const string&, unsighed int, const OptionsCategory&): Assertion 'ret.second' failed.
make[3]: *** [Makefile:21241: test/aerith_uint256_tests.cpp.test] Error 1
make[3]: Leaving directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0/src'
make[2]: *** [Makefile:19663: test/aerith_uint256_tests.cpp.test] Error 1
make[2]: Leaving directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0/src'
make[1]: *** [Makefile:19348: test/aerith_uint256_tests.cpp.test] Error 1
make[1]: Leaving directory '/home/user/.cache/yay/bitcoin-core/src/bitcoin-0.21.0/src'
make: *** [Makefile:803: check-recursive] Error 1
==> ERROR: A failure occurred in check().
Aborting...
相关线路似乎是unknown location(0): fatal error: in "arith_uint356_tests/basics": std::runtime_error: locale::facet::_S_create_c_locale name not valid
.
我发现的唯一类似问题来自这个问题这个解决方案是有道理的。然而,我的内容/etc/locale.conf
是:
LANG=en_US.UTF-8
我locale-gen
之前也运行过并将其编辑/etc/locale.gen
为仅处于en_US.UTF-8 UTF-8
活动状态(未评论)。
我怎样才能解决这个问题?
答案1
locale-gen
编辑后我不得不再次运行/etc/locale.gen
。
这就是问题所在。