c++ SOA Axis2c 编译安装
Axis2C 安装过程
1设置环境变量
export AXIS2C_HOME=/usr/local/axis2c
2.下载源码包解压编译安装
cd axis2c-src-1.6.0
./configure --prefix=$AXIS2C_HOME --enable-tests=no--enable-amqp=no
--enable-libxml2=yes
注意要加 --enable-libxml2=yes 不然会提示
Making all in test
make[4]: Entering directory `/home/ec2-user/axis2c-src-1.7.0/neethi/test'
make[4]: *** No rule to make target `../../axiom/src/parser/guththila/libaxis2_parser.la', needed by `test'. Stop.
make && sudo -E make install
3.安装程序样例
cd samples
CFLAGS=-I$AXIS2C_HOME/include/axis2-1.6.0 LDFLAGS=-L$AXIS2C_HOME/lib ./configure --prefix=$AXIS2C_HOME
make && sudo -E make install
4.启动服务
cd $AXIS2C_HOME/bin
./axis2_http_server
启用调试模式
cd $AXIS2C_HOME/bin
STAFF_LOG_LEVEL=DEBUG3 STAFF_EXCEPTION_STACKTRACING=1./axis2_http_server
5.测试是否安装成功
打开链接
http://localhost:9090/axis2/services
6.启动axis2c中例子
root@linux-desktop:/usr/local/axis2c/samples/bin# ls
amqp echo_blocking_dual google resources
echo echo_blocking_soap11 math version
echo_blocking echo_non_blocking mtom yahoosearch
echo_blocking_addr echo_non_blocking_dual mtom_callback
echo_blocking_auth echo_rest notify
root@linux-desktop:/usr/local/axis2c/samples/bin# ./math
Using endpoint : http://localhost:9090/axis2/services/math
Invoking operation add with params 40 and 8
Result = 48
root@linux-desktop:/usr/local/axis2c/samples/bin#
安装出错处理
1.提示添加到系统动态链接库
Libraries have been installed in:
/usr/local/axis2c/samples/lib/mtom_sending_callback
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
以上提示信息是在安装axis2c例子程序出现,提示将axis2c的链接库文件添加到系统/etc/ld.so.conf
中方便以后程序编译链接,可忽略。
2.axis2c编译出错提示ndefined reference to symbol 'axiom_xml_reader_free'
官方补丁解决办法
--- neethi/test/Makefile.am.orig
+++ neethi/test/Makefile.am
@@ -13,4 +13,5 @@ INCLUDES = -I$(top_builddir)/include \
test_LDADD = $(top_builddir)/src/libneethi.la \
../../axiom/src/om/libaxis2_axiom.la \
../../util/src/libaxutil.la \
+ ../../axiom/src/parser/libxml2/libaxis2_parser.la \
../src/libneethi.la
--- neethi/test/Makefile.in.orig
+++ neethi/test/Makefile.in
@@ -49,7 +49,8 @@ am_test_OBJECTS = test.$(OBJEXT)
test_OBJECTS = $(am_test_OBJECTS)
test_DEPENDENCIES = $(top_builddir)/src/libneethi.la \
../../axiom/src/om/libaxis2_axiom.la \
- ../../util/src/libaxutil.la ../src/libneethi.la
+ ../../util/src/libaxutil.la \
+ ../../axiom/src/parser/libxml2/libaxis2_parser.la ../src/libneethi.la
DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
@@ -188,6 +189,7 @@ INCLUDES = -I$(top_builddir)/include \
test_LDADD = $(top_builddir)/src/libneethi.la \
../../axiom/src/om/libaxis2_axiom.la \
../../util/src/libaxutil.la \
+ ../../axiom/src/parser/libxml2/libaxis2_parser.la \
../src/libneethi.la
all: all-am
修改neethi/test/中的 Makefile.am 和Makefile.in文件中内容
也可以直接用修改后文件直接替换
c++ SOA Axis2c 编译安装的更多相关文章
- 源码编译安装bind
author:JevonWei 版权声明:原创作品 编译bind 准备阶段: 下载bind软件包,然后传输到系统中 https://www.isc.org/downloads/ 安装开发包组 yum ...
- Centos6.5下编译安装mysql 5.6
一:卸载旧版本 使用下面的命令检查是否安装有MySQL Server rpm -qa | grep mysql 有的话通过下面的命令来卸载掉 rpm -e mysql //普通删除模式 rpm -e ...
- CENTOS 6.5 平台离线编译安装 PHP5.6.6
一.下载php源码包 http://cn2.php.net/get/php-5.6.6.tar.gz/from/this/mirror 二.编译 编译之前可能会缺少一些必要的依赖包,加载一个本地yum ...
- Linux下编译安装Vim8.0
什么是Vim? Vim 是经典的 UNIX 编辑器 Vi 的深度改良版本.它增加了许多功能,包括:多级撤销.格式高亮.命令行历史.在线帮助.拼写检查.文件名补完.块操作.脚本支持,等等.除了字符界面版 ...
- OpenSUSE下编译安装OpenFoam
在不是Ubuntu系统下安装OpenFoam,需要采用编译安装的方式.以下以OpenSuSE为例进行编译安装. 1 软件包准备 需要下载两个程序包: OpenFOAM-4.x-version-4.1. ...
- 不要着急改代码,先想想--centos 6.8下编译安装tmux
诸位读者新年好,2017开年第一篇博客,请允许我先问候一下看到这篇博客的诸位.写博客是我2017年定下的目标之一,希望我会坚持下去. 最近打算尝试一下tmux这个神器,于是有了这一篇关于思维方式的Bl ...
- protobuf的编译安装
github地址:https://github.com/google/protobuf支持多种语言,有多个语言的版本,本文采用的是在centos7下编译源码进行安装. github上有详细的安装说明: ...
- 编译安装mysql
参考:http://www.centoscn.com/CentosServer/www/2015/0422/5245.html 安装mysql5.6.17 1.按照标准需要给mysql创建所属用户和用 ...
- 编译安装zabbix3.2
1.1 环境准备 系统环境准备:redhat 6.6 64位mysql-5.6.34php-5.6.28zabbix-3.2.1配置前先关闭iptables和SELINUX,避免安装过程中报错. # ...
随机推荐
- IM即时通讯
即时通讯,由于项目需求和不可抗力因素用的融云 当然我更倾向于用环信亲加等 使用融云遇到的那些坑: 1.集成时的坑: ,编译环境要求太高 项目中有很多旧的东西 达不到其标准 直接用最新版,出错, ...
- 【ZeroClipboard is not defined】的解决方法
参考:http://www.cnblogs.com/jfw10973/p/3921899.html https://github.com/zeroclipboard/zeroclipboard 近期该 ...
- 安装glue,用glue批量处理图片的步骤
glue批量处理图片:http://glue.readthedocs.io/en/latest/quickstart.html#and-why-those-css-class-names 首先需要安 ...
- iOS版本控制git小结--yoowei
# 显示隐藏文件 defaults write com.apple.finder AppleShowAllFiles Yes && killall Finder # 不显示隐藏文件 d ...
- Java-java中无符号类型的处理
在Java中,不存在Unsigned无符号数据类型,但可以轻而易举的完成Unsigned转换. 方案一:如果在Java中进行流(Stream)数据处理,可以用DataInputStream类对Stre ...
- linux环境下给文件加密/解密的方法
原文地址:linix环境下给文件加密/解密的方法 作者:oracunix 一. 利用 vim/vi 加密:优点:加密后,如果不知道密码,就看不到明文,包括root用户也看不了:缺点:很明显让别人知 ...
- 避免重定向301&302 (Avoid Redirects)
这个也是Best Practices for Speeding Up Your Web Site的第12条原则: 重定向的意思是,用户的原始请求(例如请求A)被重定向到其他的请求(例如请求B).这是H ...
- [译]git pull
git pull把git fetch和git merge压缩成了一条命令. 用法 git pull <remote> 作用和git fetch <remote> &&a ...
- C#2.0 特性
泛型 迭代器 分布类 可空类型 匿名方法 命名空间别名限定符 静态类 外部程序程序集别名 属性访问器可访问性 委托中的协变和逆变 如何声明.实例化.使用委托 固定大小的缓冲区 友元程序集 内联警告控制 ...
- ML—随机森林·1
Introduction to Random forest(Simplified) With increase in computational power, we can now choose al ...