RedHat5.5安装ArcGIS Engine Runtime10


首先安装之前需要了解一下,虽然安装Linux64 位,但是ArcGIS Engine Runtime10只有32Bit的,我们需要安装Java SDK 32Bit的

1:查看系统需求,一定要按照里面的配置要求,防止不必要的麻烦

http://resources.arcgis.com/content/arcgis-engine/10.0/system-requirements

我们查看这些需求,在RedHat5.5环境下需要安装相关的依赖包

compat-libf2c-34
compat-libstdc++-33
compat-libstdc++-296
GNU C Library (glibc) 2.3.4-2 or higher 
libXp
OpenGL package: mesa-libGL
OpenGL package: mesa-libGLU
openldap
openssl
上面的依赖包很重要,装不全肯定有问题

2:安装Java SDK

ArcGIS Engine10需要Java6 update16环境,下载jdk-6u20-linux-i586.bin安装包,直接用root用户安装,安装完毕后,直接配置root用户下的环境变量

export JAVA_HOME=/home/jdk1.6.0_20
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
确保环境变量生效,如果生效,会出现以下信息
[root@RedHat ~]# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
3:安装ArcGIS Engine Runtime

1.创建新用户来安装Engine,如果已创建好用户,则切换到该用户,确保在该用户下java环境是有效的。
2.挂载Engine linux的安装盘或拷贝到相应目录,进入ArcGISEngineRT目录执行./Setup进行安装,安装过程中选Single User即可(安装过程需要图形界面,因此应该退出之前登陆的root用户,用安装Engine的用户登陆)。

3:安装过程中会让用户将engine用户对/usr/local/share/macrovision/storage文件夹有相关的可写权限,默认是没有macrovision和storage文件夹,需要用户自己按层级关系创建,然后设置权限。
4.注册许可
在/home/esrichina/arcgis/engine10.0目录下执行./authorizeSoftware调出注册界面

以下需要注意了,我们必须在新创建的engine用户下配置Java的环境变量,使之生效。

export JAVA_HOME=/home/jdk1.6.0_20
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH

然后如果你的安装没有错误,而且注册完毕的情况下,我们需要执行三个文件engineruntime安装程序目录里面的init_java.sh,init_engine.sh,setenv_engine.sh,而且每次切换engine用户都必须按顺序执行这三个文件,所以我们可以将执行这三个文件写在engine用户的环境变量里面,这样切换用户就自动执行了。

export JAVA_HOME=/home/jdk1.6.0_20
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
export $ENGINEHOME= /home/engine/arcgis/engine10.0
source $ENGINEHOME/init_java.sh
source $ENGINEHOME/init_engine.sh
source $ENGINEHOME/setenv_engine.sh
环境变量生效即可。

那么如果我们有相关的Java程序,我们上传到engine用户里面,执行即可

[engine@RedHat ~]$ java -jar -Xss2m displayfeedback/bin/DisplayFeedback.jar 

----------------------------------------------------------------------------------------------------

特别注意:

1:必须安装相关的依赖包

2:安装过程中必须没有错误

3:许可文件注册成功而且没有过期

4:Root用户和Engine用户的Java环境变量生效

5:执行三个相关的.sh文件成功

以下是没有执行这三个.sh文件的env信息,信息非常少

[engine@RedHat ~]$ env
HOSTNAME=RedHat
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
USER=engine
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;0                                                                                                             1:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.b                                                                                                             tm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:                                                                                                             *.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*                                                                                                             .bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3                                                                                                             5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/engine
PATH=/home/jdk1.6.0_20/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/                                                                                                             engine/bin
INPUTRC=/etc/inputrc
PWD=/home/engine
JAVA_HOME=/home/jdk1.6.0_20
LANG=zh_CN.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/home/engine
LOGNAME=engine
CVS_RSH=ssh
CLASSPATH=:/home/jdk1.6.0_20/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
OLDPWD=/home/engine/arcgis/engine10.0
一下是执行三个.sh文件的env,输出信息量非常大
[engine@RedHat ~]$ source /home/engine/arcgis/engine10.0/init_java.sh
[engine@RedHat ~]$ source /home/engine/arcgis/engine10.0/init_engine.sh
[engine@RedHat ~]$ source /home/engine/arcgis/engine10.0/setenv_engine.sh
[engine@RedHat ~]$ env
ARCLICENSEHOME=/home/engine/.esriprogramfiles/RedHat/esri/License10.0
HOSTNAME=RedHat
MW32BIT=1
MWNEVER_USE_INPUT_METHOD=1
MWUSER_DIRECTORY=/home/engine/.arcgis10.0
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
MWVISUAL_DEPTH=24
LD_PRELOAD=/home/engine/.arcgis10.0/libjsig/$LIB/libjsig.so
MWWINHELP_DIR=/home/engine/arcgis/engine10.0/help
OLDPWD=/home/engine/arcgis/engine10.0
MWHOME=/home/engine/arcgis/engine10.0/vmw/mw
MWTHREAD_STACK=1FFFFF
ARCENGINEHOME=/home/engine/arcgis/engine10.0
USER=engine
LD_LIBRARY_PATH=/home/engine/arcgis/engine10.0/python26/lib:/home/engine/arcgis/engine10.0/bin:/home/engine/arcgis/engine10.0/com:/home/engine/.esriprogramfiles/RedHat/CommonFiles/ArcGIS/bin:/home/engine/arcgis/engine10.0/python26/lib:/home/engine/arcgis/engine10.0/bin:/home/engine/arcgis/engine10.0/com:/home/engine/.esriprogramfiles/RedHat/CommonFiles/ArcGIS/bin:/home/engine/arcgis/engine10.0/vmw/mw/lib-linux:/home/engine/arcgis/engine10.0/vmw/mw/lib-linux_optimized:/home/engine/arcgis/engine10.0/vmw/mw/../misc/linux/gcc/fixed3/lib:::/usr/X11R6/lib:/usr/lib:/usr/local/lib:.:/usr/lib:/usr/local/lib:.
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
PYHOME=/home/engine/arcgis/engine10.0/python26/bin
LIBPATH=/home/engine/arcgis/engine10.0/vmw/mw/lib-linux:/home/engine/arcgis/engine10.0/vmw/mw/lib-linux_optimized:/home/engine/arcgis/engine10.0/vmw/mw/../misc/linux/gcc/fixed3/lib::
MWCONFIG_NAME=linux
MWARCH=i86
lib_path_name=LD_LIBRARY_PATH
MWCURRENT_LIBPATH=/home/engine/arcgis/engine10.0/vmw/mw/lib-linux:/home/engine/arcgis/engine10.0/vmw/mw/lib-linux_optimized:/home/engine/arcgis/engine10.0/vmw/mw/../misc/linux/gcc/fixed3/lib
ESRI_INIT_ENGINE_RUN=yes
LD_POINTER_GUARD=0
MWCORE_PRIVATE_DATA=/home/engine/.arcgis10.0/.RedHat
MWREGISTRY=/home/engine/.arcgis10.0/hklm_linux.bin
MWARCH_OS=i86_linux
MAIL=/var/spool/mail/engine
PATH=/home/engine/arcgis/engine10.0/python26/bin:/home/engine/arcgis/engine10.0/python26/bin:/home/engine/arcgis/engine10.0/vmw/mw/bin:/home/engine/arcgis/engine10.0/vmw/mw/bin-i86_linux:/home/engine/arcgis/engine10.0/vmw/mw/bin-linux_optimized:/home/jdk1.6.0_20/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/engine/bin:/usr/bin/X11:/home/engine/arcgis/engine10.0/bin:/home/engine/arcgis/engine10.0/bin
MW_TMPDIR=/tmp/esri_engine
ESRI_COMMON_FILES=/home/engine/.esriprogramfiles/RedHat/CommonFiles
MWCLEANUP_POLICY=full
INPUTRC=/etc/inputrc
PWD=/home/engine
OGL_LIB_DIR=/dev/null
JAVA_HOME=/home/jdk1.6.0_20
MWWINHELP_PATH=/home/engine/arcgis/engine10.0/help
LANG=zh_CN.UTF-8
MWCURRENT_PATH=/home/engine/arcgis/engine10.0/vmw/mw/bin-linux_optimized
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
MWRT_MODE=professional
MWMULTI_MEM_SHARE=0
SHLVL=1
HOME=/home/engine
WINHELPPATH=.:/home/engine/.arcgis10.0/helpfile:/home/engine/arcgis/engine10.0/vmw/mw/helpfile
MWOS=linux
MWFONT_DIR_PATH=/home/engine/arcgis/engine10.0/fonts
MWLOOK=windows
MWVISUAL_CLASS=TrueColor
PYTHONPATH=/home/engine/arcgis/engine10.0/bin
AWT_TOOLKIT=MToolkit
LOGNAME=engine
CVS_RSH=ssh
CLASSPATH=:/home/jdk1.6.0_20/lib
installDir=/home/engine/arcgis/engine10.0
LESSOPEN=|/usr/bin/lesspipe.sh %s
SHLIB_PATH=/home/engine/arcgis/engine10.0/vmw/mw/lib-linux:/home/engine/arcgis/engine10.0/vmw/mw/lib-linux_optimized:/home/engine/arcgis/engine10.0/vmw/mw/../misc/linux/gcc/fixed3/lib:
AGSENGINEJAVA=/home/engine/arcgis/engine10.0/
ARCGISHOME=/home/engine/arcgis/engine10.0/
X11_LIB_DIR=/usr/X11R6/lib
MWDIB_THREADS=1
MWRUNTIME=1
MWUSE_MIT_SHM=0
G_BROKEN_FILENAMES=1
_=/bin/env

如果执行程序是环境变量类似的问题,我们可以通过查看env的信息量来判断是否有问题。

OK,这样就没有任何问题了。

特别感谢Rocklx的技术文章:http://blog.csdn.net/rocky_lx/article/details/6084679


如果有相关的问题,可以查看上面的链接!




你可能感兴趣的:(java,redhat,Path,colors,filenames)