1. vim 编译报错
(1)
configure: error: could not configure X error: Bad exit status from /var/tmp/rpm-tmp.2xwoeZ (%build)`
先安装yum install libXt-devel
,之后再重新编译
./configure --prefix=%{_prefix} --enable-pythoninterp --enable-multibyte --with-x
忘了需不需要加这个了yum install python3-devel
(2) RPM build error: empty %files file debugfiles.list
参考: https://superuser.com/questions/1091529/rpm-build-error-empty-files-file-debugfiles-list
将rpmbuild -ba xx.spec
改为rpmbuild -ba -D 'debug_package %{nil}' xx.spec
2. 编译ccls报错
(1)
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
llvm和clang的包是分开的,需要安装llvm
和llvm-devel
yum install -y llvm
yum install -y llvm-devel
然后在/usr/lib64/cmake/llvm/LLVMConfig.cmake
就可以看到这个文件了
(2) 编译时报错: fatal error: ‘optional’ file not found
3. 编译gcc时报错
cannot find crt1.o
安装gcc时没有装 multilib, 因此编译时加了-disable-multilib
即,configure改为../gcc-wxg-7.5.0/configure --prefix=/root/software/gcc/install --with-dwarf-2 --disable-libstdcxx-dual-abi --disable-multilib