Change to the root of the source code directory, change to the most recent release branch, and build:
cd monero
git checkout release-v0.17 【这里卡住了,哪里看版本】
make
make后:
mkdir -p build/"Linux/release-v0.17"/release
cd build/"Linux/release-v0.17"/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../../../.. && make
-- CMake version 3.13.4
-- ccache NOT found! Please install it for faster rebuilds.
-- Building without build tag
-- Checking submodules
CMake Error at CMakeLists.txt:203 (message):
Submodule 'external/miniupnp' is not up-to-date. Please update all
submodules with
root@byi:/usr/src/gtest# git submodule update --init --force
fatal: not a git repository (or any of the parent directories): .git
root@byi:/usr/src/gtest# cd monero
root@byi:/usr/src/gtest/monero# git submodule update --init --force
fatal: remote error: upload-pack: not our ref 4c700e09526a7d546394e85628c57e9490feefa0
fatal: the remote end hung up unexpectedly
Fetched in submodule path 'external/miniupnp', but it did not contain 4c700e09526a7d546394e85628c57e9490feefa0. Direct fetching of that commit failed.
root@byi:/usr/src/gtest/monero#