Quantcast

Acrobat Reader 7 and FC6

I broke down and wanted to install Adobe Acrobat Reader 7 on my FC6 box to replace xpdf. After installing it from the tar.gz version the acroread startup script bombed out with the error: expr substr 2400000000000 1

After a little searching I didn't find much help so I started looking at the script myself to see if I could track down the problem. It turns out that it wasn't that hard to fix. First off the script file was located at: /usr/bin/acroread

Open the script file and find the function named "check_gtk_ver_and_set_lib_path". This is the location of the first error you will hit. To fix the error you will need to change:

base_version=`expr substr "${base_version}0000000000" 1 $len_version`

to

blah1="${base_version}0000000000"
base_version=${blah1:1:$len_version}

You will find this two places and it needs to be changed in both. If you don't notice the 2nd place it is right after the first in a loop:

while [ $len_version -gt $len_base_version ]; do

The second problem you will have is located in the function "get_gtk_file_ver". Find this function and change the following line:

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

to

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

Now you should be able to run acroread without errors.

Tags: , ,

This entry was posted in linux, software, system administration, utilities. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Bill Vissman
    Posted February 18, 2007 at 5:49 am | Permalink

    Attempting to upgrade my reader from 7.0.8 I received the error message 1714 "Adobe reader 8 cannot be removed. Contact your terch support group. I cand use the old version, and can't install an update. How to resolve?

  2. Shigeru Imano
    Posted February 22, 2007 at 1:23 am | Permalink

    The second set of script that you suggested to change seems same, please see below which I copied from:
    ………….following line:
    echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'

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

    Would you please double check if the above is error?

    By the way, I have upgraded FC4 to FC5 & FC6 now. My problem when try to install the latest acrobat reder, AdobeReader_jpn-7.0.9-1.i386.rpm, is that I get error that says "file /usr/bin/acroread from install of AdobeReader_jpn-7.0.9-1 conflicts with file from package acroread-7.0.5-2.2.fc4.rf".
    So, I thought that your suggestion might solve my problem here.
    Would you please give me your comment?
    Thank you,
    Regards,
    Shigeru

  3. Posted February 22, 2007 at 6:45 am | Permalink

    That should work. One thing I forgot to put in the post is that I was using the tgz file and not the rpm. It could be that they have different scripts.

  4. milton
    Posted May 7, 2007 at 11:13 pm | Permalink

    Thank you very much for posting this fix. It worked like a charm!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>