TRTL Coin ; xmrigでの採掘:CentOS 8 ,isoからinstall後の環境構築

TRTL
https://turtlecoin.lol/

2021/06/11 確認
CentOS-8.4.2105-x86_64-dvd1.isoからのインストールで、
software selectionでベース環境としてserverを選んだ場合、yum config-manager –set-enabled PowerToolsのインストールでエラーが出る。

# yum update -y
# dnf install -y epel-release

次のコマンドでNo matching のエラーとなる。 確認しても/etc/yum.repos.d/CentOS-PowerTools.repoのファイルは無い。

# yum config-manager --set-enabled PowerTools
Error: No matching repo to modify: PowerTools.

そこで、ImageMagick*をインストール

# dnf install ImageMagick*  --skip-broken

/etc/yum.repos.d/CentOS-PowerTools.repoのenabled=0を1に変更

# vi /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
enabled=1

再度、epel-releaseをinstall

# dnf install epel-release

パッケージのインストール

# dnf install -y git make cmake gcc gcc-c++ libstdc++-static hwloc-devel openssl-devel automake libtool autoconf

git clone

# git clone https://github.com/xmrig/xmrig.git

ディレクトリの作成と移動

# mkdir xmrig/build && cd xmrig/build

cmakeでエラー発生

[root@localhost build]# cmake ..
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find UV (missing: UV_LIBRARY UV_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindUV.cmake:25 (find_package_handle_standard_args)
  CMakeLists.txt:178 (find_package)


-- Configuring incomplete, errors occurred!
See also "/root/xmrig/build/CMakeFiles/CMakeOutput.log".
[root@localhost build]#

確認するとuvは入っている

# rpm -qa |grep uv
libuv-1.40.0-1.el8.x86_64

libuvをあえてsourceからiinstall

# cd /var/tmp
# git clone https://github.com/libuv/libuv.git
# cd libuv
# ./autogen.sh
# ./configure
# make
# make install

再度cmake

# cd $HOME/xmrig/build/
# cmake ..
# make 
# cp ../src/config.json .