<html> <p><br></p> <p><br></p> <p>1) sudo apt-get install autoconf</p> <p>2) sudo apt-get install libtool</p> <p>3)</p> <p> cd ~</p> <p> mkdir librarys</p> <p> git clone https://github.com/cryptonomex/secp256k1-zkp.git</p> <p> cd secp256k1-zkp</p> <p> ./autogen.sh</p> <p> ./configure</p> <p> make</p> <p> sudo make install</p> <p>4) git clone https://github.com/eosio/eos --recursive</p> <p><br></p> <p><br></p> <p>5)llvm clang for WASM</p> <p>mkdir ~/wasm-compiler</p> <p>cd ~/wasm-compiler</p> <p>git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/llvm.git</p> <p>cd llvm/tools</p> <p>git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/clang.git</p> <p>cd ..</p> <p>mkdir build</p> <p>cd build</p> <p>cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=.. -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly -DCMAKE_BUILD_TYPE=Release ../</p> <p>make -j4 install</p> <p><br></p> <p>6)</p> <p>sudo apt-get autoremove cmake</p> <p>cd ~/librarys</p> <p>wget https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.tar.gz</p> <p>tar zxvf cmake-3.8.0-Linux-x86_64.tar.gz</p> <p>cd cmake-3.8.0-Linux-x86_64</p> <p>sudo ln -s ~/librarys/cmake-3.8.0-Linux-x86_64/bin/* /usr/bin/</p> <p>sudo ldconfig</p> <p>cmake --version</p> <p>cmake version 3.8.0</p> <p><br></p> <p>7)</p> <p>tar zxvf boost_1_64_0.tar.gz</p> <p>cd boost_1_64_0</p> <p>./bootstrap.sh</p> <p>#sudo ./b2 link=shared threading=multi runtime-link=shared variant=release install</p> <p>./bjam release install</p> <p><br></p> <p>8)</p> <p>wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz</p> <p>tar zxvf openssl-1.1.0f.tar.gz</p> <p>cd openssl-1.1.0f</p> <p>./Configure shared linux-x86_64</p> <p>sudo make install</p> <p><br></p> <p>9)</p> <p>sudo add-apt-repository ppa:ubuntu-toolchain-r/test</p> <p>sudo apt-get update</p> <p>sudo apt-get install gcc-4.9</p> <p>sudo apt-get install g++-4.9</p> <p>装了ppa,各种版本就可以共存了。不过有一个问题,每次要用的时候,必须使用g++-4.9,如果直接用g++会运行4.8版本的,非常麻烦。</p> <p>所以需要改一下/usr/bin/下的链接。</p> <p><br></p> <p>sudo su</p> <p>cd ../../usr/bin</p> <p>ln -s /usr/bin/g++-4.9 /usr/bin/g++ -f</p> <p>ln -s /usr/bin/gcc-4.9 /usr/bin/gcc -f</p> <p><br></p> <p>10)</p> <p>sudo apt-get install libbz2-dev</p> <p><br></p> <p>11)</p> <p>sudo apt-get install libgmp-dev</p> <p><br></p> <p>12)</p> <p>sudo apt-get install zlib1g-dev</p> <p><br></p> <p>13)</p> <p>git clone https://github.com/eosio/eos --recursive</p> <p>mkdir -p eos/build && cd eos/build</p> <p>WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config LLVM_DIR=~/wasm-compiler/llvm/lib/cmake/llvm cmake ..</p> <p>make -j4</p> <p><br></p> <p><br></p> <p><br></p> <p>//////////////////////////////////////////////////////////////////////////////////</p> <p>1)</p> <p>sudo apt-get install clang-4.0 lldb-4.0 lld-4.0</p> <p>sudo update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-4.0/bin/clang 400</p> <p>sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-4.0/bin/clang++ 400</p> <p><br></p> <p>2)</p> <p>sudo apt-get install python-dev python3-dev</p> <p><br></p> <p>3)</p> <p>sudo apt-get install libicu-dev</p> <p><br></p> <p>4)</p> <p>tar zxvf boost_1_64_0.tar.gz</p> <p>cd boost_1_64_0</p> <p>./bootstrap.sh --with-toolset=clang</p> <p>./b2 -a -j$(nproc) link=shared threading=multi runtime-link=shared variant=release -sHAVE_ICU=1 --sICU_PATH=/usr</p> <p> sudo ./b2 install</p> <p><br></p> <p> sudo apt-get install libssl-dev</p> <p><br></p> <p>sudo apt-get install mpi-default-dev</p> <p><br></p> <p>5)</p> <p>wget https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz</p> <p>$tar -zxvf cmake-3.9.0.tar.gz</p> <p>$./bootstrap </p> <p>$make </p> <p>$make install</p> <p><br></p> <p>6)</p> <p><br></p> <p>在目录:</p> <p>~/eos/build$ </p> <p><br></p> <p>WASM_LLVM_CONFIG=/opt/wasm/bin/llvm-config cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/opt/eos ../</p> <p>make -j2</p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> </html>
author | kimziv |
---|---|
permlink | build-eos-on-ubuntu-16-04 |
category | eos |
json_metadata | {"tags":["eos","eosdev","sudo"],"links":["https://github.com/cryptonomex/secp256k1-zkp.git","https://github.com/eosio/eos","https://github.com/llvm-mirror/llvm.git","https://github.com/llvm-mirror/clang.git","https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.tar.gz","https://www.openssl.org/source/openssl-1.1.0f.tar.gz","https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz"],"app":"steemit/0.1","format":"html"} |
created | 2017-08-12 17:49:00 |
last_update | 2017-08-12 17:49:00 |
depth | 0 |
children | 4 |
last_payout | 2017-08-19 17:49:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.075 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.400 HBD |
body_length | 4,188 |
author_reputation | 749,738,786,703 |
root_title | "Build EOS on Ubuntu 16.04" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 11,619,218 |
net_rshares | 23,069,717,174 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
promoted | 0 | 23,069,717,174 | 1.34% |
is this for real? i feel like this should be easier
author | critesjosh |
---|---|
permlink | re-kimziv-build-eos-on-ubuntu-16-04-20180311t195124612z |
category | eos |
json_metadata | {"tags":["eos"],"app":"steemit/0.1"} |
created | 2018-03-11 19:51:27 |
last_update | 2018-03-11 19:51:27 |
depth | 1 |
children | 0 |
last_payout | 2018-03-18 19:51:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 51 |
author_reputation | 0 |
root_title | "Build EOS on Ubuntu 16.04" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 43,766,994 |
net_rshares | 0 |
OMG, why it is sooo complex?!! At my job we are working with Visual Studio and Nuget packages, and to build anything we just need to "Get Latest Version" and "Build"....two clicks only
author | jenkas |
---|---|
permlink | re-kimziv-build-eos-on-ubuntu-16-04-20180420t225941790z |
category | eos |
json_metadata | {"tags":["eos"],"app":"steemit/0.1"} |
created | 2018-04-20 23:05:39 |
last_update | 2018-04-20 23:05:39 |
depth | 1 |
children | 0 |
last_payout | 2018-04-27 23:05:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 184 |
author_reputation | 32,358,190 |
root_title | "Build EOS on Ubuntu 16.04" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,205,443 |
net_rshares | 0 |
这个ranger写的,我帖了过来,方便大家查阅,特此声明一下
author | kimziv |
---|---|
permlink | re-kimziv-build-eos-on-ubuntu-16-04-20170814t092332070z |
category | eos |
json_metadata | {"tags":["eos"],"app":"steemit/0.1"} |
created | 2017-08-14 09:23:33 |
last_update | 2017-08-14 09:23:33 |
depth | 1 |
children | 0 |
last_payout | 2017-08-21 09:23:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.520 HBD |
curator_payout_value | 0.172 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 30 |
author_reputation | 749,738,786,703 |
root_title | "Build EOS on Ubuntu 16.04" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 11,763,058 |
net_rshares | 211,016,453,087 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gentlebot | 0 | 211,016,453,087 | 100% |
Great post Thanks for sharing
author | mahmoudh |
---|---|
permlink | re-kimziv-build-eos-on-ubuntu-16-04-20170812t180244129z |
category | eos |
json_metadata | {"tags":["eos"],"app":"steemit/0.1"} |
created | 2017-08-12 18:02:48 |
last_update | 2017-08-12 18:02:48 |
depth | 1 |
children | 0 |
last_payout | 2017-08-19 18:02:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 30 |
author_reputation | 594,721,912,257 |
root_title | "Build EOS on Ubuntu 16.04" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 11,620,286 |
net_rshares | 0 |