自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 1745

原创 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 1665 1

原创 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 803

原创 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 4061

原创 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 1199

原创 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 573

转载 Win7+Ubuntu12.04(EasyBCD硬盘安装)

参考博文:http://yulu8211.blog.163.com/blog/static/8752567201242704448990/记录自己安装过程1)分区,在计算机上右键--管理--磁盘管理装Ubuntu分配的硬盘大小最好是(20G以上)不要太小,这里请注意,ubuntu和windows文件系统完全不同,所以我们划好要给ubuntu的分区后,删除

2013-05-08 09:27:31 568

原创 安装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 363

转载 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 1085

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除