Clone
1
| $ git clone --recurse-submodules -j8 git@github.com:scylladb/seastar.git
|
Install
dpdk
1 2 3 4 5
| $ git clone http://dpdk.org/git/dpdk $ cd dpdk $ export RTE_SDK=$(pwd) $ export RTE_TARGET=x86_64-native-linuxapp-gcc $ make -j8 install T=$RTE_TARGET DESTDIR=/usr/local
|
alter gcc/g++
1 2 3 4 5 6 7 8
| # install alter sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 40 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 40
# config alter sudo update-alternatives --config gcc
|
seastar
1
| ./cooking.sh -t Release -- -DSeastar_DPDK=ON
|
tag 20.05
dpdk
内核版本 > 5.4.0 会导致编译出错,详见这里,做下面改动。