提交 313e6589 编写于 作者: B Bill Hamilton

added additional system and build information to eosio_build.sh. Added EOSIO...

added additional system and build information to eosio_build.sh. Added EOSIO information and links to end of build
上级 221b6a6a
......@@ -37,12 +37,15 @@
TEMP_DIR=/tmp
ARCH=$( uname )
DISK_MIN=20
BUILD_MONGO_DB_PLUGIN=false
PYTHON_MIN=3
TIME_BEGIN=$( date -u +%s )
txtbld=$(tput bold)
bldred=${txtbld}$(tput setaf 1)
txtrst=$(tput sgr0)
printf "\n\t$( date -u )\n"
printf "\tgit head id: $( cat .git/refs/heads/master )\n"
printf "\tCurrent branch: $( git branch | grep \* )\n"
printf "\n\tARCHITECTURE: ${ARCH}\n"
if [ $ARCH == "Linux" ]; then
......@@ -136,10 +139,6 @@
CMAKE=$( which cmake )
fi
if [ -f ${MONGOD_CONF} ]; then
BUILD_MONGO_DB_PLUGIN=true
fi
$CMAKE -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} \
-DCMAKE_C_COMPILER=${C_COMPILER} -DWASM_ROOT=${WASM_ROOT} \
-DOPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR} -DBUILD_MONGO_DB_PLUGIN=true \
......@@ -157,8 +156,6 @@
exit -1
fi
printf "\n\t>>>>>>>>>>>>>>>>>>>> EOSIO has been successfully built.\n\n"
printf "\n\tVerifying MongoDB is running.\n"
MONGODB_PID=$( pgrep -x mongod )
if [ -z $MONGODB_PID ]; then
......@@ -166,15 +163,36 @@
printf "\tStarting MongoDB.\n"
mongod -f ${MONGOD_CONF} &
if [ $? -ne 0 ]; then
printf "\n\tUnable to start MongoDB.\nExiting now.\n\n"
printf "\tUnable to start MongoDB.\nExiting now.\n\n"
exit -1
fi
MONGODB_PID=$( pgrep -x mongod )
printf "\n\tSuccessfully started MongoDB PID = ${MONGODB_PID}.\n"
printf "\tSuccessfully started MongoDB PID = ${MONGODB_PID}.\n\n"
else
printf "\n\tMongoDB is running PID=${MONGODB_PID}.\n"
printf "\tMongoDB is running PID=${MONGODB_PID}.\n\n"
fi
TIME_END=$(( `date -u +%s` - $TIME_BEGIN ))
printf "\t _______ _______ _______ _________ _______\n"
printf "\t( ____ \( ___ )( ____ \\__ __/( ___ )\n"
printf "\t| ( \/| ( ) || ( \/ ) ( | ( ) |\n"
printf "\t| (__ | | | || (_____ | | | | | |\n"
printf "\t| __) | | | |(_____ ) | | | | | |\n"
printf "\t| ( | | | | ) | | | | | | |\n"
printf "\t| (____/\| (___) |/\____) |___) (___| (___) |\n"
printf "\t(_______/(_______)\_______)\_______/(_______)\n"
printf "\n\tEOS.IO has been successfully built. %d:%d:%d\n\n" $(($TIME_END/3600)) $(($TIME_END%3600/60)) $(($TIME_END%60))
printf "\tTo verify your installation run the following commands:\n"
printf "\n\t$( which mongod ) -f ${MONGOD_CONF} &\n"
printf "\tcd ${HOME}/eos/build; make test\n\n"
printf "\tFor more information:\n"
printf "\tEOS.IO website: https://eos.io\n"
printf "\tEOS.IO Telegram channel @ https://t.me/EOSProject\n"
printf "\tEOS.IO resources: https://eos.io/resources/\n"
printf "\tEOS.IO wiki: https://github.com/EOSIO/eos/wiki\n\n\n"
if [ "x${EOSIO_BUILD_PACKAGE}" != "x" ]; then
# Build eos.io package
$CMAKE -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} \
......
......@@ -5,8 +5,8 @@
CPU_SPEED=$( lscpu | grep "MHz" | tr -s ' ' | cut -d\ -f3 | cut -d'.' -f1 )
CPU_CORE=$( lscpu | grep "^CPU(s)" | tr -s ' ' | cut -d\ -f2 )
DISK_TOTAL=`df -h / | grep /dev | tr -s ' ' | cut -d\ -f2 | sed 's/[^0-9]//'`
DISK_AVAIL=`df -h / | grep /dev | tr -s ' ' | cut -d\ -f4 | sed 's/[^0-9]//'`
DISK_TOTAL=`df -h . | grep /dev | tr -s ' ' | cut -d\ -f2 | sed 's/[^0-9]//'`
DISK_AVAIL=`df -h . | grep /dev | tr -s ' ' | cut -d\ -f4 | sed 's/[^0-9]//'`
printf "\n\tOS name: $OS_NAME\n"
printf "\tOS Version: ${OS_VER}\n"
......@@ -54,7 +54,6 @@
printf "\t${UPDATE}\n"
DEP_ARRAY=( git gcc72.x86_64 gcc72-c++.x86_64 autoconf automake libtool make bzip2 bzip2-devel.x86_64 openssl-devel.x86_64 gmp.x86_64 gmp-devel.x86_64 libstdc++72.x86_64 python36-devel.x86_64 libedit-devel.x86_64 ncurses-devel.x86_64 swig.x86_64 )
DCOUNT=0
COUNT=1
DISPLAY=""
DEP=""
......@@ -70,14 +69,13 @@
DISPLAY="${DISPLAY}${COUNT}. ${DEP_ARRAY[$i]}\n\t"
printf "\tPackage ${DEP_ARRAY[$i]} ${bldred} NOT ${txtrst} found.\n"
let COUNT++
let DCOUNT++
else
printf "\tPackage ${DEP_ARRAY[$i]} found.\n"
continue
fi
done
if [ ${DCOUNT} -ne 0 ]; then
if [ ${COUNT} -gt 1 ]; then
printf "\n\tThe following dependencies are required to install EOSIO.\n"
printf "\n\t$DISPLAY\n\n"
printf "\tDo you wish to install these dependencies?\n"
......@@ -102,8 +100,7 @@
printf "\n\tNo required YUM dependencies to install.\n"
fi
printf "\n\tChecking for CMAKE.\n"
# install CMAKE 3.10.2
printf "\n\tChecking CMAKE installation.\n"
if [ ! -e ${CMAKE} ]; then
printf "\tInstalling CMAKE\n"
mkdir -p ${HOME}/opt/ 2>/dev/null
......@@ -129,10 +126,9 @@
printf "\tCMAKE found\n"
fi
printf "\n\tChecking for boost libraries\n"
printf "\n\tChecking boost library installation.\n"
if [ ! -d ${HOME}/opt/boost_1_66_0 ]; then
# install boost
printf "\tInstalling boost libraries\n"
printf "\tInstalling boost libraries.\n"
cd ${TEMP_DIR}
curl -L https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2 > boost_1.66.0.tar.bz2
tar xf boost_1.66.0.tar.bz2
......@@ -145,7 +141,7 @@
printf "\tBoost 1.66 found at ${HOME}/opt/boost_1_66_0\n"
fi
printf "\n\tChecking for MongoDB installation.\n"
printf "\n\tChecking MongoDB installation.\n"
if [ ! -e ${MONGOD_CONF} ]; then
printf "\n\tInstalling MongoDB 3.6.3.\n"
cd ${HOME}/opt
......@@ -179,8 +175,7 @@ mongodconf
printf "\tMongoDB configuration found at ${MONGOD_CONF}.\n"
fi
printf "\n\tChecking for MongoDB C++ driver.\n"
# install libmongocxx.dylib
printf "\n\tChecking MongoDB C++ driver installation.\n"
if [ ! -e /usr/local/lib/libmongocxx.so ]; then
cd ${TEMP_DIR}
curl -LO https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz
......@@ -245,7 +240,7 @@ mongodconf
printf "\tMongo C++ driver found at /usr/local/lib/libmongocxx.so.\n"
fi
printf "\n\tChecking for secp256k1-zkp\n"
printf "\n\tChecking secp256k1-zkp installation.\n"
# install secp256k1-zkp (Cryptonomex branch)
if [ ! -e /usr/local/lib/libsecp256k1.a ]; then
printf "\tInstalling secp256k1-zkp (Cryptonomex branch)\n"
......@@ -268,12 +263,11 @@ mongodconf
sudo make install
rm -rf cd ${TEMP_DIR}/secp256k1-zkp
else
printf "\tsecp256k1 found\n"
printf "\tsecp256k1 found.\n"
fi
printf "\n\tChecking for SoftFloat\n"
if [ ! -d ${HOME}/opt/berkeley-softfloat-3 ]; then
# clone the library
cd ${TEMP_DIR}
mkdir softfloat
cd softfloat
......@@ -285,18 +279,16 @@ mongodconf
printf "\tExiting now.\n\n"
exit;
fi
# no install target defined for this library
mkdir -p ${HOME}/opt/berkeley-softfloat-3
cp softfloat.a ${HOME}/opt/berkeley-softfloat-3/libsoftfloat.a
mv ${TEMP_DIR}/softfloat/berkeley-softfloat-3/source/include ${HOME}/opt/berkeley-softfloat-3/include
rm -rf ${TEMP_DIR}/softfloat
else
printf "\tsoftfloat found at /usr/local/berkeley-softfloat-3/\n"
printf "\tsoftfloat found at /usr/local/berkeley-softfloat-3/.\n"
fi
printf "\n\tChecking for LLVM with WASM support.\n"
printf "\n\tChecking LLVM with WASM support.\n"
if [ ! -d ${HOME}/opt/wasm/bin ]; then
# Build LLVM and clang with EXPERIMENTAL WASM support:
printf "\tInstalling LLVM & WASM\n"
cd ${TEMP_DIR}
mkdir llvm-compiler 2>/dev/null
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册