amazon linux pre-reqs and CFLAG
This commit is contained in:
parent
dd9d5f9555
commit
b852339291
|
@ -6,7 +6,7 @@ SQLITE:=$(ROOT)/sqlite
|
||||||
# Flags
|
# Flags
|
||||||
CXX = g++
|
CXX = g++
|
||||||
OPTIMIZATIONS = -O3
|
OPTIMIZATIONS = -O3
|
||||||
CFLAGS = -I $(SQLITE) $(OPTIMIZATIONS) -std=c++11 -Wall -fPIC -g
|
CFLAGS = $CFLAGS -I $(SQLITE) $(OPTIMIZATIONS) -std=c++11 -Wall -fPIC -g
|
||||||
LIBS = -lparquet -lboost_regex -lboost_system -lboost_filesystem \
|
LIBS = -lparquet -lboost_regex -lboost_system -lboost_filesystem \
|
||||||
-lbrotlienc -lbrotlicommon -lbrotlidec -licui18n -licuuc -licudata \
|
-lbrotlienc -lbrotlicommon -lbrotlidec -licui18n -licuuc -licudata \
|
||||||
-llz4 -lsnappy -lthrift -lz -lzstd -lcrypto -lssl
|
-llz4 -lsnappy -lthrift -lz -lzstd -lcrypto -lssl
|
||||||
|
|
16
make-linux
16
make-linux
|
@ -5,7 +5,7 @@ apt install -y sudo lsb-release wget
|
||||||
|
|
||||||
here=$(dirname "${BASH_SOURCE[0]}")
|
here=$(dirname "${BASH_SOURCE[0]}")
|
||||||
here=$(readlink -f "$here")
|
here=$(readlink -f "$here")
|
||||||
ubuntu="$(lsb_release -s -r)"
|
distro="$(lsb_release -s -r)"
|
||||||
|
|
||||||
setup_directories() {
|
setup_directories() {
|
||||||
cd "$here"
|
cd "$here"
|
||||||
|
@ -14,7 +14,17 @@ setup_directories() {
|
||||||
cd build/linux
|
cd build/linux
|
||||||
}
|
}
|
||||||
|
|
||||||
install_prerequisites() {
|
install_prerequisites_amazon_linux() {
|
||||||
|
# Install Apache Arrow <https://arrow.apache.org/install/> and dependencies.
|
||||||
|
sudo yum update -y
|
||||||
|
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||||
|
sudo yum install -y https://apache.bintray.com/arrow/centos/7/apache-arrow-release-latest.rpm
|
||||||
|
sudo yum install -y --enablerepo=epel parquet-devel
|
||||||
|
sudo yum install -y lz4-devel thrift-devel libzstd-devel snappy-devel brotli-devel boost-devel boost-static libicu-devel openssl-devel
|
||||||
|
export CFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
|
||||||
|
}
|
||||||
|
|
||||||
|
install_prerequisites_ubuntu() {
|
||||||
# install Apache Arrow libs
|
# install Apache Arrow libs
|
||||||
# NOTE: Pinned to Ubuntu Focal
|
# NOTE: Pinned to Ubuntu Focal
|
||||||
wget https://apache.bintray.com/arrow/ubuntu/apache-arrow-archive-keyring-latest-focal.deb
|
wget https://apache.bintray.com/arrow/ubuntu/apache-arrow-archive-keyring-latest-focal.deb
|
||||||
|
@ -43,7 +53,7 @@ build_sqlite() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set_icu_version() {
|
set_icu_version() {
|
||||||
case "$ubuntu" in
|
case "$distro" in
|
||||||
14.04)
|
14.04)
|
||||||
export ICU_VERSION=52-1
|
export ICU_VERSION=52-1
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue