Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

gs(Ghostscript) Problem with X11

I cannot run gs(ghostscript) which is in /usr/local/bin/. It gives me an error message
dyld: Library not loaded: /usr/X11/lib/libXt.6.dylib
Referenced from: /usr/local/bin/gs
Reason: image not found

Indeed, libXt.6.dylib is located in /usr/X11R6/lib/.

Thanks in advance.
Lee.

MacBook 1.83, Mac OS X (10.4.11), not yet but from the early June

Posted on Feb 28, 2009 1:06 AM

Reply
5 replies

Feb 28, 2009 8:13 AM in response to ProbabLee

ProbabLee wrote:
I cannot run gs(ghostscript) which is in /usr/local/bin/. It gives me an error message
dyld: Library not loaded: /usr/X11/lib/libXt.6.dylib
Referenced from: /usr/local/bin/gs
Reason: image not found

Indeed, libXt.6.dylib is located in /usr/X11R6/lib/.


It looks like Ghostscript was built without X11 support. If you got your copy of Ghostscript from OpenPrinting.org, that is definitely the case. You will either have to compile Ghostscript with X11 support or use another source for Ghostscript such as macports or fink.

Matt

Mar 1, 2009 8:15 PM in response to ProbabLee

Also, if you want to compile and build any GNU software with X11 support, I think you will need to first install the X11 SDK, in addition to the X11.app, which are both optional installations on the OS X DVD. The X11 SDK may be part of the Developer Tools optional installation, I don't recall. You may already have these installed if those libraries are on your system, but you may lack the additional compiler tools needed to build packages from fink or mac/darwin-ports.

Mar 6, 2009 5:42 PM in response to ProbabLee

Reversing the order of your comments--
ProbabLee wrote:
It is a bit odd that there is no folder named X11 in /usr/ but X11R6. Thanks again for your input.


I missed that nuance in your original post. Indeed, OS X 10.4 uses /usr/X11R6. OS X 10.5 uses /usr/X11. Perhaps if you described a bit more what you are trying to do it might help. What program are you using that is trying to run Ghostscript that needs the /usr/X11/lib/libXt.6.dylib. Perhaps you got the wrong version of the program.

I looked at the macports and still try to understand how to compile ghostscript. Is there any easier way to remedy the problem?


The steps needed would be:
1. Install the Developer's Tools (XCode).
2. Download the installer for macports for OS X 10.4 (Tiger).
3. Open a Terminal window and enter the command
<pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">sudo port install ghostscript</pre>

macports will download all the necessary prerequisites along with ghostscript, compile them and install them for you.

Matt

Message was edited by: Matt Broughton

gs(Ghostscript) Problem with X11

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.