Patching an odd glitch in the acroread shell script.

I recently bought Nikon D80 DSLR eBook on CD (review to follow). Naturally it expects the very latest Acrobat Reader to support its interactive features.

The latest I can find for Linux is 7.0. I don't know if that's recent enough, I think 8.0 is expected.

Anyway, I grabbed the download from Adobe and installed it on my Ubuntu “Feisty Fawn” box, only to discover that it wouldn't run. Running acroread produced “expr: syntax error” ad nauseum.

If this happens to you, perhaps this patch will help:

*** /usr/local/Adobe/Acrobat7.0/bin/acroread~	2007-01-05 14:56:39.000000000 -0500
--- /usr/local/Adobe/Acrobat7.0/bin/acroread	2007-04-21 19:33:50.000000000 -0400
***************
*** 416,420 ****
          fi
  
!    		echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
          return 0
      fi
--- 416,420 ----
          fi
  
!    		echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)/\1\2\3/g'
          return 0
      fi

It helped me. But I'm not sure exactly what the script is on about, so I suppose it might not. YMMV.

Now on to the book…

Comments:

The patch works for me. Glad that this page appeared as the first Google hit. Thanks!

Posted by Vilar Camara Neto on 29 Apr 2007 @ 02:07am UTC #
Add a comment or subscribe to (existing and future) comments on this essay.
Name:
Email*:
 *Please provide your real email address; it will not be displayed as part of the comment.
Homepage:
Comment**:
 **The following markup may be used in the body of the comment: a, abbr, b, br, code, em, i, p, pre, strong, and var. You can also use character entities. Any other markup will be discarded, including all attributes (except href on a). Your tag soup will be sanitized...