發表文章

目前顯示的是 8月, 2022的文章

How to build Expat in linux/CentOS/Ubuntu/MacOS?

download tarball fron https://github.com/libexpat/libexpat/releases/download/R_2_4_8/expat-2.4.8.tar.gz  extract files with "tar xvfz expat-2.4.8.tar.gz"  cd expat-2.4.8 ./configure --prefix=/usr/local/expat/2_4_8 make clean make make install

How to build cmake from a tarball file?

 after download tarball, extract with "tar zxvf tarball.tgz" in Linux, UNIX   ./bootstrap   make   make install or   env CC=cc CXX=CC ./bootstrap   make   make install

How to build Python 3.x.x from a tarball file?

You can download Python 3.x.x tarball from: https://www.python.org/downloads/release/python-3106/ Extract the source using "tar zxvf Python-3.x.x.tgz" in windows, read the Quick Start Guide in PCbuild\readme.txt in Linux, following below: sudo apt-get install build-essential checkinstall sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \ libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev cd /usr/src sudo tar xzf Python-3.7.0.tgz cd Python-3.7.0 sudo ./configure --enable-optimizations sudo make altinstall ' make altinstall is used to prevent replacing the default python binary file /usr/bin/python. python3.7 -V Python-3.7.0

How to View Linux System Reboot Date and Time

 last reboot 顯示最近幾次重啟時間 who -b 顯示最近1次重啟時間