全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 782|回复: 3

怎么编译monero,编译出错,求各位彭于晏赐教

[复制链接]
发表于 2021-3-26 16:03:02 | 显示全部楼层 |阅读模式
https://github.com/monero-project/monero#compiling-monero-from-source

On Linux and macOS
Install the dependencies

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

  git submodule update --init --force

  or run cmake with -DMANUAL_SUBMODULES=1

Call Stack (most recent call first):
  CMakeLists.txt:208 (check_submodule)


-- Configuring incomplete, errors occurred!
See also "/usr/src/gtest/monero/build/Linux/release-v0.17/release/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:103: release-all] Error 1
发表于 2021-3-26 16:06:08 | 显示全部楼层
项目根目录执行 git submodule update --init --force
 楼主| 发表于 2021-3-26 16:07:56 | 显示全部楼层
sinowrt 发表于 2021-3-26 16:06
项目根目录执行 git submodule update --init --force

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#
发表于 2021-3-26 16:28:14 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-3-15 10:04 , Processed in 0.061976 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表