CLANG格式在缺少libtinfo.so.5库中不起作用
clang-format not working in missing libtinfo.so.5 library
我正在尝试在 Ubuntu 20 中设置 vim 以进行C++编辑。我想使用 clang 格式来格式化我的文件。我的 vimrc 如下所示:
map <C-K> :py3f /usr/local/clang-10.0.0/share/clang/clang-format.py<cr>
imap <C-K> <c-o>:py3f /usr/local/clang-10.0.0/share/clang/clang-format.py<cr>
当我通过在代码块上按 C-k 在 vim 中运行它时,我收到此错误:
b'clang-format: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directoryn'
No output from clang-format (crashed?).
Please report to bugs.llvm.org.
以前有人遇到过这种情况吗?我该如何解决此问题?
整理出来了。看起来 Ubuntu 20 有 libtinfo.so.6。我使用以下方法安装了libtinfo.so.5软件包:
sudo apt update && sudo apt install -y libtinfo5
注意 - 我看到一些关于在libtinfo.so.6文件上做别名"ln -s"的帖子。这对我不起作用。
相关文章:
- 我的神经网络不起作用 [XOR 问题]
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- C++映射:具有自定义类的运算符[]不起作用(总是返回0)
- C++为什么尽管我调用了void函数,它却不起作用
- 为什么在保护模式下继承升级不起作用
- 循环在计数器中不起作用
- 在其他文件中创建类时在 c++ 项目中不起作用
- Visual studio代码重构似乎不起作用(例如,重命名符号-f2)
- 为什么二进制搜索在我的测试中不起作用
- 我的代码中有错误吗?使用BGI图形的C++代码对我不起作用
- 为什么 const std::p air<K,V>& 在 std::map 上基于范围的 for 循环不起作用?
- 带有指定长度字符* 参数的 std::regex_search 在 VS2017 中不起作用?
- Bjarne Stroustrup Book - std_lib_facilities.h - 不起作用(未知类型名称)
- 为什么简单的算术减法在"if"条件下不起作用?
- 为什么Stroustup书中的has_f不起作用
- 你能检查一下为什么在这个代码中从链接列表中删除项目不起作用吗
- 嵌套While循环不起作用(C++问题)
- C++Matching Brackets 2解决方案不起作用
- CLANG格式在缺少libtinfo.so.5库中不起作用
- 使用 bazel 构建 TensorFlow C++调用模型时,.so 文件不起作用