问题
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