无法在 OSX 上构建 MariaDB

Can't build MariaDB on OSX

我正在尝试在启用跟踪的最新 OSX 上构建 MariaDB,但它一直失败。首先,它找不到 lz4:

[ 95%] Building CXX object storage/spider/CMakeFiles/spider.dir/hs_client/socket.cpp.o
ld: library not found for -llz4
[ 95%] Built target simple_password_check
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [storage/mroonga/CMakeFiles/mroonga.dir/build.make:702: storage/mroonga/ha_mroonga.so] Error 1
[ 95%] Building CXX object storage/spider/CMakeFiles/spider.dir/hs_client/string_util.cpp.o
gmake[1]: *** [CMakeFiles/Makefile2:4031: storage/mroonga/CMakeFiles/mroonga.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

然后安装步骤失败:

libtool: link: ranlib .libs/liblzma.a
libtool: link: ( cd ".libs" && rm -f "liblzma.la" && ln -s "../liblzma.la" "liblzma.la" )
[ 95%] Performing install step for 'build_lzma'
Making install in api
/bin/sh: /Users/ruihpacheco/Desktop/server/storage/tokudb/PerconaFT/xz/src/build_lzma/build-aux/install-sh: Permission denied
gmake[5]: *** [Makefile:292: install-nobase_includeHEADERS] Error 126
gmake[4]: *** [Makefile:409: install-am] Error 2
gmake[3]: *** [Makefile:1391: install-recursive] Error 1
gmake[2]: *** [storage/tokudb/PerconaFT/CMakeFiles/build_lzma.dir/build.make:75: storage/tokudb/PerconaFT/xz/src/build_lzma-stamp/build_lzma-install] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:6161: storage/tokudb/PerconaFT/CMakeFiles/build_lzma.dir/all] Error 2
gmake: *** [Makefile:161: all] Error 2

我已经从 macports 安装了 lz4 并使用命令 sudo ./BUILD/compile-pentium64-debug-max 构建了库。

我构建它的唯一方法是使用未记录的选项 -DWITHOUT_DYNAMIC_PLUGINS=1。我确实尝试了评论中建议的所有内容。