【Cognos10 Liunx安装问题】

0
出现如下错误,有知道情况的吗?或者有比较完整的安装文档,谢谢发我一份。


QQ截图20131017160809.png


已邀请:
2

茳桦 - BI售前支持,cognos工程师 2013-10-20 回答

首先创建用户和组和安装文件夹等准备工作:
# groupadd -g cog #建立cog组
# useradd -g cog cognos #建立cognos用户,并放到cog组中
# passwd cognos #修改cognos的密码
Changing password for user cognos.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

# mkdir /cognos #建立cognos安装目录
# mkdir /cognos/soft #建立安装介质存放目录
# chown -R cognos:cog /cognos #将目录的所有者设置为cogn

安装cognos需要提前设置好java环境,所以先要安装jdk,从oracle官方下载,然后传到linux上
# chmod +x jdk-6u29-linux-x64-rpm.bin #赋予可执行权限
# ./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... #########################################

1:jdk #########################################

Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Installing JavaDB
Preparing... #########################################

1:sun-javadb-common #########################################

2:sun-javadb-core #########################################

3:sun-javadb-client #########################################

4:sun-javadb-demo #########################################

5:sun-javadb-docs #########################################

6:sun-javadb-javadoc #########################################


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/reg ... .html

Press Enter to continue.....

安装完成,默认安装到了/usr/java/jdk1.6.0_29这个路径下
接下来进入cognos用户为其设置环境变量

# su - cognos #切换到cognos用户下
$ vi .bash_profile #编辑脚本

# .bash_profile

# Get the aliases and functions
if ; 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->回车)

$ source .bash_profile #使profile生效
$
$ 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

$ ./issetup #执行安装程序
-bash: ./issetup: 权限不够
提示权限不够,查看一下发现用户和组都是数字
$ 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

$ cp -R bisrvr101ml /cognos/soft/bisrv101ml #将安装程序拷贝到硬盘
#拷贝完成后,进入到硬盘的目录中执行安装
$ ./issetup #执行安装程序
./issetup: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory

安装报错,以libXm.so.3,需要安装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用户中执行)

# cd /media/RHEL_5.4\ x86_64\ DVD/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
# 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... #########################################

1:libXp #########################################

# 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
# 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... #########################################

1:openmotif #########################################

# cd /usr/lib/
# ln libXm.so.4 libXm.so.3

准备结束,进入安装目录/media/bisrvr101ml/linuxi38664h

$ ./issetup #执行安装程序

安装结束。
0

茳桦 - BI售前支持,cognos工程师 2013-10-20 回答

这是在redhat5.4版本中安装的过程。
0

贝克汉姆 - 数据和应用架构师,精通大数据生态体系架构设计和实施 2013-10-21 回答

楼上的朋友非常的详细,收藏起来

要回复问题请先登录注册