Delve OS X Installation

xuanbao · · 661 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Does anyone have a great installation guide for Delve on OS X? I have been having some troubles. I have followed the instructions on the github, but still can&#39;t get it to work. I was struggling at first to codesign the cert, but think I finally got that to work by switching to the delve folder and running the make install command. After that I try running dlv command and it says &#34;Command not found&#34;. So I am sure I have something messed up, but I cannot find a good guide on this at all.</p> <hr/>**评论:**<br/><br/>jeffrallen: <pre><p>Your signed dlv is ready to use in /Users/jordanjuel/Projects/Go/bin. Add that directory to your PATH and it will work.</p></pre>jayjuicejay: <pre><p>Thank you!</p></pre>lobster_johnson: <pre><p>Did the <code>make install</code> actually complete without errors? If so, it probably put <code>dlv</code> in <code>/usr/local/bin</code>. Check if it&#39;s there. If it is, you probably messed up your <code>$PATH</code>; make sure your <code>.bash_profile</code> (or similar, depending on your shell) has something like:</p> <pre><code>export PATH=$PATH:/usr/local/bin </code></pre> <p>Then start a new shell.</p></pre>jayjuicejay: <pre><p>It is not in that location. I am not sure if it finished without errors. When I run the command in the delve folder: CERT=dlv-cert make install I get this output: go install -ldflags=&#34;-s&#34; github.com/derekparker/delve/cmd/dlv codesign -s dlv-cert /Users/jordanjuel/Projects/Go/bin/dlv If I run it from any other folder it doesn&#39;t work and gives me this output: make: *** No rule to make target `install&#39;. Stop.</p></pre>lobster_johnson: <pre><p>Looks like it installed in your <code>GOROOT</code>, which is <code>/Users/jordanjuel/Projects/Go/bin</code>. You should add that to <code>PATH</code>:</p> <pre><code>export PATH=$PATH:$HOME/Projects/Go/bin </code></pre> <p>Put this in <code>.bash_profile</code> or whatever.</p></pre>jayjuicejay: <pre><p>Thank you! </p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

661 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传