系统库

  1. 包名称与链接库
包名称 链接名
libbz2-dev -lbz2
  1. 环境安装
  • ubuntu14 安装jdk
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac
  1. ubuntu16 open无法联网
script-security 2
up /etc/open/update-resolv-conf
down /etc/open/update-resolv-conf

配置文件加入上述配置
或者在/etc/resolv.conf中加入DNS

  1. ubuntu16 gcc升级
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update 
sudo apt-get install gcc-8
sudo apt-get install g++-8

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
sudo update-alternatives --config gcc

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
sudo update-alternatives --config g++

你可能感兴趣的:(系统)