Fink
binary from http://fink.sourceforge.net/download/index.php and install it~
) contains a .bash_profile
file which contains the following line:. /sw/bin/init.sh
.init.sh
script adds /sw/bin
to the $PATH
environment variable, among other things.pkg-config
utility using Fink
(click http://fink.sourceforge.net/pdb/index.php to see the list of available Fink
packages) by typing the following command in Apple's Terminal
Application:fink install pkgconfig
(note: no hyphen or dash between pkg
and config
)Fink
fink install glib2
Fink
fink install gtk+2
(note: don't forget the plus sign)
perl -MCPAN -e 'shell'
i /Glib/
install Glib
Glib
from CPAN, perl Makefile.PL, make, make test, sudo make install
perl -MPCAN -e 'shell'
i /Gtk2/
install Gtk2
Gtk2
from from CPAN, perl Makefile.PL, make,
sudo make install
X11
Application. A Terminal Window should appear.vi(m), emacs, pico, BBEdit
or whichever text editor your prefer, to type a Gtk2 script (for instance, Stephen Wilhelm's goodbyeworld
script).Desktop
(cd ~/Desktop
)
Desktop
chmod +x
the Gtk2 script./<mygtkscript>
Many thanks to muppet <scott at asofyet dot org> for his help.