昨天手贱,在apt-get install 后有一大堆,上百个安装包not upgrade, 发现有提示apt-get autoremove,犹豫了很久后还是忍不住执行了autoremove;这个命令是带着auto的,想着应该没事。到网上搜罗下autoremove,吓我一跳。。。

然后这个debian,坚如磐石,从没出过任何问题的OS,突然没网络了,ifconfig下;eth0的网卡没了,折腾了一两个小时也没恢复,想想应该与我autoremove相关;

哎,手贱。。。

然后,幸运的发现我所有的与编程相关的都是独立放在一块虚拟硬盘上的,谢天谢地,还好还好。

正好也是我把开发环境转到64位的机会吧,然后把这个挂到debian64的机器下;重新部署安装ice环境;

1 openssl的安装

sudo apt-get install libssl-dev

这个命令后,头文件部署最新的,会报BN_开头的函数未定义;

如果使用openssl源码编译安装,但是默认编译生成的是静态库.a的(libcrypto.a, libssl.a),ice需要.so动态库;

修改了几次config文件没生效,就用上面的apt-get命令得到了动态库

git clone --recursive https://github.com/openssl/openssl.git

cd ./openssl

make

sudo make install

#opensssl 

sudo apt-get install libssl-dev

sudo cp /usr/local/ssl/include/openssl/ /usr/local/include/ -r

#bzip2 安装

sudo apt-get install  libbz2-dev

sudo apt-get install libexpat1-dev

sudo apt-get install liblmdb-dev

#for php, 

sudo apt-get install python-dev
ICE 3.7现在只支持php5.6, 对php7.0有几个函数参数不一致,还不能编译

php7.0与ICE3.7编译错误如下

berli@server:~/Dev/Ice/ice/php$ make
making all in src
make[1]: Entering directory '/home/berli/Dev/Ice/ice/php/src'
making all in IcePHP
make[2]: Entering directory '/home/berli/Dev/Ice/ice/php/src/IcePHP'
g++ -c -I. -I../../../cpp/include -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -m64 -fvisibility=hidden -Wall -Werror -pthread -fPIC -g Communicator.cpp
In file included from /usr/local/include/php/Zend/zend.h:39:0,
from /usr/local/include/php/main/php.h:35,
from ./Config.h:53,
from ./Communicator.h:13,
from Communicator.cpp:10:
./Util.h: In destructor ‘IcePHP::AutoDestroy::~AutoDestroy()’:
/usr/local/include/php/Zend/zend_variables.h:122:76: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void _zval_ptr_dtor(zval*)’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
./Util.h:157:30: note: in expansion of macro ‘zval_ptr_dtor’
~AutoDestroy() { if(_zv) zval_ptr_dtor(&_zv); }
^
Communicator.cpp: At global scope:
Communicator.cpp:181:8: error: ‘zend_object_value’ does not name a type
static zend_object_value handleAlloc(zend_class_entry* TSRMLS_DC);
^
Communicator.cpp:183:8: error: ‘zend_object_value’ does not name a type
static zend_object_value handleClone(zval* TSRMLS_DC);
^
Communicator.cpp: In function ‘void zim_Ice_Communicator_proxyToString(zend_execute_data*, zval*)’:
Communicator.cpp:285:10: error: ‘RETURN_STRINGL’ was not declared in this scope
(RETURN_STRINGL)(STRCAST(str.c_str()), static_cast<int>(str.length()), 1);
^
Communicator.cpp: In function ‘void zim_Ice_Communicator_identityToString(zend_execute_data*, zval*)’:
Communicator.cpp:418:10: error: ‘RETURN_STRINGL’ was not declared in this scope
(RETURN_STRINGL)(STRCAST(str.c_str()), static_cast<int>(str.length()), 1);
^
Communicator.cpp: At global scope:
Communicator.cpp:768:8: error: ‘zend_object_value’ does not name a type
static zend_object_value
^
Communicator.cpp:797:8: error: ‘zend_object_value’ does not name a type
static zend_object_value
^
In file included from /usr/local/include/php/main/php.h:39:0,
from ./Config.h:53,
from ./Communicator.h:13,
from Communicator.cpp:10:
Communicator.cpp: In function ‘void zif_Ice_initialize(zend_execute_data*, zval*)’:
/usr/local/include/php/Zend/zend_API.h:258:59: error: cannot convert ‘zval*** {aka _zval_struct***}’ to ‘zval* {aka _zval_struct*}’ for argument ‘2’ to ‘int _zend_get_parameters_array_ex(int, zval*)’
_zend_get_parameters_array_ex(param_count, argument_array)
^
Communicator.cpp:901:8: note: in expansion of macro ‘zend_get_parameters_array_ex’
if(zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) == FAILURE)
^
Communicator.cpp:923:29: error: ‘Z_TYPE_PP’ was not declared in this scope
if(Z_TYPE_PP(args[0]) == IS_ARRAY)
^
Communicator.cpp:933:73: error: ‘Z_OBJCE_PP’ was not declared in this scope
if(Z_TYPE_PP(args[1]) != IS_OBJECT || Z_OBJCE_PP(args[1]) != initClass)
^
Communicator.cpp:942:70: error: ‘Z_OBJCE_PP’ was not declared in this scope
else if(Z_TYPE_PP(args[0]) == IS_OBJECT && Z_OBJCE_PP(args[0]) == initClass)
^
Communicator.cpp:965:116: error: cannot convert ‘char*’ to ‘zend_string* {aka _zend_string*}’ for argument ‘2’ to ‘zval* zend_hash_find(const HashTable*, zend_string*)’
if(zend_hash_find(Z_OBJPROP_P(zvinit), STRCAST(member.c_str()), static_cast<uint>(member.size() + 1), &data) == SUCCESS)
^
Communicator.cpp:975:116: error: cannot convert ‘char*’ to ‘zend_string* {aka _zend_string*}’ for argument ‘2’ to ‘zval* zend_hash_find(const HashTable*, zend_string*)’
if(zend_hash_find(Z_OBJPROP_P(zvinit), STRCAST(member.c_str()), static_cast<uint>(member.size() + 1), &data) == SUCCESS)
^
Communicator.cpp:993:37: error: ‘PZVAL_IS_REF’ was not declared in this scope
if(zvargs && PZVAL_IS_REF(zvargs))
^
Communicator.cpp: In function ‘bool IcePHP::communicatorInit()’:
Communicator.cpp:1421:24: error: ‘handleAlloc’ was not declared in this scope
ce.create_object = handleAlloc;
^
Communicator.cpp:1424:27: error: ‘handleClone’ was not declared in this scope
_handlers.clone_obj = handleClone;
^
Communicator.cpp: In member function ‘virtual void IcePHP::CommunicatorInfoI::getZval(zval*)’:
Communicator.cpp:1564:17: error: lvalue required as left operand of assignment
Z_TYPE_P(z) = IS_OBJECT;
^
Communicator.cpp: In member function ‘virtual void IcePHP::CommunicatorInfoI::addRef()’:
Communicator.cpp:1573:20: error: ‘const zend_object_handlers’ has no member named ‘add_ref’
Z_OBJ_HT_P(p)->add_ref(p TSRMLS_CC);
^
Communicator.cpp: In member function ‘virtual void IcePHP::CommunicatorInfoI::decRef()’:
Communicator.cpp:1580:19: error: ‘const zend_object_handlers’ has no member named ‘del_ref’
Z_OBJ_HT(zv)->del_ref(p TSRMLS_CC);
^
Communicator.cpp: In member function ‘bool IcePHP::CommunicatorInfoI::findObjectFactory(const string&, zval*)’:
Communicator.cpp:1636:22: error: ‘INIT_PZVAL’ was not declared in this scope
INIT_PZVAL(zv);
^
Communicator.cpp: In member function ‘bool IcePHP::CommunicatorInfoI::findValueFactory(const string&, zval*)’:
Communicator.cpp:1651:22: error: ‘INIT_PZVAL’ was not declared in this scope
INIT_PZVAL(zv);
^
In file included from /usr/local/include/php/Zend/zend.h:39:0,
from /usr/local/include/php/main/php.h:35,
from ./Config.h:53,
from ./Communicator.h:13,
from Communicator.cpp:10:
Communicator.cpp: In member function ‘void IcePHP::CommunicatorInfoI::destroyObjectFactories()’:
/usr/local/include/php/Zend/zend_variables.h:122:76: error: cannot convert ‘_zval_struct**’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void _zval_ptr_dtor(zval*)’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
Communicator.cpp:1669:9: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&p->second);
^
Communicator.cpp: In member function ‘void IcePHP::CommunicatorInfoI::destroyValueFactories()’:
/usr/local/include/php/Zend/zend_variables.h:122:76: error: cannot convert ‘_zval_struct**’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void _zval_ptr_dtor(zval*)’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
Communicator.cpp:1679:9: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&p->second);
^
Communicator.cpp: In member function ‘virtual Ice::ObjectPtr IcePHP::ObjectFactoryI::create(const string&)’:
Communicator.cpp:1744:26: error: ‘MAKE_STD_ZVAL’ was not declared in this scope
MAKE_STD_ZVAL(arg);
^
Communicator.cpp:1745:10: error: ‘ZVAL_STRINGL’ was not declared in this scope
(ZVAL_STRINGL)(arg, STRCAST(id.c_str()), static_cast<int>(id.length()), 1);
^
Communicator.cpp:1752:128: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘zval* zend_call_method(zval*, zend_class_entry*, zend_function**, const char*, size_t, zval*, int, zval*, zval*)’
zend_call_method(&factory, 0, 0, const_cast<char*>(func), static_cast<int>(strlen(func)), &obj, 1, arg, 0 TSRMLS_CC);
^
In file included from /usr/local/include/php/Zend/zend.h:39:0,
from /usr/local/include/php/main/php.h:35,
from ./Config.h:53,
from ./Communicator.h:13,
from Communicator.cpp:10:
/usr/local/include/php/Zend/zend_variables.h:122:76: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void _zval_ptr_dtor(zval*)’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
Communicator.cpp:1760:9: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&arg);
^
Communicator.cpp:1792:22: error: ‘MAKE_STD_ZVAL’ was not declared in this scope
MAKE_STD_ZVAL(obj);
^
Communicator.cpp: At global scope:
Communicator.cpp:786:1: error: ‘void handleFreeStorage(void*)’ defined but not used [-Werror=unused-function]
handleFreeStorage(void* p TSRMLS_DC)
^
cc1plus: all warnings being treated as errors
../../config/Make.rules.php:161: recipe for target 'Communicator.o' failed
make[2]: *** [Communicator.o] Error 1
make[2]: Leaving directory '/home/berli/Dev/Ice/ice/php/src/IcePHP'
Makefile:17: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/berli/Dev/Ice/ice/php/src'
Makefile:34: recipe for target 'all' failed
make: *** [all] Error 1

http://prdownloads.sourceforge.net/mcpp/mcpp-2.7.2.tar.gz?download

tar xvf mcpp-2.7.2.tar.gz  

  cd mcpp-2.7.2  

  patch -p0 < ../mcpp/patch.mcpp.2.7.2  

  ./configure CFLAGS=-fPIC --enable-mcpplib --disable-shared  

  make && make install  

#2)  安装BerkeleyDB  

  tar db-5.3.21.NC.tar.gz  

  cd db-5.3.21.NC  

  patch -p0 < ../db/patch.db.5.3.21  

  cd build_unix  

  ../dist/configure --enable-cxx  

  make && make install

ICE 迁移64位安装问题的更多相关文章

  1. ubuntu 14.04 64位安装iNodeClient

    ubuntu 14.04 64位安装iNodeClieng(华三校园客服端) http://pan.baidu.com/s/12dpxk ubuntu 14.04 64bit Install H3C ...

  2. CentOS6.0(64位)安装Apache+PHP+Mysql教程,安装Magento(解决DOM,Mcrypt,GD问题)完整教程

    CentOS6.0(64位)安装Apache+PHP+Mysql教程,安装Magento(解决DOM,Mcrypt,GD问题)完整教程 0   Posted by :小黑 On : 2012 年 9 ...

  3. hadoop2.6.0汇总:新增功能最新编译 32位、64位安装、源码包、API下载及部署文档

    相关内容: hadoop2.5.2汇总:新增功能最新编译 32位.64位安装.源码包.API.eclipse插件下载Hadoop2.5 Eclipse插件制作.连接集群视频.及hadoop-eclip ...

  4. hadoop2.5发布:最新编译 32位、64位安装、源码包、API以及新特性

    hadoop2.5发布:最新编译 32位.64位安装.源码包.API以及新特性 http://www.aboutyun.com/thread-8751-1-1.html (出处: about云开发) ...

  5. oracle 11g 64位安装sqldeveloper打开不了

    oracle 11g 64位安装sqldeveloper打开不了解决方法: 1.到官网下载对应版本的sqldeveloper. 2.找对应安装路径下的F:\app\Administrator\prod ...

  6. Win7 64位安装MySQL

    1.Win7 64位 安装MySQL5.5版本 安装文件的执行:会提示“已经停止工作”: 2.我下载了mysql-installer-community-5.7.11.0.msi,可以安装成功,中途需 ...

  7. hadoop2.2.0伪分布模式64位安装

    hadoop2.2.0伪分布模式64位安装用到的软件:jdk-6u45-linux-x64.bin,hadoop-2.2.0.x86_64.tar.gz 修改主机名vim /etc/sysconfig ...

  8. win7系统64位安装oracle10g

    win7系统64位安装oracle10g 下载地址: http://download.oracle.com/otn/nt/oracle10g/10204/10204_vista_w2k8_x64_pr ...

  9. Ubuntu14.04(64位)安装ATI_Radeon_R7_M265显卡驱动

    电脑型号:Dell inspiron 14-5447 笔记本 显卡配置:集成显卡Intel核心显卡,Cpu是i5-4210U;独立显卡ATI_Radeon_R7_M265 网上关于ATI/Intel双 ...

随机推荐

  1. linux 挂载相关

    mount命令的用法,以及技巧光盘镜像文件.移动硬盘.共享文件夹及U盘的方法. 一,挂接命令(mount) 挂接(mount)命令的使用方法. 命令格式:  mount [-t vfstype] [- ...

  2. linux下编译ffmpeg 引入外部库x264

    Found no assembler Minimum version is nasm-2.13 If you really want to compile without asm, configure ...

  3. 将C#文档注释生成.chm帮助文档(转)

    由于最近需要把以前的一个项目写一个文档,但一时又不知道写成怎样的,又恰好发现了可以生成chm的工具,于是乎我就研究了下,感觉还不错,所以也给大家分享下.好了,不多废话,下面就来实现一下吧. 生成前的准 ...

  4. 浅谈 Fork/Join

    fork/join的java7新添加的功能,能够把它理解成一个并发框架. 我们通过fork/join能将一个可分解的大任务.分解成多个子任务同步运行.运行完成后,在将各子任务的结果进行合并,得到终于的 ...

  5. ArcMap中使用ArcPy实现Geometry与WKT的相互转换

    在Web GIS迅猛发展的今天,使用浏览器来进行交互以其方便性.快捷性被广大用户所推崇,那么在传输格式方面,都已比較简单的JSON或者WKT来解决网络带宽带来的数据压力. 在ArcGIS10.2版本号 ...

  6. poj 1163 The Triangle 记忆化搜索

    The Triangle Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 44998   Accepted: 27175 De ...

  7. hibernate3中session.get()与session.load()两个方法的区别?

    1.发送sql的时机不同:load采用延迟加载技术,只有当真正去使用所查处的对象时,才会发送sql:get采用的是立即检索技术,当执行到get方法是就会立即发送sql. 2.返回的对象不同:load返 ...

  8. Git --恢复修改的文件

    对于恢复修改的文件,就是将文件从仓库中拉到本地工作区,即 仓库区 ----> 暂存区 ----> 工作区. 对于修改的文件有两种情况: 只是修改了文件,没有任何 git 操作 修改了文件, ...

  9. excel十几万行数据快速导入数据库研究(转,下面那个方法看看还是可以的)

    先贴原来的导入数据代码: 8 import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "www.setting ...

  10. 关于TransactionScope 使用

    在去年的项目中使用了TransactionScope,现在总结下TransactionScope的使用说明 一.TransactionScope是.Net Framework 2.0之后,新增了一个名 ...