Ryan Schmidt ryandesign at
Mon Jun 6 23:24:42 PDT 2011

On Jun 6, 2011, at 03:02, cao.xu wrote:

> 	To install gunplot through macports, I get the following error:
> localhost:local apple$ sudo port install gnuplot @4.4.3

Note that it is not possible to specify a version of a port to install. You will always get the version of the port that is currently available, regardless what you specify. (The version currently available happens to be 4.4.3, though, so coincidentally you're getting what you want at the moment.)

> Password:
> --->  Computing dependencies for gnuplot
> --->  Building gnuplot
> Error: Target returned: shell command failed (see log for details)
> Log for gnuplot is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/main.log
> Error: Status 1 encountered during processing.
> To report a bug, see <>
> and the log is attached.

And it says:

:info:build Making all in lisp
:info:build emacs -batch -q -no-site-file -l ./dot.el -f batch-byte-compile gnuplot.el
:info:build emacs -batch -q -no-site-file -l ./dot.el -f batch-byte-compile gnuplot-gui.el
:info:build Warning: arch-independent data dir (/usr/share/emacs/22.1/etc/) does not exist.
:info:build Warning: arch-independent data dir (/usr/share/emacs/22.1/etc/) does not exist.
:info:build Warning: Lisp directory `/usr/share/emacs/22.1/site-lisp' does not exist.
:info:build Warning: Lisp directory `/usr/share/emacs/22.1/site-lisp' does not exist.
:info:build Cannot open load file: bytecomp
:info:build Cannot open load file: bytecomp
:info:build make[2]: *** [gnuplot-gui.elc] Error 255
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [gnuplot.elc] Error 255
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2

I don't know why gnuplot is looking for Mac OS X's emacs stuff. On my system, gnuplot installed the following emacs things:

$ port installed gnuplot
The following ports are currently installed:
  gnuplot @4.4.3_0+universal (active)
$ port contents gnuplot | grep emacs

But I probably already had the emacs port installed. Maybe the gnuplot port simply needs a dependency on emacs. Try installing emacs:

sudo port install emacs

Then clean gnuplot and try again (see below).

Meanwhile, the directories /usr/share/emacs/22.1/etc and /usr/share/emacs/22.1/site-lisp do exist on my Snow Leopard system; I do not use emacs so I guess they are standard parts of Snow Leopard:

$ ls -ld /usr/share/emacs/22.1/etc /usr/share/emacs/22.1/site-lisp
drwxr-xr-x  137 root  wheel  4658 Aug  1  2009 /usr/share/emacs/22.1/etc
drwxr-xr-x    3 root  wheel   102 Aug  1  2009 /usr/share/emacs/22.1/site-lisp

Do these directories really not exist on your system? If not, you may want to get them from your backups or your Mac OS X installation media.

Finally, the log you sent was incomplete (contains lines that say "Skipping completed"). There may be relevant information in the parts of the log that were omitted. To get a full log, clean and try installing again.

sudo port clean gnuplot
sudo port install gnuplot

More information about the macports-users mailing list