static pthread_key_t key;static pthread_once_t key_once = PTHREAD_ONCE_INIT;void make_key(){ fprintf(stderr, "make_key\n"); pthread_key_create(&...
分类:
其他好文 时间:
2014-09-18 22:07:44
阅读次数:
454
Makefile是由一系列的rule规则组成,这些rule都遵循以下形式:target ... : prerequisites ... command ... ...target(目标) 一般来说是需要生成的程序(模块)的名字,也可以是要执行的动作的名字,这种情况叫做(Phony...
分类:
其他好文 时间:
2014-09-18 20:34:24
阅读次数:
222
tar式安装 -x,从归档中解出文件 -f,使用归档文件或 ARCHIVE 设备 -z,通过 gzip 过滤归档 -v,详细地列出处理的文件gcc用yum search gcc搜索,yum install gcc安装需安装pecl步骤configure --prefix=/dta make make...
分类:
其他好文 时间:
2014-09-18 18:18:14
阅读次数:
196
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