Difference between revisions of "Asymptote: Macintosh"

(Troubleshooting)
m (Installing Asymptote on a Mac)
Line 6: Line 6:
 
Download the Asymptote source [http://sourceforge.net/project/showfiles.php?group_id=120000 here] (at the time of writing, it is version 1.43).
 
Download the Asymptote source [http://sourceforge.net/project/showfiles.php?group_id=120000 here] (at the time of writing, it is version 1.43).
  
Follow directions in the INSTALL file. I've summarized the process here. "x.xx" represents the Asymptote version number (e.g., 1.43), and terminal commands are italicized.
+
Follow directions in the INSTALL file. The process is summarized here. "x.xx" represents the Asymptote version number (e.g., 1.43), and terminal commands are italicized.
  
 
# Open Terminal (located in /Applications/Utilities/Terminal.app)
 
# Open Terminal (located in /Applications/Utilities/Terminal.app)
Line 13: Line 13:
 
# ''tar -xf asymptote-x.xx.src.tar''
 
# ''tar -xf asymptote-x.xx.src.tar''
 
# ''cd asymptote-x.xx''
 
# ''cd asymptote-x.xx''
# Download and put [http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.1.tar.gz this file] in the current directory.
+
# Download and put [http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.1.tar.gz this file] in the current directory. (In Linux, the command is ''wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.1.tar.gz'' --- not tried in Mac, needs verification.)
 
# ''./configure''
 
# ''./configure''
 
# ''make all''
 
# ''make all''
Line 19: Line 19:
  
 
You have finished installing Asymptote.
 
You have finished installing Asymptote.
 
  
 
== Usage ==
 
== Usage ==

Revision as of 08:39, 24 September 2008

Installing Asymptote on a Mac

This tutorial was tested on Mac OS 10.5 "Leopard," but should work for most older systems.


Download the Asymptote source here (at the time of writing, it is version 1.43).

Follow directions in the INSTALL file. The process is summarized here. "x.xx" represents the Asymptote version number (e.g., 1.43), and terminal commands are italicized.

  1. Open Terminal (located in /Applications/Utilities/Terminal.app)
  2. Run: cd ~/Desktop
  3. gunzip asymptote-x.xx.src.tgz
  4. tar -xf asymptote-x.xx.src.tar
  5. cd asymptote-x.xx
  6. Download and put this file in the current directory. (In Linux, the command is wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.1.tar.gz --- not tried in Mac, needs verification.)
  7. ./configure
  8. make all
  9. sudo make install

You have finished installing Asymptote.

Usage

Suppose that on the Desktop, you have a file named asyfile.tex

Use whatever LaTeX editor to compile the file. It'll return an error that looks something like this:

Package asymptote Warning: file asyfile_1.pdf does not exist on input line 33.

Terminal again. Run: cd ~/Desktop

then asy asyfile

That will run asymptote on the file asyfile.asy, (created when the tex file was compiled) producing asyfile_1.pdf.

Now run latex on asyfile.tex again, and with any luck, it should compile with no errors.


Automation

This post describes a shell script that automates the compilation process.


Troubleshooting