Closed jkleiser closed 5 years ago
I now uninstalled dmd and dub by running the uninstall.command. Then I installed dmd (v2.085.0) and dub, by "brew install dmd" and "brew install dub". I can now "dub build" several vibe.d examples (http_server, http_static_server, websocket) without problems. I conclude that there are problems with the dmd.2.085.0.dmg and dmd.2.085.1.dmg macOS installers.
I still have some linking problems with drepl, however:
drepl 0.2.1: building configuration "console"...
Running pre-build commands...
Linking...
Undefined symbols for architecture x86_64:
"_rt_loadLibrary", referenced from:
__D4core7runtime7Runtime__T11loadLibraryZQoFxAaZPv in drepl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1
dmd failed with exit code 1.
This seems to be a duplicate of #39 and #70. (drepl won't work on OS X until OS X has shared library support.)
Closing as duplicate then.
Btw using the docker image might work for you in the meantime: docker run -ti dlanguage/drepl
After having done
dub fetch drepl
successfully, I dodub run drepl
. That job ends like this:I have tried with both DMD64 D Compiler v2.085.0 and v2.085.1. I'm running macOS 10.14.4 (the latest).
I first reported this problem here https://issues.dlang.org/show_bug.cgi?id=19801, but then I was advised to report it here instead.