Files
infloop.life/source/_posts/2018-08-19.md
2019-11-21 01:42:01 +08:00

24 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "20180819本周总结"
date: 2018-07-03T13:26:50+08:00
draft: false
---
> 这周没有看太多书,值得留下的东西寥寥无几。
GDB image not found error
最近因为觉得golang的editor LiteIDE已经很好用了所以就尝试着用了一把。结果在debug的时候过需要提前装好GDB我直接使用的brew进行安装的也就是`brew install gdb`),但是当直接在终端中键入的时候会报错:
<!--more-->
`dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.6.dylib`以及`image not found`
的类似错误。但是Google并没有告诉我答案只是找到一个类似的相近的问题和回答[dyld: Library not loaded: /usr/local/lib/libmpfr.4.dylib](https://stackoverflow.com/questions/49457773/dyld-library-not-loaded-usr-local-lib-libmpfr-4-dylib)。看到了人家提到了brew于是继续顺藤摸瓜搜索了dyld查到了这个[OS X / MPFR](http://labs.beatcraft.com/en/index.php?OS%20X%20%2F%20MPFR),看到`brew install mpfr`便尝试了下神奇地发现居然问题解决了。GDB又可以用了
当然额外可以提一句的是在尝试对golang 程序进行debug的过程中其实GDB并不是那么强大比如并不支持goroutine也发现了个替代品[delve](https://github.com/derekparker/delve) 有兴趣的可以自行研究一下子~