Skip to content

Instantly share code, notes, and snippets.

@omas-public
Created June 6, 2024 05:03
Show Gist options
  • Save omas-public/2b4a8009f6595e1117a220099249dd1c to your computer and use it in GitHub Desktop.
Save omas-public/2b4a8009f6595e1117a220099249dd1c to your computer and use it in GitHub Desktop.

CentOSにneovimをInstall

enviroment

  • CentosBox/Centos-7-v7.4-Minimal-CLI (on Vagrant)
  • gcc 4.8.5

Install

update

$ sudo yum update

gcc

refer1 refer2

13.3.0 source

configure

$ ./contrib/download_prerequisites
$ mkdir build && cd $_
$ ../configure --prefix=/usr/local --enable-languages=c,c++ --disable-multilib --disable-bootstrap
$ make > /dev/null
$ make test
$ sudo make install
  • stdc++.so.6 確認

openssl

refer

$ sudo yum install perl perl-IPC-Cmd perl-Test-Simple
$ curl -OL https://www.openssl.org/source/openssl-3.3.0.tar.gz
$ tar zxf openssl-3.3.0.tar.gz
$ make test
$ sudo make install
$ sudo ldconfig -p | grep libssl.so.3
$ sudo sh -c 'echo /usr/local/lib64 > /etc/ld.so.conf.d/local.conf'
$ sudo ldconfig

Python3

refer source

3.12.3

# yum install  zlib-devel libffi-devel -y
# curl -OL https://www.python.org/ftp/python/3.12.3/Python-3.12.3.tgz
# tar zxf Python-3.12.3.tgz && cd $_
# ./configure --enable-optimizations --with-lto
# make 
# make altinstall

sudo yum install bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libuuid-devel xz-devel

snap

refer

$ sudo yum install snapd
$ sudo systemctl enable --now snapd.socket
$ sudo ln -s /var/lib/snapd/snap /snap

neovim

$ sudo snap install nvim --classic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment