Monday, June 30, 2014

Remark: Do not put space in directory name of DB2 Installation package

วันนี้มีข้อควรสังเกตเวลาติดตั้ง DB2  บน RHEL มาฝากกันครับ
เหตุการณ์คือ ผมกำลังจะติดตั้ง v10.1fp4_linuxx64_universal_fixpack.tar.gz ที่ download มาลงบน RHEL6.4 x64

Linux social5.th.demos.ibm.com 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

สิ่งที่เกิดขึ้นคือผม copy folder 'universal' ที่ได้จากการ unzip tar.gz ไว้ใน folder 'Installation Package' จากนั้นรันคำสั่งต่อไปนี้

[root@social5 Installation Package]# pwd
/home/rheluser/Desktop/Installation Package
[root@social5 Installation Package]# ls
universal
[root@social5 Installation Package]# chmod -R +x universal/
[root@social5 Installation Package]# cd universal/
[root@social5 universal]# ./db2setup
./db2setup: line 100: cd: /home/rheluser/Desktop/Installation: No such file or directory
./db2setup: line 103: [: /home/rheluser/Desktop/Installation: binary operator expected
./db2setup: line 201: cd: /home/rheluser/Desktop/Installation: No such file or directory
dirname: extra operand `Package/universal/db2setup'

Try `dirname --help' for more information.
/home/rheluser/Desktop/Installation Package/universal/db2setup: line 100: cd: /home/rheluser/Desktop/Installation: No such file or directory
DBI1189E There has been an attempt to use db2setup
on an image for a platform that does not match the current platform
'Linux/x86-64' on which it is being run.

Explanation:

Possible causes include:

- This DB2 install image is not valid for the current
platform.

- The current platform is not supported by DB2.


User Response:

Install DB2 using the DB2 install image that corresponds
with the current platform 'Linux/x86-64'.



[root@social5 universal]#
 นี้ผมก็ใช้ RHEL x64 อยู่นะ สิ่งที่ค้นพบคือเมื่อพบปรับชื่อเอา space ออกจากชื่อ folder เดิม "Installation Package" เป็น "InstallationPackage" มันสามารถใช้งานได้ทันที


No comments: