当我尝试安装国产开源关系型数据库劔时,遇到了一些问题
我想做的事情 (Wǒ zuò de
2023年10月发布了名为劔(Tsurugi)的国产RDB作为开源项目。目前,它只能在Ubuntu 22.04的操作系统下运行。由于我使用的是Windows环境,因此我尝试在WSL+Ubuntu 22.04上进行安装。
安装 Ubuntu 22.04
我将从Microsoft Store下载并安装Ubuntu 22.04.2 LTS。
由于环境不同,有时会出现错误(我也是如此),所以以下的文章可能会有所帮助。
安裝劍
安装步骤手册已在Github上公开。按照从上到下的顺序进行即可。
卡住了!
在《操作手册》的第三章“Tsurugi的安装”中出现了以下错误。
$./install.sh --prefix=$HOME/opt --symbolic
** 省略 **
Make Error at CMakeLists.txt:93 (find_package):
By not providing "FindArrow.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Arrow", but
CMake did not find one.
Could not find a package configuration file provided by "Arrow" with any of
the following names:
ArrowConfig.cmake
arrow-config.cmake
Add the installation prefix of "Arrow" to CMAKE_PREFIX_PATH or set
"Arrow_DIR" to a directory containing one of the above files. If "Arrow"
provides a separate development package or SDK, be sure it has been
installed.
--Configuring incomplete, errors occurred!
See so "/home/username/inst/jogasaki/build-shirakami/CMakeFiles/CMakeOutput.log
我在错误消息中搜索后发现有关Apache Arrow C++的必要性的相关错误消息。
根据这个答案,我尝试根据下面的页面安装Apache Arrow。也许并不需要执行全部步骤…
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
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)
执行了以上步骤后再次进行安装,成功了!
$ ./install.sh --prefix=$HOME/opt --symbolic
** 省略 **
------------------------------------
[Install Tsurugi successful]
Install Directory: $HOME/opt/tsurugi-1.0.0-BETA1
------------------------------------