本章编译IDL接口文件使用的Solaris下的Orbix。
本人实际使用环境为Ubuntu 10.10,对应PROGRESS_ORBIX_6.3.5_LNX.tar.gz
1,首先需要在https://secure.progress.com/cgi-bin/custprofile.cgi/cmpgn/regform.p注册帐号,
2,登录https://progress-eval.subscribenet.com/根据自己的操作系统选择对应的版本
这里需要下载license file for Orbix Developer 和 Progress Orbix 6.3.5 for Red Hat Enterprise Linux (32-bit & 64-bit)
接下来讲一下安装。
安装比较繁琐,需要参考文档《orbix6.3.5_install_guide.pdf》才行
附上下载链接:http://download.csdn.net/detail/vivianke/4397878
1,对于license file for Orbix Developer 需要copy到/etc/opt/licenses.txt
2,对于Progress Orbix 6.3.5 for Red Hat Enterprise Linux (32-bit & 64-bit)需要拷贝到单独的目录,例如orbix, 然后tar -zxvf 解压
3,然后执行安装asp -i gui(或者asp -i swing),以图形界面安装
安装完毕之后,需要设置一些环境变量:
.bashrc
#for orbix
export IT_PRODUCT_DIR=/opt/progress/orbix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$IT_PRODUCT_DIR/shlib:$IT_PRODUCT_DIR/shlib/posix
export PATH=$PATH:$IT_PRODUCT_DIR/asp/6.3/bin
export IT_LICENSE_FILE=/etc/opt/licenses.txt
设置完毕之后,需要执行source ~/.bashrc启用新设置的环境变量。
root@vm:/opt/progress/orbix/asp/6.3/bin# idl
idl: no IDL configuration file!
执行root@vm:/opt/progress/orbix/asp/6.3/bin# ./itconfigure
选择“Create a new domain" 创建default-domain,创建完毕之后,会提示执行以下操作:
To set your environment for this configuration domain run:
/etc/opt/iona/bin/sample-domain_env
To start the services in this configuration domain run:
/etc/opt/iona/bin/start_sample-domain_services
To stop the services in this configuration domain run:
/etc/opt/iona/bin/stop_sample-domain_services
第一个设置环境变量和第二个启动服务的操作都需要执行,
对于sample-domain_env,目前发现没有可执行权限,需执行chmod +x sample-domain_env即可
执行完完毕之后,再次执行
root@vm:/opt/progress/orbix/asp/6.3/bin# idl
idl: error: No file specified.
usage: "-flags" for details.
idl [-flags] [-?] [-Dname[=value]] [-Idir] [-N] [-Uname] [-3] [-V] [-u] [-v] [-w]
[-jbase] [-R] [-base] [-poa] [-xml] [-pss_r] [-wsdl] [-psdl] [-jpoa]
file [file]*
表示已经可以正常使用。