原创 valgrind的arm平臺移植

wget ftp://sourceware.org/pub/valgrind/valgrind-3.13.0.tar.bz2 因爲我的glib比較新,所以valgrind源碼下了個當前的最新版本,否則編譯的時候會提示不支持 tar xv

原创 socket編程bind出錯,因爲綁定重複的地址和端口

int flag=1,flaglen=sizeof(int); if ( (sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {

原创 內存調試工具electric-fence 使用(各種架構方法類似)

dpkg 的命令可用於查看 Debian/ Ubuntu 操作系統是 32 位還是 64 位,此命令只適用於基於 Debian 和 Ubuntu 的 Linux 發行版。 root@Ubuntu-core:~#     dpkg --pr

原创 gdb 調試的時候被信號終止

輸入命令info signals或 info handle 查看信號 用以下命令設置即可,收到SIGUSR1不會終止 handle SIGUSR1 nostop

原创 ubuntu 16.04 安裝chorme

下載鏈接 https://www.chrome64bit.com/index.php/google-chrome-64-bit-for-linux 安裝 sudo dpkg -i google-chrome-stable_current

原创 linux c 父進程判斷子進程退出狀態

父進程判斷子進程退出狀態 //正常退出判斷 if(WIFEXITED(status)){     printf("child exit with %d\n", WEXITSTATUS(status));

原创 dtb文件編譯

root@HK:~/kernel-imx-4.1.15-r0# make ARCH=arm CROSS_COMPILE=/usr/local/gcc-x64/4.9.3/bin/arm-none-linu

原创 linux c獲取long類型最大值

root@HK:~/document/svn/BLELock/ARM/source# gcc test.c root@HK:~/document/svn/BLELock/ARM/source# ./a.

原创 exec: /opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-gcc: not found

ubuntu 使用arm-linux-gcc提示,明明工具存在,而且環境變量也設置好了 /opt/FriendlyARM/toolschain/4.4.3/bin//arm-linux-gcc: 15: exec: /opt/Friend

原创 VS Code使用

下載鏈接 https://code.visualstudio.com/docs/?dv=linux64_deb for Linux 安裝 dpkg -i code_1.18.1-1510857349_amd64.deb 用root登

原创 解決libstdc++.so.6: cannot open shared object file: No such file or directory:問題

使用arm-linux-gcc工具時提示config.log提示 libstdc++.so.6: cannot open shared object file: No such file or directory: 原因在於,ubuntu

原创 openssl 移植

下載源碼,沒翻牆可能有點慢 https://www.openssl.org/source/ 解壓 tar zxvf openssl-1.1.0g.tar.gz 配置 ./config no-asm -shared --prefix=/ro

原创 ubuntu 16.04 LTS 安裝輸入法

輸入法 下載 http://pinyin.sogou.com/linux/ root@stephen-X550LC:/home/stephen/下載# dpkg -i sogoupinyin_2.1.0.

原创 ubuntu安裝jdk

1. 到官網下載壓縮包,解壓到下面目錄  sudo tar -zxvf jdk-8u144-linux-x64.tar.gz -C /usr/lib/jvm 2.修改環境變量:   sudo vim ~/.bashrc 文件的末尾追加下

原创 PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create() 引發的問題

================================== 安裝apach2 root@build-All-Series:~# apt install apache2 Reading package lists... Done