Skip to content

Commit

Permalink
[Feature] support mac m1
Browse files Browse the repository at this point in the history
  • Loading branch information
luohaha committed Sep 30, 2022
1 parent 27f32d1 commit 0d934b0
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
7 changes: 7 additions & 0 deletions install_env_gcc_arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
yum install centos-release-scl -y
yum install devtoolset-10 -y
ln -sf /opt/rh/devtoolset-10/root/bin/* /usr/bin/

yum install -y ccache python3
yum install -y bzip2 wget git libstdc++-static byacc flex automake libtool binutils-devel bison ncurses-devel make mlocate unzip patch which vim-common redhat-lsb-core zip libcurl-devel updatedb
10 changes: 10 additions & 0 deletions install_java_arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
cd /var/local
mkdir ./jdk && tar -zxvf java.tar.gz -C ./jdk --strip-components 1
mkdir /usr/java && mv jdk /usr/java
export JAVA_HOME=/usr/java/jdk
export JRE_HOME=/usr/java/jdk/jre
export CLASSPATH=.:/usr/java/jdk/lib:/usr/java/jdk/jre/lib:$CLASSPATH
export JAVA_PATH=/usr/java/jdk/bin:/usr/java/jdk/jre/bin
export PATH=$PATH:/usr/java/jdk/bin:/usr/java/jdk/jre/bin
rm -rf java.tar.gz
7 changes: 7 additions & 0 deletions install_mvn_arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
mkdir -p /usr/share/maven /usr/share/maven/ref
curl -fsSL -o /tmp/apache-maven.tar.gz $1/apache-maven-$2-bin.tar.gz
echo "$3 /tmp/apache-maven.tar.gz" | sha512sum -c -
tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1
rm -f /tmp/apache-maven.tar.gz
ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
17 changes: 17 additions & 0 deletions params_source_arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## JDK
JDK_SOURCE='https://mirror.iscas.ac.cn/kunpeng/archive/compiler/bisheng_jdk/bisheng-jdk-8u262-linux-aarch64.tar.gz'

## llvm
LLVM_SOURCE='http://cdn-thirdparty.starrocks.com/aarch64/clang-format'

## CMAKE
CMAKE_SOURCE='https://github.com/Kitware/CMake/releases/download/v3.22.2/cmake-3.22.2-linux-aarch64.tar.gz'

## GCC
GCC_VERSION=10.3.1
GCC_URL="https://mirror.iscas.ac.cn/kunpeng/archive/compiler/kunpeng_gcc/gcc-$GCC_VERSION-2021.09-aarch64-linux.tar.gz"

## MAVEN
MAVEN_VERSION=3.6.3
SHA=c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0
BASE_URL="https://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries"
7 changes: 6 additions & 1 deletion sr-thirdparty/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@ COPY thirdparty ${DEFAULT_DIR}/thirdparty
ENV STARROCKS_THIRDPARTY /var/local/thirdparty
ENV STARROCKS_GCC_HOME /usr

CMD top
# reinstall maven and ccache because this two libs counld be installed failed before.
RUN yum install -y epel-release
RUN yum install -y maven
RUN yum install -y ccache

CMD top

0 comments on commit 0d934b0

Please sign in to comment.