May 1, 2008

Ubuntu Hardyで VMware Server Consoleが動かない件

普段使いのThinkPad T42をUbuntu Hardyにアップグレードしたら、VMware Server Consoleが動かなくなった。こんなメッセージを吐く。

/usr/lib/vmware-server-console/bin/vmware-server-console: /usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware-server-console/bin/vmware-server-console: /usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware-server-console/bin/vmware-server-console: /usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware-server-console/bin/vmware-server-console: /usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware-server-console/bin/vmware-server-console: /usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware-server-console/bin/vmware-server-console: /usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

以前類似の問題の対策をしたはずなのだがどうにも思い出せない。いろいろ試してみたところ、以下のようにすれば良いことが分かった。

# cd /usr/lib/vmware-server-console/lib
# mv libpng12.so.0/libpng12.so.0{,.bak}
# mv libgcc_s.so.1/libgcc_s.so.1{,.bak}

めでたしめでたし。

mvする代わりにwrapper-gtk24.shにパッチを当ててもいいね。

--- /usr/lib/vmware-server-console/lib/wrapper-gtk24.sh.bak     2008-04-30 23:48:50 +0900
+++ /usr/lib/vmware-server-console/lib/wrapper-gtk24.sh 2008-05-01 13:49:13 +0900
@@ -243,8 +243,8 @@
 # Dot releases of g++ keep breaking binary compatibility. Unconditionally use
 # the C++ libraries we compiled with the same compiler.
 #
-vm_append_lib 'libgcc_s.so.1'
-vm_append_lib 'libstdc++.so.5'
+#vm_append_lib 'libgcc_s.so.1'
+#vm_append_lib 'libstdc++.so.5'
 vm_append_lib 'libsigc-2.0.so.0'
 vm_append_lib 'libglibmm-2.4.so.1'
 vm_append_lib 'libglibmm_generate_extra_defs-2.4.so.1'
@@ -260,7 +260,7 @@
 # Redhat-7.3 doesn't have libpng12.so.0.  the executable doesn't link to
 # it directly, so we explicitly include it here
 #
-vm_append_lib 'libpng12.so.0'
+#vm_append_lib 'libpng12.so.0'
 
 #
 # When environment variable VMWARE_USE_SHIPPED_GTK is set to "force", we

About Me

My Photo

つくばで働く研究者

Total Pageviews

Amazon

Copyright 2012 Ogawa::Buzz | Powered by Blogger
Design by Web2feel | Blogger Template by NewBloggerThemes.com