1,ulimit -a查看默认参数2,ulimit -c 1024 设置core文件大小,如果超过1024个blocks,则不会产生core文件注:tune2fs -l /dev/sda8 输出分区信息,包括block大小,此处为4096程序:编译:g++ -g test.cpp3,gdb --co... Read More
posted @ 2014-09-19 10:18 2805101015 Views(131) Comments(0) Diggs(0) Edit
1,调试core dump 文件 ulimit -c 1024:设置coredump文件大小为1024,否则默认不会生成coredump文件 gdb -c core:gdb调试该coredump文件 file a.out:指定符号表文件 bt:打印堆栈信息2,插入断点: b/break 15 b f... Read More
posted @ 2014-09-19 10:17 2805101015 Views(1476) Comments(0) Diggs(0) Edit
编译没有问题,错误如图:错误原因:http://stackoverflow.com/questio ... ation-not-permittedgcc4.6以后对于ld自动加上了as-needed选项。所以编译选项应该变成:g++ -Wl,--no-as-needed -std=c++11 -pt... Read More
posted @ 2014-09-19 10:16 2805101015 Views(202) Comments(0) Diggs(0) Edit
1, 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边ln-s/where/you/install/lib/*.so/usr/libsudoldconfig2,修改LD_LIBRARY_PATHexportLD_LIBRARY_PATH=/where/you/instal... Read More
posted @ 2014-09-19 10:15 2805101015 Views(280) Comments(0) Diggs(0) Edit
1,编译错误截图2,解决方法这是由于没有链接对应的库导致的错误,在编译命令中加上 -lboost_system选项即可。 Read More
posted @ 2014-09-19 10:15 2805101015 Views(165) Comments(0) Diggs(0) Edit
Ctrl + a - Jump to the start of the lineCtrl + b - Move back a charCtrl + c - Terminate the command Ctrl + d - Delete from under the cursorCtrl + e - ... Read More
posted @ 2014-09-19 10:14 2805101015 Views(145) Comments(0) Diggs(0) Edit
top命令发现如下三个进程占据了前三的CPU使用率wpa_supplicantNetworkManagerrsyslogdgoogle发现前两个进程与无线网络有关,我的电脑是笔记本,插的有线,无线被硬件禁止了,所以电脑一直在试图开启无线功能导致CPU占用率在空载的情况下达到80%的水平,后来在软件中... Read More
posted @ 2014-09-19 10:14 2805101015 Views(138) Comments(0) Diggs(0) Edit
转载自:http://www.linuxidc.com/Linux/2013-07/87062.htm目标:在Ubuntu 13.04以及基于Ubuntu的发行版上安装fcitx小企鹅输入法,并安装Linux版本搜狗输入法。方法: 提供两种输入法,一种添加PPA安装,第二种直接添加源安装。实现过程:... Read More
posted @ 2014-09-19 10:14 2805101015 Views(686) Comments(0) Diggs(0) Edit
转载自:http://www.cnblogs.com/hnrainll/archive/2011/09/06/2168604.htmlLinux man命令的使用方法Linux提供了丰富的帮助手册,当你需要查看某个命令的参数时不必到处上网查找,只要man一下即可。Linux的man手册共有以下几个章... Read More
posted @ 2014-09-19 10:13 2805101015 Views(167) Comments(0) Diggs(0) Edit