Linux--隨記筆談
阿新 • • 發佈:2018-11-11
Linux–隨記筆談
輸出後的jason文字,一直跳動
# echo "MeepoPS Start: \033[40G[\033[49;32;5mjaosn\033[0m]\n";
Ubuntu16 php編譯安裝openssl
1.# cd /php-7.2.6/ext/openssl 2.# mv config0.m4 config.m4 //否則報錯:找不到config.m4 3.# /usr/local/php/bin/phpize (報錯Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.)(執行apt-get insatall autoconf) 4.# ./configure -with-openssl --with-php-config=/usr/local/php/bin/php-config 報錯configure: error: Cannot find OpenSSL's ,解決apt-get install libssl-dev
問題一
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
解決:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
sudo apt-get update
linux apt-get安裝和解除安裝命令
apt-get update:更新安裝列表
apt-get upgrade:升級軟體
apt-get install software_name :安裝軟體
apt-get --purge remove software_name :解除安裝軟體及其配置
apt-get autoremove software_name:解除安裝軟體及其依賴的安裝包