最小化安装有很多好处,要什么就装什么,但是因为来源不一,解压方法各不相同,依赖关系等等问题,也会导致我们安装各种软件或者库的过程比较复杂。所以列出一些比较常用的软件及其安装方法用来启发一下自己的学习之路。
lrzsz
安装过程:
# cd /tmp
# wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
# tar zxvf lrzsz-0.12.20.tar.gz && cd lrzsz-0.12.20
# ./configure && make && make install
上面安装过程默认把lsz和lrz安装到了/usr/local/bin/目录下, 下面创建软链接, 并命名为rz/sz:
# cd /usr/bin
# ln -s /usr/local/bin/lrz rz
# ln -s /usr/local/bin/lsz sz
libnl
下载地址:http://download.chinaunix.net/download/0006000/5947.shtml
版本libnl-3.2.25
用rz导入这个压缩包到板子解压缩并安装,
# tar zxvf libnl-3.2.25.tar.gz && cd libnl-3.2.25
# ./configure && make && make install
flex
下载地址:http://download.chinaunix.net/download/0004000/3101.shtml
版本:flex-2.5.4a.tar.gz
# tar zxvf flex-2.5.4a.tar.gz && cd flex-2.5.4a
# ./configure && make && make install
libnl-dev
sudo apt-get install libnl-dev
bzip2
安装bzip2 apt-get install bzip2
成功解压后cd进去:
# ./configure && make && make install
pkgconf
下载地址:http://download.chinaunix.net/download/0009000/8174.shtml
版本:pkgconfig-0.17.2.tar.bz2
导入解压:
解压tar.bz2出现错误信息:
tar (child): lbzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
这时要先安装上面的bzip2
iw
iw 是一种新的基于 nl80211 的用于无线设备的CLI配置实用程序。它支持最近已添加到内核所有新的驱动程序。采用无线扩展接口的旧工具iwconfig已被废弃,强烈建议切换到 iw 和 nl80211。像Linux内核的其余部分,iw 仍处于开发阶段。功能被随时添加。 iw 的唯一文档就是此页和“iw help”的输出。
关于iw详细介绍及用法的网址:
http://linuxwireless.org/en/users/Documentation/iw/#About_iw
hostapd
# vim defconfig
修改如下:
# cp defconfig .config
Makefile中LD后面加入-ldl -lz
出现问题:
make: warning: Clock skew detected.Your build may be incomplete.
# date -s 07/23/15
# date -s 10:18:30
# ./configure && make && make install
networkmanager
apt-get install network-manager