您的位置:首页 > 编程语言 > Java开发

Eclipse DDT

2016-01-21 18:24 459 查看
http://www.eclipse.org/downloads/
https://github.com/DDT-IDE/DDT/blob/latest/documentation/UserGuide.mdhttps://github.com/DDT-IDE/DDT/blob/latest/documentation/Installation.md#installationhttp://zhidao.baidu.com/link?url=GNBcn99VMm2YiVcgQIp7u71Woug0Qmh19zbL48W3zuPGeNzW8QG2gW9teG7o-OxCq2mliS612X_ANKbo6Pa-TxpjjDEMcF3c-XKHKkNGV-_http://stackoverflow.com/questions/25811824/ddt-error-standard-library-not-foundhttp://forum.dlang.org/post/kdmnwcozcwrjwzfdaetx@forum.dlang.orghttp://qiita.com/hayashikun/items/3b29e76d83e822c5ca24
#cd/usr/share/dmd
#mkdirdummy
#mkdirdummy/bin
#touchdummy/bin/dmd
#launchctlsetenvDUB_COMPILERS_PATH/usr/share/dmd/dummy/bin
#killallDock

What'sHappen?

ElCapitanにしたら、DDTが動かなくなった
DDTはEclipseのDDevelopmentToolで個人的には数少ないDのIDE中一番好きなんだけど、ElCapitanにしたら/usr/まわりが変わった影響か突然動かなくなった

下のConsoleには

>>Running:/usr/local/bin/dubdescribe
Failedtoinvokethecompilerdmdtodeterminethebuildplatform:/bin/sh:dmd:commandnotfound


と出て絶望
DStandardLibaryとかもErrornotfoundになってる

変更してCmd+Sしたあとに走るbuildは生きてる

ターミナルから

$/Applications/Eclipse.app


ってして起動すれば問題無く動く

試したこと

環境設定>DDT>DUBpathを
/usr/local/Cellar/dmd/2.068.2/bin/dub
にする→buildも死ぬ

.zshrcで環境変数に
DUB_COMPILERS_PATH="/usr/local/bin"
を追加→特に変化なし

結論

macapp環境変数
とかでググったらFinderとかLaunchpad経由で起動されるアプリにパスを足す方法が書いてあるけどめんどくさいのでコンソールから起動することにする
https://gcc.gnu.org/onlinedocs/gnat_ugn/Codesigning-the-Debugger.html
Up:MacOSTopics

9.4.1CodesigningtheDebugger

TheDarwinKernelrequiresthedebuggertohavespecialpermissionsbeforeitisallowedtocontrolotherprocesses.ThesepermissionsaregrantedbycodesigningtheGDBexecutable.Withoutthesepermissions,thedebuggerwillreporterrormessagessuchas:

Startingprogram:/x/y/foo
UnabletofindMachtaskportforprocess-id28885:(os/kern)failure(0x5).
(pleasecheckgdbiscodesigned-seetaskgated(8))

Codesigningrequiresacertificate.Thefollowingprocedureexplainshowtocreateone:

StarttheKeychainAccessapplication(in/Applications/Utilities/KeychainAccess.app)

SelecttheKeychainAccess->CertificateAssistant->CreateaCertificate...menu

Then:

Chooseanameforthenewcertificate(thisprocedurewilluse"gdb-cert"asanexample)

Set"IdentityType"to"SelfSignedRoot"

Set"CertificateType"to"CodeSigning"

Activatethe"Letmeoverridedefaults"option

Clickseveraltimeson"Continue"untilthe"SpecifyaLocationForTheCertificate"screenappears,thenset"Keychain"to"System"

Clickon"Continue"untilthecertificateiscreated

Finally,intheview,double-clickonthenewcertificate,andset"Whenusingthiscertificate"to"AlwaysTrust"

ExittheKeychainAccessapplicationandrestartthecomputer(thisisunfortunatelyrequired)

Onceacertificatehasbeencreated,thedebuggercanbecodesignedasfollow.InaTerminal,runthefollowingcommand:


$codesign-f-s"gdb-cert"<gnat_install_prefix>/bin/gdb


where"gdb-cert"shouldbereplacedbytheactualcertificatenamechosenabove,and<gnat_install_prefix>shouldbereplacedbythelocationwhereyouinstalledGNAT.Also,besurethatusersareintheUnixgroup
_developer
.


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
章节导航