gs/gs-x11/gs-nox11 of TexLive in Mac OS X

If the ps2pdf doesn’t work, it is probably due to the change of X11 since Mac OS X Mount Lion.

MacTeX/TexLive installs two Ghostscript binaries in /usr/local/bin, gs-X11 with X11 support
and gs-noX11 without X11 support. It sets gs to be a symbolic link to the
appropriate binary depending on whether or not you installed X11.

The current Mac OS X seems not to link gs to any of the gs binaries. So the Tex editors (Texpad, texmaker, etc…) may not able to convert ps to pdf.

There are two solutions:

  1. Change the symbolic link by running Terminal in /Applications/Utilities and typing
    • cd /usr/local/bin
      sudo rm gs
      sudo ln -s /usr/local/bin/gs-noX11 gs
  2. Modify the command which calls gs in /usr/local/bin/ps2pdfwr
    • change
      GS_EXECUTABLE="$gs"

      to

      GS_EXECUTABLE="$gs-noX11"

       

Advertisements

About cgao

Cambridge, MA
This entry was posted in PC problem. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s