python xmp toolkit question

Ned Deily nad at acm.org
Fri Mar 4 14:39:25 EST 2011


In article <20110304161955.LI5T1.94538.root at cdptpa-web16-z02>,
 <jyoung79 at kc.rr.com> wrote:

> Is anyone here using the Python XMP Toolkit?  I'm trying to install 
> this and having problems.
> 
> First, I tried installing Exempi.  The website says to do the following:
> ./configure
> make
> sudo make install
> 
> but for Mac OS X they say to do one of these (I'm installing it on Leopard 
> and hopefully Snow Leopard next):
> ./configure --with-darwinports
> ./configure --with-fink
> 
> I ended up trying both of these options, but in the end I get:
> checking for Boost headers version >= 1.33.0... no
> configure: error: Could not find Boost headers version >= 1.33.0
> 
> I'm assuming Boost hasn't been installed and maybe that's why I can't use 
> the Make command? (when I run 'make' I get: make: *** No targets specified 
> and no makefile found.  Stop.).

I have no experience with either but I would guess that the two 
configure options are for building with Boost installed from MacPorts 
(the newer name for DarwinPorts) or from Fink.  MacPorts and Fink are 
two open-source projects that port and distribute many third-party 
packages to Mac OS X.  My personal preference is for MacPorts.  If you 
don't already have the necessary current MacPorts base files installed, 
follow the instructions here: http://www.macports.org/install.php
MacPorts installs everything under /opt/local so you will need to add 
/opt/local/bin to the front of your shell search PATH.  Then you can 
pick a Python version (MacPorts will install its own version) and the 
Boost variant to go with it:

$ sudo port selfupdate
$ sudo port install python27
$ sudo port install python_select
$ sudo /opt/local/bin/python_select python27
$ sudo port install boost +python27

In fact, MacPorts has a port file for Exempi itself 
(http://www.macports.org/ports.php?by=name&substr=exempi)

$ sudo port install exempi

Then, using the MacPorts python you installed, you should be able to 
easily install the toolkit.  Good luck!

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list