"No valid Xcode installation is properly selected" solved

I needed to download the CLI tools within Xcode, and it needs to be done before installing MacPorts -- otherwise you'll need to re-install MacPorts. So I launched Xcode and went to "Preferences > Downloads" and clicked install on "Command Line Tools."

Installed MacPorts from the dmg package on googlecode, but got this error:

cydia:~ root# /opt/local/bin/port -v install encfs
Error:
Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error:     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.3.2
Error:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.
--->  Computing dependencies for encfs.......Error: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
cydia:~ root#

The actual problem is that you haven't accepted the license:

cydia:~ root# xcodebuild -license

"read" to the bottom, and accept. Then build EncFS:

# /opt/local/bin/port -v install encfs

and for ease of use in the future I tossed this into /etc/profile:

export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/man