# download and extract CMAKE_VERSION=3.28.3 wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz tar -xf cmake-${CMAKE_VERSION}.tar.gz
# compile cd cmake-${CMAKE_VERSION} ./configure make -j 8 sudo make install
# compile cd /var/tmp/python ./configure --enable-optimizations make -j 8 # altinstall will not replace the system python, # which means you need to use python3.8 and pip3.8 instead of python3 and pip3 sudo make altinstall
# of course, you can use ln -s to make python3.8 as default python3, # because the centos 7 system python is 2.7 sudoln -s /usr/local/bin/python3.8 /usr/local/bin/python3 sudoln -s /usr/local/bin/pip3.8 /usr/local/bin/pip3
install node
Node 17 is the latest version which supports CentOS 7, due to the glibc version.
# add the following to ~/.config/lvim/config.lua vim.opt.shiftwidth = 4 -- the number of spaces inserted for each indentation vim.opt.tabstop = 4 -- insert spaces for a tab