Tuesday, April 17, 2007

CentOS5 with Acrobat Reader

CentOS5 distribution comes with gtk-2.10. It seems that Acrobat Reader package from adobe.com has problem to handle that. It is due to the function to retrieve the version of gtk. The following patch will get it solved.

--- acroread.orig 2007-04-17 16:47:25.000000000 +0800
+++ acroread 2007-04-17 16:47:55.000000000 +0800
@@ -415,7 +415,7 @@
return 1
fi

- echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
+ echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
return 0
fi