Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on MacOS 10.14 mojave #20

Open
abcjjy opened this issue Nov 23, 2018 · 1 comment
Open

Build error on MacOS 10.14 mojave #20

abcjjy opened this issue Nov 23, 2018 · 1 comment

Comments

@abcjjy
Copy link

abcjjy commented Nov 23, 2018

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

@zek
Copy link

zek commented May 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants