After updating my Linux workstation I found that acroread produces “expr: syntax error” when started.

Quick Googling show me the solution.

  1. Open terminal.
  2. First find where acroread executable script is located – on my machine:
    whereis acroread
    acroread: /usr/bin/acroread /usr/lib/acroread
  3. Then type vi /usr/bin/acroread.
  4. After that type 418G and add *(asterisk) [move cursor after the block press i for insert and *]after second [0-9] block as shown below
    Fix acroread
  5. Then save the file [Press Esc 2 times and type :wq]
  6. Now you can use acrobat again.

NOTE: This fix is for AdobeReader_enu-7.0.9-1 for Linux. It is not tested on other versions or platforms.

EDIT: How to install AdobeReader_enu-7.0.9-1 in CentOS 5/4.x.

Navigate to adobe.com –> Click on get adobe reader –>Choose .rpm version –>Click on Download –>Either Open with Software Installer or download to disk and install if you need to do it on multiple machines.

Usually on the same system there is different programs that can open the same type of files, but they also have different capabilities.

And “Usually” the program that we are comfortable with is not the one by default.

Here I’ll show you how to fix it:

  1. It is actually very simple. Just open file browser and navigate to file of the same file type that you want to change default program.
  2. Then right click with the mouse and choose properties. You will see similar window:
    Screenshot of file properties Linux
  3. Then click on Open with tab.
    Screenshot of Change open with in linux
  4. Here you can change default open with program or add new one if it is not into list.
  5. Finally click close. (In contrast with other OS all changes are applied on close and there is no OK button)

That’s it.

Tip: Another way of doing it “Temporarily” is to right click and use open with…

← Previous Page