cmake
1、解压
tar xf cmake-3.2.2.tar.gz
2、编译
cd cmake-3.2.2
sudo ./bootstrap
sudo make
3、安装
sudo make install
问题及解决:
ubuntu使用”apt-get install“安装程序时遇到错误提示
you might want to run 'apt-get -f install' to correct these
解决方案:
使用如下命令修复安装包
sudo apt-get --fix-broken install
或者使用命令
sudo dpkg --purge xxx
其中xxx为安装失败的程序,错误提示中会给出其名称,不过也有可能是错误提示中未给出的,但之前安装的确出错的程序。
cmake文件的结构:
├── bin
│ ├── ccmake
│ ├── cmake
│ ├── cmake-gui
│ ├── cpack
│ └── ctest
├── doc
│ └── cmake-2.8
├── man
│ └── man1
└── share
├── aclocal
├── applications
├── cmake-2.8
├── mime
└── pixmaps
make
wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz
tar -zxvf make-4.2.tar.gz
cd make-4.2
./configure
make
make install
ln -s -f /usr/local/bin/make /usr/bin/make
make -v
cmake --version
gcc -v
g++ -v
docker exec -it cc /bin/bash
sudo su
ssh root@111.111.111.111
参考:
https://blog.csdn.net/l297969586/article/details/76326265
http://blog.csdn.net/u012750702/article/details/52628902
http://download.csdn.net/detail/ma52103231/8726435
http://blog.csdn.net/u013467442/article/details/46566277
网友评论