On Saturday, 16 January 2016 at 19:16:26 UTC, Jacob Carlborg
wrote:
On 2016-01-16 20:01, Russel Winder via Digitalmars-d-announce
wrote:
Trying the Debian build on Debian Sid, I still have the
libclang.so
problem, I have shown the list of things there are below.
Creating a
hack symbolic link I got it to work.
I've built the DStep against libclang provided by LLVM from
here [1]. It's easier to test multiple versions of libclang
that way. But I guess I could build the final binary against
the system provided libclang.
[1] http://llvm.org/releases/index.html
Help me with this please. Not sure what I'm doing wrong.
Attempting to compile from code I get:
anon@gwave ~/g/dstep> dub build
Performing "debug" build using dmd for x86_64.
tango 1.0.3+2.068: target for configuration "static" is up to
date.
mambo 0.0.7: target for configuration "library" is up to date.
dstack 0.0.4: target for configuration "library" is up to date.
dstep 0.1.1+commit.29.g015bd59: building configuration
"default"...
../../.dub/packages/mambo-0.0.7/mambo/util/Traits.d(154,39):
Deprecation: typedef is removed
../../.dub/packages/mambo-0.0.7/mambo/util/Traits.d(182,30):
Deprecation: typedef is removed
Linking...
ld: library not found for -lclang
clang: error: linker command failed with exit code 1 (use -v to
see invocation)
--- errorlevel 1
dmd failed with exit code 1.
So I download the pre-build binary. And now I get:
dmd failed with exit code 1.
anon@gwave ~/g/dstep> ~/Downloads/dstep
dyld: Library not loaded: @rpath/libclang.dylib
Referenced from: /Users/anon/Downloads/dstep
Reason: image not found
I've got clang installed:
anon@gwave ~/g/dstep> clang -v
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
And the path to the lib appended to $PATH environment variable
(do sure how to pass this to dub):
anon@gwave ~/g/dstep> mdfind -name libclang
/Library/Developer/CommandLineTools/usr/lib/libclang.dylib
anon@gwave ~/g/dstep> echo $PATH
/usr/local/bin /usr/bin /bin /usr/sbin /sbin
/Library/Developer/CommandLineTools/usr/lib/
Thanks