/opt/tivoli/tsm/client/ba/bin/dsmcad: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
root@siro:/usr/lib32# ln -s /usr/lib/libstdc++.so.5.0.7 ./
/opt/tivoli/tsm/client/ba/bin/dsmcad: error while loading shared libraries: libstdc++.so.5: wrong ELF class: ELFCLASS64
root@siro:/var# alien --scripts TIVsm-HSM.i386.rpm Package build failed. Here's the log: dh_testdir dh_testdir dh_testroot dh_clean -k -d dh_installdirs dh_installdocs dh_installchangelogs find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \ xargs -0 -r -i cp -a {} debian/tivsm-hsm dh_compress dh_makeshlibs dh_installdeb dh_shlibdeps dpkg-shlibdeps: failure: couldn't find library libstdc++.so.5 needed by debian/tivsm-hsm/opt/tivoli/tsm/client/hsm/bin/dsmrootd (its RPATH is ''). Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file. To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH. dh_shlibdeps: command returned error code 512 make: [binary-arch] Error 1 (ignored) dh_gencontrol dpkg-gencontrol: error: current host architecture 'amd64' does not appear in package's architecture list (i386) dh_gencontrol: command returned error code 65280 make: *** [binary-arch] Error 1 find: `TIVsm-HSM-5.4.1': No such file or directory
root@siro:/usr/lib32# ldd /var/tivoli/tsm/client/ba/bin/dsmagent linux-gate.so.1 => (0xf7f5e000) libxmlutil-5.5.0.0.so => /var/tivoli/tsm/client/api/bin/libxmlutil-5.5.0.0.so (0xf7f3d000) libcrypt.so.1 => /lib32/libcrypt.so.1 (0xf7f0b000) libpthread.so.0 => /lib32/libpthread.so.0 (0xf7ef4000) libdl.so.2 => /lib32/libdl.so.2 (0xf7ef0000) libm.so.6 => /lib32/libm.so.6 (0xf7ecb000) libgpfs.so => /var/tivoli/tsm/client/api/bin/libgpfs.so (0xf7ec2000) libdmapi.so => /var/tivoli/tsm/client/api/bin/libdmapi.so (0xf7ebc000) librt.so.1 => /lib32/librt.so.1 (0xf7eb3000) libha_gs_r.so => /var/tivoli/tsm/client/api/bin/libha_gs_r.so (0xf7e94000) libstdc++.so.5 => not found libc.so.6 => /lib32/libc.so.6 (0xf7c87000) /lib/ld-linux.so.2 (0xf7f5f000) libtsm550xerces-c1_6_0.so => not found libgcc_s.so.1 => not found libct_cu.so => /var/tivoli/tsm/client/api/bin/libct_cu.so (0xf7c3d000) libgcc_s.so.1 => not found
root@siro:/usr/lib32# dpkg -L libstdc++5 /. /usr /usr/lib /usr/lib/libstdc++.so.5.0.7 /usr/share /usr/share/doc /usr/share/doc/libstdc++5 /usr/share/doc/libstdc++5/TODO.Debian /usr/share/doc/libstdc++5/copyright /usr/share/doc/libstdc++5/README.Debian /usr/share/doc/libstdc++5/changelog.Debian.gz /usr/lib/libstdc++.so.5
root@siro:/mnt/oldsiro/opt# ldconfig -p | grep libstdc++.so.5 libstdc++.so.5 (libc6,x86-64) => /usr/lib/libstdc++.so.5
root@siro:/usr/lib# file libstdc++.so.5.0.7 libstdc++.so.5.0.7: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped root@siro:/usr/lib# file libgccpp.so.1.0.2 libgccpp.so.1.0.2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
root@siro:/usr/lib32# wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb root@siro:/usr/lib32# dpkg -x libstdc++5_3.3.6-17ubuntu1_i386.deb ./ root@siro:/usr/lib32# cp -a usr/lib/libstdc* ./ root@siro:/usr/lib32# wget http://mirrors.kernel.org/ubuntu/pool/main/g/gcc-4.3/libgcc1_4.3.3-5ubuntu4_i386.deb root@siro:/usr/lib32# dpkg -x libgcc1_4.3.3-5ubuntu4_i386.deb ./ root@siro:/usr/lib32# cp -a lib/libgcc_s.so.1 ./ root@siro:/usr/lib32# ln -s /var/tivoli/tsm/client/api/bin/libxerces-c1_6_0.so libtsm550xerces-c1_6_0.so root@siro:/usr/lib32# ln -s /var/tivoli/tsm/client/api/bin/libxmlutil-5.5.0.0.so
NO NO NO:
root@siro:/usr/lib32# aptitude install ia32-libs
root@siro:/usr/lib32# ldd /var/tivoli/tsm/client/ba/bin/dsmagent linux-gate.so.1 => (0xf7f35000) libxmlutil-5.5.0.0.so => /var/tivoli/tsm/client/api/bin/libxmlutil-5.5.0.0.so (0xf7f14000) libcrypt.so.1 => /lib32/libcrypt.so.1 (0xf7ee2000) libpthread.so.0 => /lib32/libpthread.so.0 (0xf7ecb000) libdl.so.2 => /lib32/libdl.so.2 (0xf7ec7000) libm.so.6 => /lib32/libm.so.6 (0xf7ea2000) libgpfs.so => /var/tivoli/tsm/client/api/bin/libgpfs.so (0xf7e99000) libdmapi.so => /var/tivoli/tsm/client/api/bin/libdmapi.so (0xf7e93000) librt.so.1 => /lib32/librt.so.1 (0xf7e8a000) libha_gs_r.so => /var/tivoli/tsm/client/api/bin/libha_gs_r.so (0xf7e6b000) libstdc++.so.5 => /usr/lib32/libstdc++.so.5 (0xf7db0000) libc.so.6 => /lib32/libc.so.6 (0xf7c5e000) libtsm550xerces-c1_6_0.so => /emul/ia32-linux/usr/lib/libtsm550xerces-c1_6_0.so (0xf7a37000) libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7a28000) /lib/ld-linux.so.2 (0xf7f36000) libct_cu.so => /var/tivoli/tsm/client/api/bin/libct_cu.so (0xf79de000)
root@siro:/var/tmp# wget ftp.software.ibm.com/storage/tivoli-storage-management/patches/client/v5r4/Linux/Linux86/v541/5.4.1.5-TIV-TSMBAC-LinuxX86.tar aptitude install alien root@siro:/var/tmp# tar -xf 5.4.1.5-TIV-TSMBAC-LinuxX86.tar root@siro:/var/tmp# alien --scripts TIVsm-API64.i386.rpm
alien rpm
dpkg -i
In this howto, the install path is /opt.
To configure your TSM client, do first:
cd /opt/tivoli/tsm/client/ba/bin/ cp dsm.opt.smp dsm.opt cp dsm.sys.smp dsm.sys chmod 664 dsm.opt chmod 664 dsm.sys
and next edit your dsm.opt as:
echo Servername $HOSTNAME >> dsm.opt
finally add in your dsm.sys:
Servername $HOSTNAME COMMMethod TCPip TCPPort 1500 TCPServeraddress 192.168.1.10 PASSWORDACCESS GENERATE
where the Servername has to be the same has in the dsm.opt and has also to be the hostname of the client. You can not imagine another hostname just for this purpose, it wont work and will create an error.
If the error dsmc: error while loading shared libraries: libgpfs.so: cannot open shared object file: No such file or directory, you have to configure the dynamic linker run-time bindings with ldconfig. For that you have to:
echo "/opt/tivoli/tsm/client/api/bin/" > /etc/ld.so.conf.d/tivoli.conf ldconfig
If the error dsmcad: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory, you have to install the The GNU Standard C++ Library v3, version 5. For that you have to:
aptitude install libstdc++5
If the error ANS0101E occurs, you have to add a symlink like:
ln -s /opt/tivoli/tsm/client/lang/en_US/ /opt/tivoli/tsm/client/ba/bin/en_US/
The final tree looks like:
sbolay@siro:/opt/tivoli$ tree . `-- tsm `-- client |-- api | |-- NOTICES.TXT | |-- README_api_enu.htm | |-- README_enu.htm | `-- bin | |-- dsm.opt.smp | |-- dsm.sys.smp | |-- dsmtca | |-- lib | |-- libApiDS.so | |-- libct_cu.so | |-- libdmapi.so | |-- libgpfs.so | |-- libha_gs_r.so | |-- libxerces-c1_6_0.so | |-- libxmlutil-5.5.0.0.so | `-- sample | |-- callbuff.c | |-- callevnt.c | |-- callhold.c | |-- callmt1.c | |-- callmt2.c | |-- callret.c | |-- dapibkup.c | |-- dapidata.h | |-- dapiinit.c | |-- dapint64.c | |-- dapint64.h | |-- dapipref.c | |-- dapiproc.c | |-- dapiproc.h | |-- dapipw.c | |-- dapiqry.c | |-- dapirc.c | |-- dapismp.c | |-- dapitype.h | |-- dapiutil.c | |-- dapiutil.h | |-- dpsthread.c | |-- dpsthread.h | |-- dsmapifp.h | |-- dsmapips.h | |-- dsmapipw.c | |-- dsmapitd.h | |-- dsmgrp.c | |-- dsmrc.h | |-- makesmp.linux86 | |-- release.h | |-- tsmapifp.h | `-- tsmapitd.h |-- ba | |-- NOTICES.TXT | |-- README_enu.htm | |-- bin | | |-- dsm.jar | | |-- dsm.opt | | |-- dsm.opt.smp | | |-- dsm.opt~ | | |-- dsm.sys | | |-- dsm.sys.smp | | |-- dsm.sys~ | | |-- dsm_pref.jar | | |-- dsmadmc | | |-- dsmagent | | |-- dsmc | | |-- dsmcad | | |-- dsmerror.log | | |-- dsmj | | |-- dsmswitch | | |-- dsmtca | | |-- dsmtrace | | |-- dsmwebcl.log | | |-- en_US -> ../../lang/en_US/ | | |-- favicon.ico | | |-- images | | | `-- wchelp.htl | | |-- jdom.jar | | |-- jh.jar | | |-- plugins | | | |-- libPiIMG.so | | | `-- libPiSNAP.so | | |-- tsmstats.ini | | |-- tsmstats.lck | | |-- uil.jar | | |-- xercesImpl_2_2_1.jar | | `-- xmlParserAPIs_2_2_1.jar | `-- client_message.chg |-- hsm | |-- NOTICES.TXT | |-- README_enu.htm | |-- README_hsm_enu.htm | `-- bin | |-- dmkilld | |-- dsmattr | |-- dsmautomig | |-- dsmdf | |-- dsmdu | |-- dsmls | |-- dsmmigfs | |-- dsmmighelp | |-- dsmmigquery | |-- dsmmigrate | |-- dsmmigundelete | |-- dsmmonitord | |-- dsmq | |-- dsmrecall | |-- dsmrecalld | |-- dsmreconcile | |-- dsmrm | |-- dsmrootd | |-- dsmscoutd | |-- dsmsetpw | |-- dsmsmj | |-- dsmwatchd | |-- hsmagent | |-- hsmagent.opt | |-- lib | | |-- axis-ant.jar | | |-- axis.jar | | |-- chart.jar | | |-- commons-discovery.jar | | |-- commons-logging.jar | | |-- dsmsm.jar | | |-- hsmhelp.jar | | |-- jaxrpc.jar | | |-- jh.jar | | |-- log4j-1.2.4.jar | | |-- saaj.jar | | |-- uil.jar | | |-- wsdl4j.jar | | |-- xercesImpl_2_2_1.jar | | `-- xmlParserAPIs_2_2_1.jar | |-- libApiHSM.so | `-- rc.gpfshsm |-- icc32 | `-- icc | |-- ReadMe.txt | |-- icclib | | `-- libicclib.so | `-- osslib | `-- libcrypto.so.0.9.7 `-- lang `-- en_US |-- dscjres.txt |-- dsmc.hlp |-- dsmclientV3.cat |-- dsmig.hlp |-- en_US -> ../../lang/en_US/ |-- hsmhelp.jar |-- tsmhelp.jar |-- uil_nls.jar `-- wchelp.htl 20 directories, 134 files