Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

centos-build [2021/05/04 23:28]
YerkoBits creado
centos-build [2021/05/05 12:24] (actual)
YerkoBits
Línea 1: Línea 1:
 ===== Compilar en CentOS 7 (apuntes) ===== ===== Compilar en CentOS 7 (apuntes) =====
-FIXME  + FIXME  
- +   
- +   
- +   
- +   
-# --- swap +  # --- swap 
-sudo fallocate -l 1G /swapfile +  sudo fallocate -l 1G /swapfile 
-sudo chmod 600 /swapfile +  sudo chmod 600 /swapfile 
-sudo mkswap /swapfile +  sudo mkswap /swapfile 
-sudo nano /etc/fstab +  sudo nano /etc/fstab 
- /swapfile   swap    sw  0   0 +  * /swapfile   swap    sw  0   0 
-swapon /swapfile +  swapon /swapfile 
- +   
-# --- +  # --- 
-yum update +  yum update 
-yum install gcc  +  yum install gcc  
-yum install gcc-c++  +  yum install gcc-c++  
-# yum install make  +  # yum install make  
-yum install cmake +  yum install cmake 
-yum install git +  yum install git 
-yum install wget +  yum install wget 
- +   
-#  +  #  
-wget -O boost_1_67_0.tar.gz https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz +  wget -O boost_1_67_0.tar.gz https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz 
-tar xzf boost_1_67_0.tar.gz +  tar xzf boost_1_67_0.tar.gz 
-mv boost_1_67_0 boost +  mv boost_1_67_0 boost 
-cd boost +  cd boost 
-./bootstrap.sh --with-libraries=system,filesystem,thread,date_time,chrono,regex,serialization,program_options,coroutine,context,atomic +  ./bootstrap.sh --with-libraries=system,filesystem,thread,date_time,chrono,regex,serialization,program_options,coroutine,context,atomic 
-./b2 link=static -j $(nproc --all) --build-dir=build64 --stagedir=stage +  ./b2 link=static -j $(nproc --all) --build-dir=build64 --stagedir=stage 
-cd .. +  cd .. 
-#  +  #  
- +   
-git clone https://github.com/ProsusCorp/prosus.money.git prosus +  git clone https://github.com/ProsusCorp/prosus.money.git prosus 
-cd prosus && cd cryptonote +  cd prosus && cd cryptonote 
-mkdir build && cd build +  mkdir build && cd build 
-cmake -DBOOST_ROOT=~/boost/ -DBOOST_LIBRARYDIR=~/boost/libs/ .. +  cmake -DBOOST_ROOT=~/boost/ -DBOOST_LIBRARYDIR=~/boost/libs/ .. 
-make +  make 
- +   
- +   
-# ----- GUI +  # ----- GUI 
-# https://geekylog.com/post/169574021439/build-cryptonote-on-centos-7 +  # https://geekylog.com/post/169574021439/build-cryptonote-on-centos-7 
-yum update +  yum update 
-yum groupinstall "Development Tools" +  yum groupinstall "Development Tools" 
-yum install curl-devel openssl-devel git wget screen epel-release +  yum install curl-devel openssl-devel git wget screen epel-release 
-sudo wget https://bintray.com/vicendominguez/CentOS6/rpm -O /etc/yum.repos.d/bintray-vicendominguez-CentOS6.repo +  sudo wget https://bintray.com/vicendominguez/CentOS6/rpm -O /etc/yum.repos.d/bintray-vicendominguez-CentOS6.repo 
-rpm -ivh https://www.rpmfind.net/linux/centos/6.10/updates/x86_64/Packages/libicu-4.2.1-15.el6_10.x86_64.rpm +  rpm -ivh https://www.rpmfind.net/linux/centos/6.10/updates/x86_64/Packages/libicu-4.2.1-15.el6_10.x86_64.rpm 
-yum install cmake3 boost-devel readline-devel zeromq zeromq-devel unbund unbound-devel miniupnpc miniupnpc-devel qt5-qtbase-devel pcsc-lite-devel +  yum install cmake3 boost-devel readline-devel zeromq zeromq-devel unbund unbound-devel miniupnpc miniupnpc-devel qt5-qtbase-devel pcsc-lite-devel 
-sudo ln -s /usr/bin/cmake3 /usr/bin/cmake +  sudo ln -s /usr/bin/cmake3 /usr/bin/cmake 
-cd /usr/local/include +  cd /usr/local/include 
-wget https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp +  wget https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp 
-git clone https://github.com/cryptonotefoundation/cryptonote mycoin +  git clone https://github.com/cryptonotefoundation/cryptonote mycoin 
-cd mycoin +  cd mycoin 
-make +  make 
- +   
- +   
-# ---- +  # ---- 
-# https://github.com/bcndev/bytecoin/issues/61 +  # https://github.com/bcndev/bytecoin/issues/61 
-yum install -y git which wget gcc-c++ libtool make \ +  yum install -y git which wget gcc-c++ libtool make \ 
-    autoconf automake boost-devel epel-release \ +      autoconf automake boost-devel epel-release \ 
-    centos-release-scl openssl-devel libevent-devel \ +      centos-release-scl openssl-devel libevent-devel \ 
-    libseccomp-devel +      libseccomp-devel 
-yum groupinstall -y 'Development Tools' +  yum groupinstall -y 'Development Tools' 
-yum install -y devtoolset-7-gcc*  +  yum install -y devtoolset-7-gcc*  
-source scl_source enable devtoolset-7 +  source scl_source enable devtoolset-7 
- +   
-_VERSION="${1:-"3.3.3"}" +  _VERSION="${1:-"3.3.3"}" 
-_DEST_DIR="bcn-${_VERSION}" +  _DEST_DIR="bcn-${_VERSION}" 
-# Bytecoin want custom boost :| +  # Bytecoin want custom boost :| 
-wget -O boost_1_67_0.tar.gz https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz +  wget -O boost_1_67_0.tar.gz https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz 
-tar xzf boost_1_67_0.tar.gz +  tar xzf boost_1_67_0.tar.gz 
-mv boost_1_67_0 boost +  mv boost_1_67_0 boost 
-cd boost +  cd boost 
-./bootstrap.sh --with-libraries=filesystem,chrono,date_time,regex,system,iostreams,log,program_options,thread,serialization,locale +  ./bootstrap.sh --with-libraries=filesystem,chrono,date_time,regex,system,iostreams,log,program_options,thread,serialization,locale 
-./b2 link=static -j $(nproc --all) --build-dir=build64 --stagedir=stage +  ./b2 link=static -j $(nproc --all) --build-dir=build64 --stagedir=stage 
-cd .. +  cd .. 
- +   
-# Bytecoin want custom OpenSSL :| +  # Bytecoin want custom OpenSSL :| 
-git clone https://github.com/openssl/openssl.git --recursive --depth 1 -b "OpenSSL_1_1_1a" +  git clone https://github.com/openssl/openssl.git --recursive --depth 1 -b "OpenSSL_1_1_1a" 
-cd openssl +  cd openssl 
-git checkout OpenSSL_1_1_1a +  git checkout OpenSSL_1_1_1a 
-./Configure linux-x86_64 no-shared +  ./Configure linux-x86_64 no-shared 
-make -j$(nproc -all) +  make -j$(nproc -all) 
-cd .. +  cd .. 
- +   
-# Bytecoin want LMDB +  # Bytecoin want LMDB 
-git clone https://github.com/LMDB/lmdb.git --recursive --depth 1 -b "LMDB_0.9.22" +  git clone https://github.com/LMDB/lmdb.git --recursive --depth 1 -b "LMDB_0.9.22" 
- +   
-git clone https://github.com/bcndev/bytecoin.git --recursive --depth 1 -b "v${_VERSION}" +  git clone https://github.com/bcndev/bytecoin.git --recursive --depth 1 -b "v${_VERSION}" 
-mkdir bytecoin/build +  mkdir bytecoin/build 
-cd bytecoin +  cd bytecoin 
-cmake ./ +  cmake ./ 
-make -j$(nproc --all) +  make -j$(nproc --all) 
- +   
- +   
----------- +  ---------- 
-HTTPS +  HTTPS 
-# https://certbot.eff.org/lets-encrypt/centosrhel7-nginx.html +  # https://certbot.eff.org/lets-encrypt/centosrhel7-nginx.html 
-# https://phoenixnap.com/kb/install-nginx-centos-8 +  # https://phoenixnap.com/kb/install-nginx-centos-8 
-        Nginx configuration directory: /etc/nginx +          Nginx configuration directory: /etc/nginx 
-        Nginx root directory: /usr/share/nginx/html +          Nginx root directory: /usr/share/nginx/html 
-        Master/Global configuration file: /etc/nginx/nginx.conf +          Master/Global configuration file: /etc/nginx/nginx.conf 
- +   
-8-O https://www.muylinux.com/2020/12/09/centos-8-stream-descontinuado-rolling-release/ +  8-O https://www.muylinux.com/2020/12/09/centos-8-stream-descontinuado-rolling-release/ 
 +