kylebarron / stata-parquet-old

Read and write Parquet files from Stata
GNU General Public License v3.0
4 stars 0 forks source link

build parquet #3

Open kylebarron opened 6 years ago

kylebarron commented 6 years ago
conda create -n parquet-dev cmake git boost-cpp curl zlib snappy brotli thrift-cpp -c conda-forge
source activate parquet-dev
git clone https://github.com/apache/parquet-cpp
cd parquet-cpp
mkdir build
cd build
export PARQUET_BUILD_TOOLCHAIN=/home/kyle/local/anaconda3/envs/parquet-dev # path to conda environment
cmake ..
make
kylebarron commented 6 years ago

This works:

wget https://github.com/apache/parquet-cpp/archive/apache-parquet-cpp-1.4.0.tar.gz
extract apache-parquet-cpp-1.4.0.tar.gz
cd parquet-cpp-apache-parquet-cpp-1.4.0/
sed -i 's$http://archive.apache.org/dist/thrift$http://apache.cs.utah.edu/thrift$g' cmake_modules/ThirdpartyToolchain.cmake
mkdir build
cd build
cmake ..
make
kylebarron commented 6 years ago

This also works:

git clone https://github.com/apache/parquet-cpp
cd parquet-cpp
sed -i 's$http://archive.apache.org/dist/thrift$http://apache.cs.utah.edu/thrift$g' cmake_modules/ThirdpartyToolchain.cmake
mkdir build
cd build
cmake ..
make -j4
kylebarron commented 6 years ago

Script to build parquet-cpp with Arrow as a static dependency https://gist.github.com/kylebarron/ccb18fc99a0b847cefa3b7412fac214f