Click the box titles below to expand:

How to's

XSLT

GOOGLE MAPS API

PHP

Antelope

Perl

Document Object Model (DOM)

UNIX

Generic Mapping Tools (GMT)

Miscellaneous

Projects

Courses Taught

Latest Favorites

Mac OS X

Web Development

Beta

How To :: Antelope – The abridged amakelocal guide

This is the hacked guide to getting amakelocal configured on your Mac to allow you to compile the PHP and Python extensions for Antelope.

If you have tried to make install some contributed code and got errors like the following:

amakelocal: 
	***********

	Required macro 'PYTHONINCLUDE' is undefined.

	Cancelling compilation in current subdirectory
	'/path/to/sandbox/contrib/data/python/datascope'

	Use amakelocal(1) to configure your local system.

	***********

then this guide is for you!

Keywords Antelope Datascope Orb stock Matlab PHP Python Make install
  1. Make sure you have your Antelope environment sourced
  2. echo $ANTELOPE
    /opt/antelope/4.11
  3. Go to the default parameter file directory and copy amakelocal_proto.pf to amakelocal.pf
  4. cp amakelocal_proto.pf amakelocal.pf
  5. Modify the variables in amakelocal.pf for the parameters on your system
  6. antelope &env(ANTELOPE)
    
    dest &antelope/include
    
    output_file antelopemake.local
    
    elements &Arr{
            XMOTIFLIB &Arr{
                    Darwin
            }
            XMOTIFINCLUDE &Arr{
                    Darwin
            }
            PYTHONINCLUDE &Arr{
                    Darwin /usr/include/python2.5
            }
            PHP_INC &Arr{
                    Darwin /usr/include/php
            }
    }
    
    header &Literal{
    # DO NOT MODIFY -- Automatically generated file -- DO NOT MODIFY
    #
    # This file has been automatically generated by the amakelocal(1) program
    # from the amakelocal.pf parameter file (or the default amakelocal_proto.pf
    # parameter file if the former is not present). Customize amakelocal.pf for
    # your location and re-run amakelocal(1) to regenerate antelopemake.local
    # if necessary. See the amakelocal(1)  man page for further details.
    }
    
    
    pf_revision_time 1226952887
    
  7. Run amakelocal on your system to create the antelope make file. It shouldn't matter where you run this – it will put the make file in the correct location ($ANTELOPE/include/antelopemake.local) provided you have your $ANTELOPE variable defined.
  8. amakelocal -i
  9. Go to the contributed directory that you want to build the software for and make clean, make Include (the uppercase 'I' is important), then make install.
  10. cd /path/to/sandbox/contrib/data/python
    make clean
    make Include
    make install
  11. That's it! Test it out by checking a man page from some of the software you just installed:
  12. man pythondb

Thanks to Geoff Davis for walking me through this.