关于在各个平台上安装arrow的方法,官网上给了具体的步骤,参考地址。
我在win11和ubuntu23.04上安装成功了,在ubuntu22.10上没有安装成功,肯能是存在不兼容。
在ubuntu23.04上安装arrow cpp和c版本的方法:
sudo apt updatesudo apt install -y -V ca-certificates lsb-release wget wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb sudo apt update sudo apt install -y -V libarrow-dev # For C++ sudo apt install -y -V libarrow-glib-dev # For GLib (C) sudo apt install -y -V libarrow-dataset-dev # For Apache Arrow Dataset C++ sudo apt install -y -V libarrow-dataset-glib-dev # For Apache Arrow Dataset GLib (C) sudo apt install -y -V libarrow-acero-dev # For Apache Arrow Acero sudo apt install -y -V libarrow-flight-dev # For Apache Arrow Flight C++ sudo apt install -y -V libarrow-flight-glib-dev # For Apache Arrow Flight GLib (C) sudo apt install -y -V libarrow-flight-sql-dev # For Apache Arrow Flight SQL C++ sudo apt install -y -V libarrow-flight-sql-glib-dev # For Apache Arrow Flight SQL GLib (C) sudo apt install -y -V libgandiva-dev # For Gandiva C++ sudo apt install -y -V libgandiva-glib-dev # For Gandiva GLib (C) sudo apt install -y -V libparquet-dev # For Apache Parquet C++ sudo apt install -y -V libparquet-glib-dev # For Apache Parquet GLib (C)
在windows11上,我是采用vcpkg管理和安装arrow c++版本的,在ubuntu22.10上也安装成功了。
git clone cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install ./vcpkg install arrow
上面的命令仅供参考,需要在github上找到最新版本的vcpkg,根据安装的指令进行调整。
对了,需要从github上安装很多的包,所以,在国内环境下,最好能够用梯子连外网,这样安装会快一些。