Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Host types for Mac OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Host types for Mac OS X
Authored by: _merlin on Dec 05, '00 08:26:22PM

I've compiled quite a few UN*X tools under Mac OS X, so I'll share my experience.

The following host types will work with Mac OS X public beta:


If you're using DP4 or earlier, powerpc-apple-darwin1.2 won't work. Try these host types one
at a time, starting from the top of the list until one works. The host types higher in the list
allow more optimisation for Mac OS X. You specify a host type as follows:

./configure -host=<host type>

Substitute in the host type where I've put <host type>, removing the angle brackets, of

If a tool wants to be compiled with gcc rather than cc, you can usually fix it by running
configure like this if you're using csh or tcsh (the default under Mac OS X):

env CC=cc ./configure -host=<host type>

Or like this if you use bash:

CC=cc ./configure -host=<host type>

Of course, you have to substitute in the host type.

I usually use the following sequence of commands to build and install a tool:

env CC=cc ./configure -host=powerpc-apple-macosx
make install

Substituting the administrator password where I've put <password> (once again, don't put
the angle brackets).

Note that your tool still might not compile straight away. You may have to download and
install libraries, modify source trees, or hack make files. Notably, bash and lynx require
Makefile modifications before they will compile. If you e-mail me and ask me nicely, I might
be able to help you with a particular program, but I can't guarantee I'll have the time to help


Vasantha Crabb

Professional Audio Services

Legal notice:

Use these instructions at your own risk. Neither Professional Audio Services, Apple or
Vasantha Crabb accept any responsibility for any damage caused to your hardware,
software or data.

[ Reply to This | # ]
Linux programs for Mac OS X
Authored by: Anonymous on Dec 09, '00 10:37:54AM

Yes, bash and lynx are good examples which are even available already compiled
They are running quite well
Could you give us a new one or two:
1) mc (the gnu/linux norton commander) (probably easy to compile )
2) tkdesk ( a very useful filemanager ) ( it needs special tk libraries )
Note: tcl is present inside macosx but tk is badly missing!

[ Reply to This | # ]
Host types for Mac OS X
Authored by: M-Rick on Feb 04, '03 06:22:37PM

Hi !

I have done what you were explaining.

I wanted to compile ncurses 5.1 and netpbm 10.11

I have tried with all the 4 : powerpc-apple-macosx

no one works with the make :

each time for netpbm I get at the end :
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libnetpbm.10.11.dylib] Error 1
make: *** [lib/all] Error 2

and for ncurses I get :

cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
../c++/ In member function `int NCursesWindow::scanw(const char*,
../c++/ no matching function for call to `std::strstreambuf::
vscan(const char*&, char*&)'
../c++/ In member function `int NCursesWindow::scanw(int, int, const
char*, ...)':
../c++/ no matching function for call to `std::strstreambuf::
vscan(const char*&, char*&)'
make[1]: *** [../objects/cursesw.o] Error 1
make: *** [all] Error 2

do you have any idea ?

[ Reply to This | # ]