Compilar en CentOS 7 (apuntes)
- # — swap
- sudo fallocate -l 1G /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo nano /etc/fstab
- /swapfile swap sw 0 0
- swapon /swapfile
- # —
- yum update
- yum install gcc
- yum install gcc-c++
- # yum install make
- yum install cmake
- yum install git
- 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
- tar xzf boost_1_67_0.tar.gz
- mv boost_1_67_0 boost
- cd boost
- ./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
- cd ..
- #
- git clone https://github.com/ProsusCorp/prosus.money.git prosus
- cd prosus && cd cryptonote
- mkdir build && cd build
- cmake -DBOOST_ROOT=~/boost/ -DBOOST_LIBRARYDIR=~/boost/libs/ ..
- make
- # —– GUI
- yum update
- yum groupinstall “Development Tools”
- 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
- 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
- cd /usr/local/include
- git clone https://github.com/cryptonotefoundation/cryptonote mycoin
- cd mycoin
- make
- # —-
- yum install -y git which wget gcc-c++ libtool make \
- autoconf automake boost-devel epel-release \
- centos-release-scl openssl-devel libevent-devel \
- libseccomp-devel
- yum groupinstall -y 'Development Tools'
- yum install -y devtoolset-7-gcc*
- source scl_source enable devtoolset-7
- _VERSION=“${1:-“3.3.3”}”
- _DEST_DIR=“bcn-${_VERSION}”
- # 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
- tar xzf boost_1_67_0.tar.gz
- mv boost_1_67_0 boost
- cd boost
- ./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
- cd ..
- # Bytecoin want custom OpenSSL :|
- git clone https://github.com/openssl/openssl.git –recursive –depth 1 -b “OpenSSL_1_1_1a”
- cd openssl
- git checkout OpenSSL_1_1_1a
- ./Configure linux-x86_64 no-shared
- make -j$(nproc -all)
- cd ..
- # Bytecoin want LMDB
- 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}”
- mkdir bytecoin/build
- cd bytecoin
- cmake ./
- make -j$(nproc –all)
- ———-
- HTTPS
- Nginx configuration directory: /etc/nginx
- Nginx root directory: /usr/share/nginx/html
- Master/Global configuration file: /etc/nginx/nginx.conf