[OS X TeX] Optimal Solution for an asymptotemk engine

Vic Norton vic at norton.name
Sun Apr 11 14:16:53 EDT 2010

I'd be very interested if someone could give me a clue on how to build asymptote on OS X 10.6. I've had no luck so far.

The commands
  $ sudo tar -C / -zxf asymptote-1.91.i386.tgz
  $ texhash
(from the directory containing asymptote-1.91.i386.tgz) seem to work, but
  $ asy
just produces the complaint
  -bash: /usr/local/bin/asy: cannot execute binary file
Curiously, the command
opens up a Python graphics window which seems to work fine.

I have had no luck with try to make asymptote from the source archive
The command
  $ make all
(after ./configure) always ends with
  In file included from mach_dep.c:163:
  /usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated, and require _XOPEN_SOURCE to be defined
  make[2]: *** [mach_dep.lo] Error 1
  make[1]: *** [check-recursive] Error 1

Any ideas on how to install asymptote would be greatly appreciated.

Presumably I could install version 1.88 with MacPorts. If I were to do this, I should probably get rid of the asymptote stuff that doesn't work, which I've already installed. The Asymptote users guide suggests doing
  $ tar -zxvf asymptote-1.91.i386.tgz | xargs --replace=% rm /%
  $ texthash
from the directory containing asymptote-1.91.i386.tgz. The first line doesn't work on my system. Would
  $ tar -zxvf asymptote-1.91.i386.tgz | xargs -J % rm %
accomplish the same thing?



On Apr 11, 2010, at 11:59 AM, Peter Dyballa wrote:

> Am 11.04.2010 um 14:43 schrieb Herbert Schulz:
>> I'd guess the pdftex runs have something to do with creating the final pdf files since it must be producing a latex file of some sort as an intermediate state given that you can tell asymptote about necessary latex commands you wish to be embedded. On the other hand... I know nothing about the internal operation of asy.
> Run asy with the -k command line option! This will make it *keep* all intermediate files. And some of them *are* TEX files...
> The LLVM-GCC 4.2 gives a lot of errors. A little bit of optimisation (-O1) and two C++ source files do not compile (util.cc, settings.cc). And a fault with the Boehm Garbage Collector library exists, which also be caused by my LDFLAGS settings.
> At least I could produce some MB of output running asy under dtruss "guidance..."
> The files which yesterday a 'sudo make install' installed inside TeX Live were installed outside, were installed inside the local tree in:
> /usr/local/texlive/texmf-local/tex/latex/asymptote          ({asymptote|ocg|asycolors}.sty)
> /usr/local/texlive/texmf-local/tex/context/third/asymptote  (colo-asy.tex)
> And the ls-R files were updated. Not that bad!
> --
> Greetings
>  Pete
> If all else fails read the instructions.
> 				- Donald Knuth
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the MacOSX-TeX mailing list