Makefile中的%标记和系统通配符*的区别在于,*是应用在系统中的,%是应用在这个Makefile文件中的。(本文的测试环境是Windows7下使用MinGW提供的make.exe)例如,如果你想编译一个文件夹下的所有.c文件,你可能会这样写:1 %.o:%.c2 gcc -o $@ $...
分类:
其他好文 时间:
2014-09-18 16:11:44
阅读次数:
147
编译:ipvsadm-1.26编译错误问题[root@SquidMaster241ipvsadm-1.26]#make
make-Clibipvs
make[1]:Enteringdirectory`/root/ipvsadm-1.26/libipvs‘
gcc-Wall-Wunused-Wstrict-prototypes-g-fPIC-DLIBIPVS_USE_NL-DHAVE_NET_IP_VS_H-c-olibipvs.olibipvs.c
gcc-Wall-Wunused-..
分类:
其他好文 时间:
2014-09-18 09:53:14
阅读次数:
421
1.首先下载ntfs-3g
http://www.tuxera.com/community/ntfs-3g-download/
2.解压 $tar zxvf ntfs-3g_ntfsprogs-2011.4.12.tgz
3.在源码目录下依次执行./configure make make install
4.用root权限建立/sbin/mount.ntfs文件,内容如下:...
分类:
移动开发 时间:
2014-09-17 21:56:32
阅读次数:
260
simple factorygood:1 devide implementation and initialization2 use config file can make system more flexible (reflection)bad:1 all initialization work...
分类:
其他好文 时间:
2014-09-17 20:25:32
阅读次数:
246
1.通过sshpass让ssh记住密码实现ssh自动登陆
(1)安装sshpass
sudoapt-getinstallsshpass
或者
下载sshpass-1.05.tar.gz
shell>tarxvfsshpass-1.05.tar.gz
shell>cdsshpass-1.05
shell>make&&makeinstall
(2)测试
shell>/usr/local/bin/sshpass-p密码ss..
分类:
其他好文 时间:
2014-09-17 18:53:53
阅读次数:
225
make_heap原型:
std::make_heap
default (1)
template
void make_heap (RandomAccessIterator first, RandomAccessIterator last);
custom (2)
template
void make_heap (Rando...
分类:
其他好文 时间:
2014-09-17 18:43:42
阅读次数:
241
将安装文件拷贝至你的目录中
如果是以root身份登录上的,就将软件拷贝至/root中。
cp xxx.tar.gz /root
解压缩包
tar xvzf xxx.tar.gz
切换到安装目录下
cd xxx
执行安装
./configure
make
make install
各命令解释如下:
configure检查编译
make开始进行编译
...
分类:
系统相关 时间:
2014-09-17 16:59:22
阅读次数:
229
首先下载tar包地址http://www.python.org/ftp/python下载好之后解压tarxjvf在安装python时下载好tar包在./configure时报错提示configure:error:noacceptableCcompilerfoundin$PATH查资料得知是缺少gcc组件安装gcc组件即可再次进行./configure不再报错make&&makeinstall..
分类:
编程语言 时间:
2014-09-17 15:35:03
阅读次数:
190
CMAKE的使用Version 1.02009-3-18一、基本使用安装:下载二进制包后可直接解压使用从源码安装则执行命令:./bootstrap; make; make install——尝试执行bootstrap失败使用:cmake dir_path,生成工程文件或makefile文件二、概念o...
分类:
其他好文 时间:
2014-09-17 14:57:22
阅读次数:
336
configure: error: No curses/termcap library found网上有的说法是:--with-named-curses-libs=/usr/lib/libncursesw.so.5其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的...
分类:
其他好文 时间:
2014-09-17 13:38:42
阅读次数:
222