Skip to content

Commit

Permalink
origin commit on 2021-4-27
Browse files Browse the repository at this point in the history
  • Loading branch information
lsq committed Apr 27, 2021
1 parent 7d3a47d commit 69a42dd
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
55 changes: 55 additions & 0 deletions scripts/build_on_rhel7_by_devtoolset/5.7.17/README.BUILD.TAR.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Build on K1 Power9 Linux, RedHat 7.6 (Kernel 4.14.0-115.8.1.el7a.ppc64le) with devtoolset-7.

### 1. About Build ENV #########################################################################################

# lscpu |grep -i arch
Architecture: ppc64le
Model name: POWER9 (architected), altivec supported

# uname -r
4.14.0-115.8.1.el7a.ppc64le

# uname -m
ppc64le

### 2. Build mysql ##########################################################################################

Install dependencies
# yum -y install zlib-devel bzip2-devel numactl-devel \
openssl-devel lz4-devel libxml2-devel wget readline-devel \
libevent-devel jemalloc-devel libaio-devel git bison cmake libtirpc-devel numad \
install java-1.8.0-openjdk iotop dstat perf java-1.8.0-openjdk-devel nmon

Install devtoolset-7
# yum install devtoolset-7
source /opt/rh/devtoolset-7/enable
# type gcc
gcc is /opt/rh/devtoolset-7/root/usr/bin/gcc
# gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)

# tar zxvf mysql-boost-5.7.17.tar.gz
# cd mysql-5.7.17
# mkdir build;cd build;
# cmake .. \
-DBUILD_CONFIG=mysql_release \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_COMPILER=`which gcc` \
-DCMAKE_C_FLAGS="-O3 -mcpu=native -mtune=native -mcmodel=large" \
-DCMAKE_CXX_COMPILER=`which g++` \
-DCMAKE_CXX_FLAGS="-O3 -mcpu=native -mtune=native -mcmodel=large" \
-DCMAKE_INSTALL_PREFIX=/opt/mysql/5.7.17 \
-DCMAKE_LINKER=`which gcc` \
-DCMAKE_AR=`which gcc-ar` \
-DCMAKE_NM=`which gcc-nm` \
-DCMAKE_RANLIB=`which gcc-ranlib` \
-DWITH_INNODB_MEMCACHED=ON \
-DWITH_BOOST=../boost/boost_1_59_0 \
-DWITH_NUMA=ON \
2>&1 | tee config.log

# make -j 32 && make install


# cd /opt/mysql
# tar zcf mysql-community-5.7.17-1.el7.ppc64le.bin.tar.gz ./5.7.17
7 changes: 7 additions & 0 deletions scripts/src/5.7.17/GET_SOURCE.links.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##1.TAR source
wget -c https://downloads.mysql.com/archives/get/p/23/file/mysql-boost-5.7.17.tar.gz
##2. RPM Source
wget -c https://downloads.mysql.com/archives/get/p/23/file/mysql-community-5.7.17-1.el7.src.rpm



0 comments on commit 69a42dd

Please sign in to comment.