- 包名称与链接库
包名称 | 链接名 |
---|---|
libbz2-dev | -lbz2 |
libncurses5 libncurses5-dev | -lcurses -lncurses |
- 环境安装
- 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
- ubuntu16 openvpn无法联网
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
配置文件加入上述配置
或者在/etc/resolv.conf中加入DNS
ubuntu刷新DNS
sudo /etc/init.d/dns-clean start
- 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++
- cuda
https://tensorflow.google.cn/install/gpu
- centos7
yum install centos-release-scl
yum install devtoolset-7-gcc*
update-alternatives --install /usr/bin/g++ g++ /opt/rh/devtoolset-7/root/bin/g++ 40
update-alternatives --install /usr/bin/gcc gcc /opt/rh/devtoolset-7/root/bin/gcc 40
sudo rpm -v --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum install exfat-utils fuse-exfat
- ubuntu – 找不到lgfortran
得到了错误
/usr/bin/ld: cannot find -lgfortran
虽然安装了:
ldconfig -p | grep fortran
libgfortran.so.3 (libc6,x86-64) => /usr/lib/libgfortran.so.3
解决办法:
sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/x86_64-linux-gnu/libgfortran.so
因为-lname选项(在本例中为name为gfortran)指示链接器在库搜索路径中搜索名为libname.a的库文件.如果找到并且没有 – [B]静态选项强制执行静态链接,则链接器将再次搜索libname.so并改为链接(如果找到).如果找不到libname.a,则尽管存在libname.so,仍会给出错误.
- centos7 代理实验
pip install shadowsocks
ssserver -p 443 -k password -m rc4-md5 --user nobody -d start
yum install privoxy
vim /etc/privoxy/config
listen-address :8118
enable-remote-toggle 1
forward-socks5 / 127.0.0.1:443
service privoxy restart
到此就可以直接使用这台机器作为http代理了,端口号为8118,使用其它机器测试
ubuntu20.04
sudo apt-get install privoxy
sudo vim /etc/privoxy/config
去掉forward-socks5t行注释,改成单位的ip:port
forward-socks5t / 192.168.0.119:3128 .
sudo /etc/init.d/privoxy restart
export http_proxy=“192.168.0.119:3128”
export https_proxy=“192.168.0.119:3128”
- 数学库
apt-get install libblas-dev liblapack-dev
apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
10 centos7 git升级
wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm && rpm -ivh wandisco-git-release-7-2.noarch.rpm
yum install git -y
- sshfs
sshfs mooz@192.168.6.83:/home/data data
- fusermount -u data
- unmount -l data
- centos7 glibcs 升级
下载升级文件:wget http://mirrors.ustc.edu.cn/gnu/libc/glibc-2.18.tar.gz
2、tar -zxvf glibc-2.18.tar.gz
3、cd glibc-2.18
4、mkdir build && cd build
5、…/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
6、编译项目make -j4
7、sudo make install
8、检查:strings /usr/lib64/libc.so.6 | grep GLIBC_2.1