-
Notifications
You must be signed in to change notification settings - Fork 4
source installation
Hantao Sun edited this page Jan 10, 2019
·
34 revisions
- Ubuntu16.04/18.04
- CentOS 6.5
- CentOS 7
- MacOSX
-
Windows 10 (mingw-w64)(Not support now)
==========================================================
sudo apt install -y g++ libboost-all-dev cmake openssl libreadline-dev pkg-config libsodium-dev mysql-server libmysqld-dev
# ubuntu16.04
sudo apt install -y libssl-dev
# ubuntu18.04
sudo apt install -y libssl1.0-dev
# download protobuf 3.3.0 and build it
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.3.0/protobuf-cpp-3.3.0.tar.gz
tar -xzvf protobuf-cpp-3.3.0.tar.gz
cd protobuf-3.3.0
./configure --prefix=/usr
make -j8
sudo make install
cd FnFnCoreWallet
./INSTALL.sh
./multiverse -help
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y git cmake3 openssl-devel readline-devel libsodium-devel gcc gcc-c++ mysql-community-server mysql-community-devel
sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
# download protobuf 3.3.0 and build it
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.3.0/protobuf-cpp-3.3.0.tar.gz
tar -xzvf protobuf-cpp-3.3.0.tar.gz
cd protobuf-3.3.0
./configure --prefix=/usr --libdir=/usr/lib64
make -j8
sudo make install
boost (version >= 1.58.0). If there is no boost or older version, you must download and compile from source ---> Download
# compile
cd boost
./bootstrap.sh
sudo ./b2 install
- Uninstall older version.
- rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
- yum install -y mysql-community-server mysql-community-devel
cd FnFnCoreWallet
./INSTALL.sh
./multiverse -help
- sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
- sudo yum install -y git cmake3 openssl-devel readline-devel
- sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
- wget https://github.com/protocolbuffers/protobuf/releases/download/v3.3.0/protobuf-cpp-3.3.0.tar.gz
- tar -xzvf protobuf-cpp-3.3.0.tar.gz
- cd protobuf-3.3.0
- ./configure --prefix=/usr --libdir=/usr/lib64
- make -j8
- sudo make install
- sudo rpm -Uvh http://repo.iotti.biz/CentOS/6/noarch/lux-release-6-3.noarch.rpm
- yum update -y
- sudo yum install -y libsodium-devel
boost (version >= 1.58.0). If there is no boost or older version, you must download and compile from source ---> Download
- wget https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz/download -O boost_1_58_0.tar.gz
- tar -xzf boost_1_58_0.tar.gz
- cd boost_1_58_0
- ./bootstrap.sh
- sudo ./b2 install
- sudo yum remove mysql*
- wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
- sudo yum install mysql-community-release-el6-5.noarch.rpm
- sudo vim /etc/yum.repos.d/mysql-community.repo
[mysql...]
enabled=0
[mysql57-community-dmr]
enabled=1
- sudo yum install -y mysql-community-server mysql-community-devel
- sudo rm -rf /var/lib/mysql
- mysqld --initialize --user=mysql
- service mysqld start
- sudo yum install centos-release-scl-rh
- sudo yum install -y devtoolset-7-gcc devtoolset-7-gcc-c++
- echo "source /opt/rh/devtoolset-7/enable" >> /etc/bashrc
- source /etc/bashrc
- yum install centos-release-scl-rh
- yum install python27-python
- echo "source /opt/rh/python27/enable" >> /etc/bashrc
cd FnFnCoreWallet
./INSTALL.sh
./multiverse -help
brew install cmake pkg-config openssl boost mysql libsodium readline protobuf
- Test cmake version :
cmake --version
- Test openssl version :
`brew --prefix openssl`/bin/openssl version
- If "no OPENSSL_ROOT_DIR" error occured, set enviroment variable :
echo "export OPENSSL_ROOT_DIR=`brew --prefix openssl`" >> ~/.bash_profile && . ~/.bash_profile
- Test boost version :
grep "#define BOOST_VERSION" ${BOOST_ROOT}/include/boost/version.hpp
- If "no BOOST_ROOT" error occured, set enviroment variable :
echo "export BOOST_ROOT=`brew --prefix boost`" >> ~/.bash_profile && . ~/.bash_profile
- Test mysql version :
mysql --version
- Test sodium version :
pkg-config --exists libsodium && pkg-config --version libsodium
- If
no sodium
error occured, set enviroment variable :
echo "export PKG_CONFIG_PATH=`brew --prefix libsodium`/lib/pkgconfig:\${PKG_CONFIG_PATH}" >> ~/.bash_profile && . ~/.bash_profile
- Test readline version :
grep "#define RL_READLINE_VERSION" `brew --prefix readline`/include/readline/readline.h
- If occured error "rl_xxxx", try :
brew link --force readline
- Test protobuf version :
protoc --version
cd FnFnCoreWallet
./INSTALL.sh
./multiverse -help
- Download installer.
- Download the newest version
- If mingw-w64 is extracted to
c:\mingw64
- Set
c:\mingw64\bin
,C:\mingw64\opt\bin
to system environment Path
- Download source code
- For example, boost is extracted to
c:\boost
, compile script:
cd c:\boost
bootstrap gcc
b2 -j8 --build-dir=.\tmp --build-type=complete --layout=tagged address-model=64 threading=multi toolset=gcc stage --stagedir=.\
- Set
C:\boost
to system environment BOOST_ROOT
- Download the installer.
- Set
C:\Progra~1\MySQL\MySQLS~1.0\lib
to system environment Path by default.
- Download the installer.
- If sodium is extracted to
C:\libsodium
- Set
C:\libsodium\bin
to system environment Path
cd FnFnCoreWallet
INSTALL.bat
multiverse.exe -help
- Set
C:\boost
,C:\Progra~1\MySQL\MySQLS~1.0
,C:\libsodium
to system environment Path - Add
c:\mingw64
to new system environment MINGW64_ROOT - In vs2017,
File
->Open
->Folder
, chooseFnFnCoreWallet
-
CMake
->Change CMake Setting
, selectMingw64-Release
/Mingw64-Debug
, changeCMakeSettings.json
:
"MINGW64_ROOT": "C:\\mingw64",
"generator": "MinGW Makefiles",
"buildRoot": "${workspaceRoot}\\build",
"installRoot": "${workspaceRoot}",
"buildCommandArgs": "",
build\src\multiverse.exe -help
Home | Copyright © 2017-2019 FissionAndFusion