- 博客(9)
- 收藏
- 关注
原创 64位机器上 编译32位程序
由于程序迁移,需要在64bit开发机上编译32bit的程序。在64位的机器上编译32位还是62位程序,主要是要编译器和链接器上加上参数据:-m32 (编译32位) -m64(编译64)在自己的makefile中添加"CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"即可因为项目中用到了boost库,编译32bit boost 命令如下
2013-07-30 15:30:49
1899
原创 boost.python 使用
(1) python-dev 安装sudo apt-get install python-dev(2) boost.python 库的安装sudo ./bjam toolset=gcc --build-type=complete --layout=versioned --with-python install(3) boost_python_test.cpp
2013-07-26 16:55:15
1769
原创 X64 ubuntu 12.04 安装ADT后 adb无法启动
ubuntu12.04 安装ADT后 提示 Cannot run program "********/android-sdk/platform-tools/adb": error=2googlehttp://stackoverflow.com/questions/13571145/android-adb-not-found于是 :sudo apt-get install ia
2013-06-01 18:46:39
833
原创 shmget 返回 -1, Invalid argument
man shmget 中明确说明: EINVAL A new segment was to be created and size SHMMAX, or no new segment was to be created, a segment with given key existed, but size is greater than the siz
2013-05-22 20:32:05
4210
原创 ubuntu 12.04 X64 编译安装 clearsilver 时错误
照文档提示安装clearsilver-0.10.5./confugure && make sudo make install 发现/usr/local/lib 下只有-rw-r--r-- 1 root root 292420 5月 20 16:26 libneo_cgi.a-rw-r--r-- 1 root root 597162 5月 20 16:
2013-05-20 16:28:38
1244
原创 web 开发,环境搭建
以前web server使用nginx,最近改用Apache,首先需要安装Apache1 下载安装Apache Portable Runtime(APR)wget http://mirror.bjtu.edu.cn/apache//apr/apr-1.4.6.tar.gz./configure && makesudo make install2 下载安装 APR-uti
2013-05-20 11:55:30
601
转载 Win7+Ubuntu12.04(EasyBCD硬盘安装)
参考博文:http://yulu8211.blog.163.com/blog/static/8752567201242704448990/记录自己安装过程1)分区,在计算机上右键--管理--磁盘管理装Ubuntu分配的硬盘大小最好是(20G以上)不要太小,这里请注意,ubuntu和windows文件系统完全不同,所以我们划好要给ubuntu的分区后,删除
2013-05-08 09:27:31
600
原创 安装libcurl 时注意事项
1 downloadwget http://curl.haxx.se/download/curl-7.29.0.tar.gz2 configue./configure --help./configure --disable-ldap --disable-ldaps3 make && make install
2013-02-26 13:32:26
410
转载 zookeeper 3.4.5 client 库recordio.h:76:9 错误
/usr/local/include/zookeeper/recordio.h:76:9: 错误: expected unqualified-id before ‘__extension__’/usr/local/include/zookeeper/recordio.h:76:9: 错误: expected ‘)’ before ‘__extension__’替换为如下
2013-02-08 21:46:43
1115
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人