lua-requests icon indicating copy to clipboard operation
lua-requests copied to clipboard

Build error on MacOS 10.14 mojave

Open abcjjy opened this issue 7 years ago • 1 comments

Xml library is dead and can't compile on Mojave. Please remove it.

Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-requests-1.2-0.src.rock... Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-requests-1.2-0.src.rock... switching to 'build' mode

Missing dependencies for lua-requests: xml luasec >= 0.5.1 lbase64 md5

Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/xml-1.1.3-1.src.rock... switching to 'build' mode env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/opt/local/include -c src/Parser.cpp -o src/Parser.o -Iinclude -Isrc/bind -Isrc/vendor warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] In file included from src/Parser.cpp:1: In file included from include/xml/Parser.h:33: src/bind/dub/dub.h:62:10: fatal error: 'string' file not found #include // std::string for Exception ^~~~~~~~ 1 warning and 1 error generated.

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/xml-1.1.3-1.src.rock - Build error: Failed compiling object src/Parser.o

abcjjy avatar Nov 23 '18 08:11 abcjjy

Can't believe this is still open.

This error caused by xml library https://github.com/lubyk/xml

I've found https://docs.brew.sh/C++-Standard-Libraries . So you can just run

brew install gcc@7

luarocks install lua-requests  CC=gcc-7 LD=gcc-7

zek avatar May 21 '20 21:05 zek