Ask Your Question
1

Sage 5.3 in Mountain Lion asks for X11

asked 2012-10-10 11:19:37 +0100

calc314 gravatar image

updated 2015-01-13 22:34:29 +0100

FrédéricC gravatar image

When I attempt to use the animate command in Sage 5.3 in Lion, the system asks for X11. What can I do to get animate to work properly?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2012-10-10 11:43:36 +0100

(Do you mean Mountain Lion?)

Did you install TeX Live or Mac TeX on your machine before you upgraded the OS? If so, you have two choices: the easy way: try reinstalling. The other way, which is not quite as easy, but is much faster: run "gs" from the command line. Do you get the error message? If so, that's your problem, and to fix it, I think this will work:

$ ls -l /usr/local/bin/gs*

You should see a line

lrwxr-xr-x  1 root  wheel         8 Oct  3 07:53 /usr/local/bin/gs@ -> gs-X11

If so, then do this:

$ sudo bash
$ cd /usr/local/bin
$ rm gs
$ ln -s gs-noX11 gs
$ exit

(You may have installed Mac TeX when you had X11 installed, in which case the program "gs" was created as a link pointing to /usr/local/bin/gs-X11. The point is to change it so it points to /usr/local/bin/gs-noX11 instead, since when you upgraded the OS, X11 was removed.)

edit flag offensive delete link more

Comments

Unfortunately, the unix commands above didn't fix it. I'm trying to re-install right now.

calc314 gravatar imagecalc314 ( 2012-10-10 14:05:27 +0100 )edit

Did you see the message about X11 when you ran "gs"?

John Palmieri gravatar imageJohn Palmieri ( 2012-10-10 14:48:47 +0100 )edit

Yes. But, I did the reinstall and it works like a charm!

calc314 gravatar imagecalc314 ( 2012-10-10 16:54:00 +0100 )edit

Great! The unix commands worked for me on one machine; on another, I happened to do the reinstallation. I'm glad at least one option worked for you.

John Palmieri gravatar imageJohn Palmieri ( 2012-10-10 17:14:05 +0100 )edit
0

answered 2012-10-10 11:35:27 +0100

kcrisman gravatar image

Not an answer, but an addition to the question:

I get

Error: Neither ImageMagick nor ffmpeg appears to be installed. Saving an
animation to a GIF file or displaying an animation requires one of these
packages, so please install one of them and try again.

See www.imagemagick.org and www.ffmpeg.org for more information.

since my upgrade to Lion. Aargh. Anyway, you will probably need to find a way to get the convert command in your PATH; perhaps right now it's only available in an X11 version on your computer. Unfortunately, the version they have seems to only be for Mountain Lion, so I hope someone else has an idea too (that said, I haven't tried that one yet, so perhaps it works).

edit flag offensive delete link more

Comments

I don't think that ImageMagick should depend on X11. But I'm not sure.

John Palmieri gravatar imageJohn Palmieri ( 2012-10-10 11:45:08 +0100 )edit
1

The easier way to get imagemagick installed on a mac is using homebrew (http://mxcl.github.com/homebrew/). Just follow the directions to get homebrew installed and then do `brew install imagemagick`. It doesn't depend on X11.

benjaminfjones gravatar imagebenjaminfjones ( 2012-10-10 23:18:41 +0100 )edit

Wow, great! I think that before the upgrade I may have had ImageMagick installed via fink or something - I really can't remember now. It doesn't like that I have an older Xcode, but whatever. Worked for getting `convert` to work - thanks, homebrew and bfj!

kcrisman gravatar imagekcrisman ( 2012-10-11 11:22:57 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-10 11:19:37 +0100

Seen: 738 times

Last updated: Oct 10 '12