Subject: | |
From: | |
Reply To: | |
Date: | Fri, 1 Jun 2007 16:35:53 +0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi,
I installed Acrobat reader version 7.0.9 (chinese tranditional) on
a SL5.0 and 'acroread' failed and show me
expr: syntax error
expr: syntax error
expr: syntax error
...
Since acroread is a script file, I trace and found that
inside check_gtk_ver_and_set_lib_path(), the code
...
version=`get_gtk_file_ver "$ifile"`
...
which will make $version null and cause "expr: syntax error".
The reason is in get_gtk_file_ver(). SL5.0 has
libgtk-x11-2.0.so.0.1000.4 and the 'sed' code inside
get_gtk_file_ver() expect format like this, libgtk-x11-2.0.so.0.#00.4
it expects two 0 after #, not three.
I double check FC4, it use libgtk-x11-2.0.so.0.600.10. And
get_gtk_file_ver() will echo 2610 and return 0 ... which give me hint
for the work around as following:
get_gtk_file_ver() {
echo 2104
return 0
}
And now acroread works fine :-)
I have scim installed ... so I did not check if
GTK_IM_MODULE=scim
will affect acroread or not.
FYI
KC
On 6/1/07, Keith Lofstrom <[log in to unmask]> wrote:
> Another SL5 upgrade lesson:
>
> Updating from SL4.4 to SL5 added "scim". Annoying and probably
> unecessary, this is not part of a fresh install of SL5. To add
> insult to injury, scim adds the environment variable:
> GTK_IM_MODULE=scim
> which causes Acrobat reader version 7 to silently fail. Unsetting it
> with "unset GTK_IM_MODULE" made acrobat work. I did a "yum erase scim",
> and everything still seems to work work work work work work work work
> work work work work work work work work work work work work work work
> :-)
>
> Keith
>
> --
> Keith Lofstrom [log in to unmask] Voice (503)-520-1993
> KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
> Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs
>
|
|
|