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
DDTはEclipseのDDevelopmentToolで個人的には数少ないDのIDE中一番好きなんだけど、ElCapitanにしたら/usr/まわりが変わった影響か突然動かなくなった
下のConsoleには
と出て絶望
DStandardLibaryとかもErrornotfoundになってる
変更してCmd+Sしたあとに走るbuildは生きてる
ターミナルから
ってして起動すれば問題無く動く
.zshrcで環境変数に
https://gcc.gnu.org/onlinedocs/gnat_ugn/Codesigning-the-Debugger.html
Up:MacOSTopics
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:
#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経由で起動されるアプリにパスを足す方法が書いてあるけどめんどくさいのでコンソールから起動することにする
Up:
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.
相关文章推荐
- RxJava 入门
- JAVA NIO实现服务端与客户端简单数据传输 JAVA NIO 之一
- Red Hat5.5安装JAVA(JDK)显示的版本不对
- java图片移动(键盘控制)
- Java中父类强制转换成子类的原则
- Java NIO使用及原理分析(三)
- 解决报错error the @annotation pointcut expression is only supported at Java 5
- JAVA和JAVAC命令
- 解决报错error the @annotation pointcut expression is only supported at Java 5
- Java泛型
- Unsupported major.minor version 52.0
- Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
- java基础——垃圾收集器
- eclipse 远程调试
- Java NIO使用及原理分析(二)
- java中对cookie的读写操作
- Java中常用的锁分析总结
- Java NIO使用及原理分析 (一)
- Java中static静态类和静态方法隐藏、重写、继承
- eclipse弹出workspace选择框