Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DDT error: D Standard Library [Error: none found]

Tags:

macos

eclipse

d

ddt

I have installed dmd and ddt as instructed:

DMD64 D Compiler v2.066.0
Copyright (c) 1999-2014 by Digital Mars written by Walter Bright
Documentation: http://dlang.org/

but when I create a dub project in eclipse, I dot an error that says standard libray not found:

Alt text
(source: p.im9.eu)

any ideas?

OS: Mac OSX 10.9 Eclipse: 4.4 DDT: 0.10.2

like image 900
qed Avatar asked Jun 24 '26 12:06

qed


2 Answers

I've also posted a temporary workaround in the discussion group (link):

# cd /usr/share/dmd
# mkdir dummy
# mkdir dummy/bin
# touch dummy/bin/dmd
# launchctl setenv DUB_COMPILERS_PATH /usr/share/dmd/dummy/bin
# killall Dock

Note that the DUB_COMPILERS_PATH variable shouldn't point to the binary itself, it acts like an additional PATH variable, i.e should contain bin dirs.

To make this survive a reboot, add the launchctl line to /etc/launchd.conf:

launchctl setenv DUB_COMPILERS_PATH /usr/share/dmd/dummy/bin

You might need to create it if it doesn't already exist.

like image 83
Amir Abiri Avatar answered Jun 26 '26 03:06

Amir Abiri


This seems to be a reported bug of DDT:

https://github.com/bruno-medeiros/DDT/issues/75

Basically, it boils down to the directory structure of the installed dmd. As they are many distributions and many installers, each one with its own convention, DDT missed some.

They should be added and recognized shortly, in the pending release.

Please follow the reported issue on github/DDT page.

like image 42
user1284631 Avatar answered Jun 26 '26 04:06

user1284631



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!