You need the Debian command line tools - please install Fink.
Pick the version that is appropriate for your system.
Fink will create an /sw folder with all the needed tools on your startup volume.
To uninstall, simply delete this folder.