dlang-community / drepl

A REPL for D
Boost Software License 1.0
78 stars 20 forks source link

dub run drepl error #70

Open alexfalkowski opened 6 years ago

alexfalkowski commented 6 years ago
λ  languages/d/playground arf/dpl ✓ dub fetch drepl
Fetching drepl 0.2.0...
Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.

λ  languages/d/playground arf/dpl ✓ dub run drepl
Building package drepl in /Users/alexfalkowski/.dub/packages/drepl-0.2.0/drepl/
Fetching stdx-allocator 2.77.0 (getting selected version)...
Fetching linenoise 1.1.0+1.0.0 (getting selected version)...
Fetching libdparse 0.8.0 (getting selected version)...
Fetching colorize 1.0.5 (getting selected version)...
Package stdx-allocator can be upgraded from 2.77.0 to 2.77.2.
Package libdparse can be upgraded from 0.8.0 to 0.8.7.
Use "dub upgrade" to perform those changes.
Performing "debug" build using dmd for x86_64.
colorize 1.0.5: building configuration "library"...
stdx-allocator 2.77.0: building configuration "library"...
libdparse 0.8.0: building configuration "library"...
drepl 0.2.0: 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.

λ  languages/d/playground arf/dpl ✓ dub --version
DUB version 1.9.0, built on May  2 2018

λ  languages/d/playground arf/dpl ✓ dmd --version
DMD64 D Compiler v2.080.1
Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved written by Walter Bright

λ  languages/d/playground arf/dpl ✓ uname -a
Darwin Alexs-Computer.local 17.6.0 Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
alexfalkowski commented 6 years ago

What am I missing?

jondegenhardt commented 5 years ago

I get the same error. I'm using OSX. Fails with both ldc (1.12.0) and dmd (2.082.0). Any thoughts on what the problem might be?

jondegenhardt commented 5 years ago

Turns out this is a duplicate of #39. drepl won't work on OS X until OS X has shared library support.

wilzbach commented 5 years ago

For people bumping into this, using the docker image might work for you:

docker run -ti dlanguage/drepl
dgellow commented 4 years ago

If macOS isn't supported, shouldn't the README be updated to specify that's the case? Currently I can read:

Works on any OS with full shared library support by DMD (currently linux, OSX, and FreeBSD).

That's incorrect, right?