mixiユーザー(id:7593622)

2020年01月20日23:08

75 view

Mac mini(Catalina)に Jubatus をインストール jubatus-installer でやってみよう 実行!(その3)log4cxxでエラーの対処

https://stackoverflow.com/questions/30317959/failed-to-build-log4cxx-0-10-0-on-mac-os-x-yosemite-10-10-3
によると、対処は homebrew の log4cxx.rb
https://github.com/Homebrew/legacy-homebrew/blob/56b57d583e874e6dfe7a417d329a147e4d4b064f/Library/Formula/log4cxx.rb
の記述を参考にして、解決したとのこと。

要は
(1) simpledateformat.h に対し、
  「#include <locale>」の追加
  「namespace std { class locale; }」の削除
(2) stringhelper.cpp に「#include <cstdlib>」の追加
をすればいいらしい。

それぞれこんな風に書かれている。
(1)
 --- a/src/main/include/log4cxx/helpers/simpledateformat.h
 +++ b/src/main/include/log4cxx/helpers/simpledateformat.h
 @@ -27,10 +27,9 @@

  #include <log4cxx/helpers/dateformat.h>
  #include <vector>
 +#include <locale>
  #include <time.h>

 -namespace std { class locale; }
 -
  namespace log4cxx
  {
  namespace helpers

(2)
 --- a/src/main/cpp/stringhelper.cpp
 +++ b/src/main/cpp/stringhelper.cpp
 @@ -28,6 +28,7 @@
  #endif
  #include <log4cxx/private/log4cxx_private.h>
  #include <cctype>
 +#include <cstdlib>
  #include <apr.h>


で、これを install.sh 内で sed を使って実現させたいわけだけども・・・。
0 0

コメント

mixiユーザー

ログインしてコメントを確認・投稿する

<2020年01月>
   1234
567891011
12131415161718
19202122232425
262728293031