上周年假,在家里歇了几天,提前回北京。周末抽空在RedHat5.4上装了cognos10,中途遇到些麻烦,下面与大家分享一下安装的过程
首先创建用户和组和安装文件夹等准备工作
[root@CogBISvr ~]# groupadd -g cog #建立cog组
[root@CogBISvr ~]# useradd -g cog cognos #建立cognos用户,并放到cog组中
[root@CogBISvr ~]# passwd cognos #修改cognos的密码
Changing password for user cognos.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@CogBISvr ~]# mkdir /cognos #建立cognos安装目录
[root@CogBISvr ~]# mkdir /cognos/soft #建立安装介质存放目录
[root@CogBISvr ~]# chown -R cognos:cog /cognos #将目录的所有者设置为cognos
安装cognos需要提前设置好java环境,所以先要安装jdk,从oracle官方下载,然后传到linux上
[root@CogBISvr soft]# chmod +x jdk-6u29-linux-x64-rpm.bin #赋予可执行权限
[root@CogBISvr soft]# ./jdk-6u29-linux-x64-rpm.bin #开始安装(一定要用root用户进行安装,权限低的用户会报错)
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u29-linux-amd64.rpm
inflating: sun-javadb-common-10.6.2-1.1.i386.rpm
inflating: sun-javadb-core-10.6.2-1.1.i386.rpm
inflating: sun-javadb-client-10.6.2-1.1.i386.rpm
inflating: sun-javadb-demo-10.6.2-1.1.i386.rpm
inflating: sun-javadb-docs-10.6.2-1.1.i386.rpm
inflating: sun-javadb-javadoc-10.6.2-1.1.i386.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Installing JavaDB
Preparing... ########################################### [100%]
1:sun-javadb-common ########################################### [ 17%]
2:sun-javadb-core ########################################### [ 33%]
3:sun-javadb-client ########################################### [ 50%]
4:sun-javadb-demo ########################################### [ 67%]
5:sun-javadb-docs ########################################### [ 83%]
6:sun-javadb-javadoc ########################################### [100%]
Java(TM) SE Development Kit 6 successfully installed.
Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Oracle products, services and training
* Access to early releases and documentation
Product and system data will be collected. If your configuration
supports a browser, the JDK Product Registration form will
be presented. If you do not register, none of this information
will be saved. You may also register your JDK later by
opening the register.html file (located in the JDK installation
directory) in a browser.
For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html
Press Enter to continue.....
安装完成,默认安装到了/usr/java/jdk1.6.0_29这个路径下
接下来进入cognos用户为其设置环境变量
[root@CogBISvr soft]# su - cognos #切换到cognos用户下
[cognos@CogBISvr ~]$ vi .bash_profile #编辑脚本
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export JAVA_HOME=/usr/java/jdk1.6.0_29 #增加JAVA_HOME变量
PATH=$JAVA_HOME/bin:$PATH #加入到PATH中
export PATH
保存退出(ESC ->:wq->回车)
[cognos@CogBISvr ~]$ source .bash_profile #使profile生效
[cognos@CogBISvr ~]$
[cognos@CogBISvr ~]$ java -version #测试是否生效。输出正确
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
放入cognos安装盘,进入安装目录/media/bisrvr101ml/linuxi38664h
[cognos@CogBISvr linuxi38664h]$ ./issetup #执行安装程序
-bash: ./issetup: 权限不够
提示权限不够,查看一下发现用户和组都是数字
[cognos@CogBISvr media]$ ls -al
总计 30
drwxr-xr-x 3 root root 4096 12-03 09:33 .
drwxr-xr-x 26 root root 4096 12-03 08:52 ..
drwxrwxr-x 5 4205 364 2048 2010-10-16 bisrvr101ml
-rw-r--r-- 1 root root 66 12-03 09:33 .hal-mtab
-rw------- 1 root root 0 12-03 09:33 .hal-mtab-lock
把安装程序拷贝到硬盘上进行安装
[cognos@CogBISvr media]$ cp -R bisrvr101ml /cognos/soft/bisrv101ml #将安装程序拷贝到硬盘
拷贝完成后,进入到硬盘的目录中执行安装
[cognos@CogBISvr linuxi38664h]$ ./issetup #执行安装程序
./issetup: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory
安装报错,以libXm.so.3为关键字上百度搜索,发现论坛里有人已经解决了这个问题http://www.cognoschina.net/?action-blogdetail-uid-301-id-3917.html
需要安装libXp-1.0.0-8.1.el5.x86_64.rpm、openmotif-2.3.1-5.el5_6.2.x86_64.rpm 两个rpm包
然后在创建软连接,但是我安装完成后在/usr/lib64下创建软连接问题依旧。
想了一下,是不是调用的是32位的呢?卸载掉64为的,安装libXp-1.0.0-8.1.el5.i386.rpm和openmotif-2.3.1-2.el5.i386.rpm
两个32位的,问题解决了(安装rpm在root用户中执行)
[root@CogBISvr lib64]# cd /media/RHEL_5.4\ x86_64\ DVD/Server/
[root@CogBISvr Server]# ls |grep libXp-
libXp-1.0.0-8.1.el5.i386.rpm
libXp-1.0.0-8.1.el5.x86_64.rpm
libXp-devel-1.0.0-8.1.el5.i386.rpm
libXp-devel-1.0.0-8.1.el5.x86_64.rpm
[root@CogBISvr Server]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libXp ########################################### [100%]
[root@CogBISvr Server]# ls |grep openmotif
openmotif22-2.2.3-18.i386.rpm
openmotif22-2.2.3-18.x86_64.rpm
openmotif-2.3.1-2.el5.i386.rpm
openmotif-2.3.1-2.el5.x86_64.rpm
openmotif-devel-2.3.1-2.el5.i386.rpm
openmotif-devel-2.3.1-2.el5.x86_64.rpm
[root@CogBISvr Server]# rpm -ivh openmotif-2.3.1-2.el5.i386.rpm
warning: openmotif-2.3.1-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:openmotif ########################################### [100%]
[root@CogBISvr Server]# cd /usr/lib/
[root@CogBISvr lib]# ln libXm.so.4 libXm.so.3
到此为止,cognos的准备工作都已完成,执行./issetup就可以进行安装了。
安装的过程很顺利,修改好安装路径后一路next就可以了,安装语言选择英文,我选中文会乱码,估计是对应的字体没有安装
安装完成后,启动cognos configuration,配置contentsotre时发现一个问题,我用的是sqlserver2000配置数据库用户的密码时,密码框不可编辑
所以contentstore配置失败,后来用Xmanager的Xstart将图形界面在本地展现时才配置成功。
启动cognos,发现启动失败,查看日志发现dispatch注册content manager指向了其他服务器,非常奇怪,因为我没有任何其他的配置,后来把指向的cognos服务停掉,重新启动,一切正常。