Compiling Facebook Redex on OSX Yosemite

感情迁移 提交于 2019-12-12 02:53:52

问题


So I installed redex on Ubuntu last night and everything went smoothly. I'm having trouble today setting it up on my Mac.

There are 3 errors I'm getting at this autoreconf -ivf && ./configure && make && make install step.

Please install double-conversion library

Please install google-glog library

Please install google-gflags library

I dont get these all at once. I got the first one so I followed the solution here but that didn't work so I just deleted that check from the configure.ac file. This led to the second error, which then led to the 3rd.

I'm not sure why this is happening, I followed the exact same steps as I did last night.

Any suggestions?

So I followed the suggestion from Ralph and now I've got a different error -

      ...
  "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

回答1:


you have to do the following steps

xcode-select --install and brew link --force openssl

after that add #include <stddef.h> line into third-party/folly/folly/portability/Malloc.h

see this post




回答2:


Looks like there were bugs in the code that needed to get ironed out. The fun of early adopters ;)

https://github.com/facebook/redex/commits/master

It's working for me now.



来源:https://stackoverflow.com/questions/36607316/compiling-facebook-redex-on-osx-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!