Monday, November 11, 2013

Preparing for Opportunity Detection install - required Streams package


1. Mount cdrom
[root@rhel64-64 bin]# mount -o ro /dev/cdrom /mnt/cdrom

2. Install compat-libstdc++-33 
[root@rhel64-64 rpm]# yum install libstdc++.so.5 
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
server                                                                                                                                                   | 3.9 kB     00:00 ...
Setting up Install Process                                                                                                                                                     
Resolving Dependencies                                                                                                                                                         
--> Running transaction check                                                                                                                                                  
---> Package compat-libstdc++-33.i686 0:3.2.3-69.el6 will be installed                                                                                                         
--> Finished Dependency Resolution                                                                                                                                             
Dependencies Resolved
================================================================================================================================================================================
 Package                                            Arch                                Version                                     Repository                             Size
================================================================================================================================================================================
Installing:                                                                                                                                                                    
 compat-libstdc++-33                                i686                                3.2.3-69.el6                                server                                189 k
Transaction Summary
================================================================================================================================================================================
Install       1 Package(s)                                                                                                                                                     
Total download size: 189 k
Installed size: 716 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : compat-libstdc++-33-3.2.3-69.el6.i686                                                                                                                        1/1
  Verifying  : compat-libstdc++-33-3.2.3-69.el6.i686                                                                                                                        1/1
Installed:
  compat-libstdc++-33.i686 0:3.2.3-69.el6
Complete!

Note: You need compat-libstdc++  if not you will get the following error:
[root@rhel64-64 rpm]# rpm -ivh ibm-java-x86_64-sdk-6.0-12.0.x86_64.rpm
error: Failed dependencies:                                          
        libstdc++.so.5 is needed by ibm-java-x86_64-sdk-6.0-12.0.x86_64


3. Install required streams package:
[root@rhel64-64 rpm]# rpm -ivh ibm-java-x86_64-sdk-6.0-12.0.x86_64.rpm
Preparing...                ########################################### [100%]
   1:ibm-java-x86_64-sdk    ########################################### [100%]


4. Additional perl package:
[root@rhel64-64 rpm]# rpm -ivh perl-XML-Simple-2.18-6.el6.noarch.rpm
Preparing...                ########################################### [100%]
   1:perl-XML-Simple        ########################################### [100%]


5. Install policycoreutils-python
[root@rhel64-64 rpm]# yum install policycoreutils-python                                                                                                                        
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager                                                                                                  
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.                                                                 
Setting up Install Process                                                                                                                                                      
Resolving Dependencies                                                                                                                                                          
--> Running transaction check                                                                                                                                                   
---> Package policycoreutils-python.x86_64 0:2.0.83-19.30.el6 will be installed                                                                                                 
--> Processing Dependency: libsemanage-python >= 2.0.43-4 for package: policycoreutils-python-2.0.83-19.30.el6.x86_64                                                           
--> Processing Dependency: audit-libs-python >= 1.4.2-1 for package: policycoreutils-python-2.0.83-19.30.el6.x86_64                                                             
--> Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-19.30.el6.x86_64                                                                      
--> Running transaction check                                                                                                                                                   
---> Package audit-libs-python.x86_64 0:2.2-2.el6 will be installed                                                                                                             
---> Package libsemanage-python.x86_64 0:2.0.43-4.2.el6 will be installed                                                                                                       
---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed                                                                                                         
--> Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                       
--> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                    
--> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                 
--> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                 
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                    
--> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                    
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                    
--> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                 
--> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                 
--> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                    
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                    
--> Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                            
--> Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                         
--> Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                            
--> Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                         
--> Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64                                                                            
--> Running transaction check                                                                                                                                                   
---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed                                                                                                                
--> Finished Dependency Resolution                                                                                                                                              
Dependencies Resolved
=================================================================================================================================================================================
 Package                                             Arch                                Version                                       Repository                           Size
=================================================================================================================================================================================
Installing:
 policycoreutils-python                              x86_64                              2.0.83-19.30.el6                              server                              342 k
Installing for dependencies:
 audit-libs-python                                   x86_64                              2.2-2.el6                                     server                               59 k
 libsemanage-python                                  x86_64                              2.0.43-4.2.el6                                server                               81 k
 setools-libs                                        x86_64                              3.3.7-4.el6                                   server                              400 k
 setools-libs-python                                 x86_64                              3.3.7-4.el6                                   server                              222 k
Transaction Summary
=================================================================================================================================================================================
Install       5 Package(s)
Total download size: 1.1 M
Installed size: 4.1 M
Is this ok [y/N]: y
Downloading Packages:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                            1.8 MB/s | 1.1 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : setools-libs-3.3.7-4.el6.x86_64                                                                                                                               1/5
  Installing : setools-libs-python-3.3.7-4.el6.x86_64                                                                                                                        2/5
  Installing : audit-libs-python-2.2-2.el6.x86_64                                                                                                                            3/5
  Installing : libsemanage-python-2.0.43-4.2.el6.x86_64                                                                                                                      4/5
  Installing : policycoreutils-python-2.0.83-19.30.el6.x86_64                                                                                                                5/5
  Verifying  : libsemanage-python-2.0.43-4.2.el6.x86_64                                                                                                                      1/5
  Verifying  : audit-libs-python-2.2-2.el6.x86_64                                                                                                                            2/5
  Verifying  : policycoreutils-python-2.0.83-19.30.el6.x86_64                                                                                                                3/5
  Verifying  : setools-libs-3.3.7-4.el6.x86_64                                                                                                                               4/5
  Verifying  : setools-libs-python-3.3.7-4.el6.x86_64                                                                                                                        5/5
Installed:
  policycoreutils-python.x86_64 0:2.0.83-19.30.el6
Dependency Installed:
  audit-libs-python.x86_64 0:2.2-2.el6      libsemanage-python.x86_64 0:2.0.43-4.2.el6      setools-libs.x86_64 0:3.3.7-4.el6      setools-libs-python.x86_64 0:3.3.7-4.el6
Complete!

Note: I already have gcc-c++ and libcurl-devel installed:
[root@rhel64-64 rpm]# yum install libcurl-devel
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package libcurl-devel-7.19.7-35.el6.x86_64 already installed and latest version
Nothing to do
[root@rhel64-64 rpm]# yum install gcc-c++
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package gcc-c++-4.4.7-3.el6.x86_64 already installed and latest version
Nothing to do

Wednesday, November 6, 2013

Installing Cognos 10.2 on RedHat

If you get the following error when installing Cognos on RedHat:
$ ./issetup                                                                                                  
./issetup: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory

It means that you do not have the 32bit libraries for OpenMotif. (see this link: http://www-01.ibm.com/support/docview.wss?uid=swg21612290)

To fix this, install openmotif.i686 package:
[root@rhel-server-64-x86-64 ~]# yum install openmotif.i686                                                   
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager                               
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
server                                                                                                                                                    | 3.9 kB     00:00 ...
Setting up Install Process                                                                                                                                                      
Resolving Dependencies                                                                                                                                                          
--> Running transaction check                                                                                                                                                   
---> Package openmotif.i686 0:2.3.3-5.el6_3 will be installed                                                                                                                   
server/filelists_db                                                                                                                                       | 3.7 MB     00:00 ...
--> Processing Dependency: libXt.so.6 for package: openmotif-2.3.3-5.el6_3.i686                                                                                                 
--> Processing Dependency: libXp.so.6 for package: openmotif-2.3.3-5.el6_3.i686                                                                                                 
--> Processing Dependency: libXmu.so.6 for package: openmotif-2.3.3-5.el6_3.i686                                                                                                
--> Processing Dependency: libSM.so.6 for package: openmotif-2.3.3-5.el6_3.i686                                                                                                 
--> Processing Dependency: libICE.so.6 for package: openmotif-2.3.3-5.el6_3.i686                                                                                                
--> Running transaction check                                                                                                                                                   
---> Package libICE.i686 0:1.0.6-1.el6 will be installed                                                                                                                        
---> Package libSM.i686 0:1.2.1-2.el6 will be installed                                                                                                                         
--> Processing Dependency: libuuid.so.1(UUID_1.0) for package: libSM-1.2.1-2.el6.i686                                                                                           
--> Processing Dependency: libuuid.so.1 for package: libSM-1.2.1-2.el6.i686                                                                                                     
---> Package libXmu.i686 0:1.1.1-2.el6 will be installed                                                                                                                        
---> Package libXp.i686 0:1.0.0-15.1.el6 will be installed                                                                                                                      
---> Package libXt.i686 0:1.1.3-1.el6 will be installed                                                                                                                         
--> Running transaction check                                                                                                                                                   
---> Package libuuid.i686 0:2.17.2-12.9.el6 will be installed                                                                                                                   
--> Finished Dependency Resolution                                                                                                                                              
Dependencies Resolved
=================================================================================================================================================================================
 Package                                    Arch                                  Version                                          Repository                               Size
=================================================================================================================================================================================
Installing:                                                                                                                                                                     
 openmotif                                  i686                                  2.3.3-5.el6_3                                    server                                  1.4 M
Installing for dependencies:
 libICE                                     i686                                  1.0.6-1.el6                                      server                                   52 k
 libSM                                      i686                                  1.2.1-2.el6                                      server                                   36 k
 libXmu                                     i686                                  1.1.1-2.el6                                      server                                   66 k
 libXp                                      i686                                  1.0.0-15.1.el6                                   server                                   22 k
 libXt                                      i686                                  1.1.3-1.el6                                      server                                  179 k
 libuuid                                    i686                                  2.17.2-12.9.el6                                  server                                   67 k
Transaction Summary
=================================================================================================================================================================================
Install       7 Package(s)
Total download size: 1.8 M
Installed size: 4.4 M
Is this ok [y/N]: y
Downloading Packages:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                            3.0 MB/s | 1.8 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libICE-1.0.6-1.el6.i686                                                                                                                                       1/7
  Installing : libuuid-2.17.2-12.9.el6.i686                                                                                                                                  2/7
  Installing : libSM-1.2.1-2.el6.i686                                                                                                                                        3/7
  Installing : libXt-1.1.3-1.el6.i686                                                                                                                                        4/7
  Installing : libXmu-1.1.1-2.el6.i686                                                                                                                                       5/7
  Installing : libXp-1.0.0-15.1.el6.i686                                                                                                                                     6/7
  Installing : openmotif-2.3.3-5.el6_3.i686                                                                                                                                  7/7
  Verifying  : libICE-1.0.6-1.el6.i686                                                                                                                                       1/7
  Verifying  : libXp-1.0.0-15.1.el6.i686                                                                                                                                     2/7
  Verifying  : libXt-1.1.3-1.el6.i686                                                                                                                                        3/7
  Verifying  : libSM-1.2.1-2.el6.i686                                                                                                                                        4/7
  Verifying  : openmotif-2.3.3-5.el6_3.i686                                                                                                                                  5/7
  Verifying  : libuuid-2.17.2-12.9.el6.i686                                                                                                                                  6/7
  Verifying  : libXmu-1.1.1-2.el6.i686                                                                                                                                       7/7
Installed:
  openmotif.i686 0:2.3.3-5.el6_3
Dependency Installed:
  libICE.i686 0:1.0.6-1.el6   libSM.i686 0:1.2.1-2.el6   libXmu.i686 0:1.1.1-2.el6   libXp.i686 0:1.0.0-15.1.el6   libXt.i686 0:1.1.3-1.el6   libuuid.i686 0:2.17.2-12.9.el6
Complete!

Once done, it should be OK now:
$ ./issetup
Licensed Materials - Property of IBM, BI and PM: is,
(C) Copyright IBM Corp. 2004, 2012. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
UNIX IBM Cognos InstallStream Version 10.2
Reading archive information - /mnt/hgfs/Software/9.1/cognos/linuxi38664h/setup.csp. Please wait...
Warning: Missing charsets in String to FontSet conversion

Tuesday, November 5, 2013

Installing IBM Installation Manager 1.5.2 (for WebSphere 8.5) on 64bit RedHat

If you are installing WebSphere 8.5, you will need to install IBM Installation Manager 1.5.2.

The thing is on 64bit Redhat, you will need to install 32bit libraries support as IBM Installation Manager is 32bit (IM supports 64bit only in 1.6 onwards).

See this URL ; http://www-01.ibm.com/support/docview.wss?uid=swg21380014

How to install the libraries : https://www-304.ibm.com/support/docview.wss?uid=swg21459143


Possible errors/indications:
- Missing libraries:
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /mnt/hgfs/Software/AppServers/WebSphere8.5/InstalMgr1.5.2_LNX_X86_WAS_8.5/configuration/org.eclipse.osgi/bundles/454/1/.cp/libswt-pi-gtk-3659.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)
        swt-pi-gtk (Not found in java.library.path)
        /tmp/swtlib-32/libswt-pi-gtk-3659.so (/tmp/swtlib-32/liblibswt-pi-gtk-3659.so.so: cannot open shared object file: No such file or directory)
        /tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)
        /tmp/swtlib-32/libswt-pi-gtk-3659.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)

- If you try to point to the 64bit libraries you will get the following errors (under configuration/ dir):
ava.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /mnt/hgfs/Software/AppServers/WebSphere8.5/InstalMgr1.5.2_LNX_X86_WAS_8.5/configuration/org.eclipse.osgi/bundles/454/1/.cp/libswt-pi-gtk-3659.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64)
        swt-pi-gtk (Not found in java.library.path)
        /tmp/swtlib-32/libswt-pi-gtk-3659.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64)
        /tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)

- If you are installing on a VM and try to use the VM 32bit libraries, you will get coredump:
ULL           ------------------------------------------------------------------------
0SECTION       TITLE subcomponent dump routine
NULL           ===============================
1TISIGINFO     Dump Event "abort" (00020000) received
1TIDATETIME    Date:                 2013/11/03 at 21:17:29
1TIFILENAME    Javacore filename:    /mnt/hgfs/Software/AppServers/WebSphere8.5/InstalMgr1.5.2_LNX_X86_WAS_8.5/javacore.20131103.211723.20497.0002.txt
1TIREQFLAGS    Request Flags: 0x81 (exclusive+preempt)
1TIPREPSTATE   Prep State: 0x0
1TIPREPINFO    Exclusive VM access not taken: data may not be consistent across javacore sections
NULL           ------------------------------------------------------------------------
0SECTION       GPINFO subcomponent dump routine
NULL           ================================
2XHOSLEVEL     OS Level         : Linux 2.6.32-358.el6.x86_64
2XHCPUS        Processors -
3XHCPUARCH       Architecture   : x86
3XHNUMCPUS       How Many       : 2
3XHNUMASUP       NUMA is either not supported or has been disabled by user
NULL
1XHERROR2      Register dump section only produced for SIGSEGV, SIGILL or SIGFPE.