在 OSX Yosemite 上编译 Facebook Redex
Compiling Facebook Redex on OSX Yosemite
所以我昨晚在 Ubuntu 上安装了 redex,一切都很顺利。
我今天在 Mac.
上设置时遇到问题
我在这 autoreconf -ivf && ./configure && make && make install
步骤中遇到了 3 个错误。
Please install double-conversion library
Please install google-glog library
Please install google-gflags library
我不是一下子搞定这些的。我得到了第一个,所以我按照解决方案 进行操作,但那没有用,所以我只是从 configure.ac 文件中删除了该检查。这导致了第二个错误,然后导致了第三个错误。
我不确定为什么会这样,我按照与昨晚完全相同的步骤操作。
有什么建议吗?
所以我听从了 Ralph 的建议,现在我遇到了一个不同的错误 -
...
"double_conversion::StringToDoubleConverter::StringToIeee(char const*, int, int*, bool) const", referenced from:
folly::detail::str_to_float(folly::Range<char const*>*) in libfolly.a(Conv.o)
folly::detail::str_to_double(folly::Range<char const*>*) in libfolly.a(Conv.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [redex-all] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
您必须执行以下步骤
xcode-select --install
和 brew link --force openssl
之后将 #include <stddef.h>
行添加到 third-party/folly/folly/portability/Malloc.h
看起来代码中有错误需要解决。尝鲜的乐趣 ;)
https://github.com/facebook/redex/commits/master
它现在对我有用。
所以我昨晚在 Ubuntu 上安装了 redex,一切都很顺利。 我今天在 Mac.
上设置时遇到问题我在这 autoreconf -ivf && ./configure && make && make install
步骤中遇到了 3 个错误。
Please install double-conversion library
Please install google-glog library
Please install google-gflags library
我不是一下子搞定这些的。我得到了第一个,所以我按照解决方案
我不确定为什么会这样,我按照与昨晚完全相同的步骤操作。
有什么建议吗?
所以我听从了 Ralph 的建议,现在我遇到了一个不同的错误 -
...
"double_conversion::StringToDoubleConverter::StringToIeee(char const*, int, int*, bool) const", referenced from:
folly::detail::str_to_float(folly::Range<char const*>*) in libfolly.a(Conv.o)
folly::detail::str_to_double(folly::Range<char const*>*) in libfolly.a(Conv.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [redex-all] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
您必须执行以下步骤
xcode-select --install
和 brew link --force openssl
之后将 #include <stddef.h>
行添加到 third-party/folly/folly/portability/Malloc.h
看起来代码中有错误需要解决。尝鲜的乐趣 ;)
https://github.com/facebook/redex/commits/master
它现在对我有用。