lldb error: process launch failed: unable to locate lldb-server

♀尐吖头ヾ 提交于 2019-12-21 03:55:32

问题


I'm running Xubuntu 16.04. After installing lldb from the repositories, I get the following output when I try to use it:

lldb foo
(lldb) target create "foo"
Current executable set to 'foo' (x86_64).
(lldb) r
error: process launch failed: unable to locate lldb-server

Any ideas what I'm missing?


回答1:


After an hour or so of fiddling around, I found the solution. I copied /usr/bin/lldb-server-3.8 and named it /usr/bin/lldb-server. This is probably a problem with the ubuntu package.




回答2:


I recommend setting an alternative rather than copying. On Ubuntu, you can do this with:

sudo update-alternatives --install /usr/bin/lldb-server lldb-server /usr/bin/lldb-server-3.8 100


来源:https://stackoverflow.com/questions/37107432/lldb-error-process-launch-failed-unable-to-locate-lldb-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!