This article is for personal notes only
go language
go official website
go1.10.1 installation package download link
Install possible tools
yum install wget -y
Get the go language source package
wget https://dl.google.com/go/go1.10.1.src.tar.gz
Unzip to the specified folder
mkdir ~/opt tar zxvf go1.10.1.src.tar.gz -C ~/opt
Update environment variables and make environment variables take effect
vim ~/.bash_profile GOROOT_BOOTSTRAP=~/opt/go PATH=$PATH:$HOME/bin:$GOROOT_BOOTSTRAP/bin source /etc/profile
python language
python official website
python3.6.5 installation package download link
Install possible tools
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make wget -y
Get python3.6.5 language source package
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
Backup old python in case something goes wrong and cannot be restored
mv /usr/bin/python /usr/bin/python.bak
Unzip the installation configuration
tar -zxvf Python-3.6.5.tgz cd Python-3.6.5 ./configure prefix=/usr/local/python3 make && make install ln -s /usr/local/python3/bin/python3 /usr/bin/python ln -s /usr/local/python3/bin/python3 /usr/bin/python3
Solve the problem
Because the python2 version is required to execute yum, we also need to modify the configuration of yum and execute:
vi /usr/bin/yum 把 #! /usr/bin/python修改为#! /usr/bin/python2 同理 vi /bin/yum 把 #! /usr/bin/python 也要修改为#! /usr/bin/python2 同理 vi /usr/libexec/urlgrabber-ext-down 把 #! /usr/bin/python 也要修改为#! /usr/bin/python2
sqlite
sqlite official website
sqlite3.24.0 installation package download link
Install sqlite3.24.0
wget http://www.sqlite.org/snapshot/sqlite-snapshot-201804241859.tar.gz
tar -zxvf sqlite-snapshot-201804241859.tar.gz
cd sqlite-snapshot-201804241859
./configure
make
make install
update python internal sqlite
If you want to update sqlite inside python, first install the new version of sqlite, and then change the environment variable to add export LD_LIBRARY_PATH=, for example:
export LD_LIBRARY_PATH=/root/sqlite-snapshot-201804241859/.libs