Closed2

MacでGroongaビルドエラーが発生する時に確認すること

hhattohhatto

環境

  • iMac Intel Core i7
  • macOS Sonoma 14.0
  • Groonga 13.0.9

エラーが発生するときのビルド手順

$ ./configure --disable-zeromq --with-luajit=no --with-ssl --with-zlib --without-libstemmer --with-mecab --disable-debug --disable-dependency-tracking
$ make

エラー内容

In file included from cursor-factory.cpp:19:
In file included from ./key-cursor.hpp:21:
In file included from ./vector.hpp:22:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/new:98:
../../version:1:1: error: expected unqualified-id
13.0.9
^
4 errors generated.
make[4]: *** [cursor-factory.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
hhattohhatto

ディレクトリを作成して一階層中に入ってからconfigureするとうまくいく

$ mkdir builddir
$ cd builddir
$ ./configure --disable-zeromq --with-luajit=no --with-ssl --with-zlib --without-libstemmer --with-mecab --disable-debug --disable-dependency-tracking
$ make

うまくいきました

このスクラップは2023/11/03にクローズされました