如何在 Ubuntu 上修复 GCC fatal error: arrow/api.h: No such file or directory
问题:
编译 C++ 应用程序时,你看到类似这样的错误消息
arrow_api_error.txt
src/main.cpp:3:10: fatal error: arrow/api.h: No such file or directory
3 | #include <arrow/api.h>解决方案
你需要安装 Arrow C++ 库。
在 Ubuntu 上,你可以使用
install_libarrow_dev.sh
sudo apt update
sudo 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 -y
sudo apt -y install libarrow-dev对于其他操作系统,请查看官方 Arrow 安装指南,
Check out similar posts by category:
C/C++, GCC Errors
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow