I had the exact same error, but am using brew instead of MacPorts. All I had to do was:
brew update
brew tap homebrew/dupes
brew install apple-gcc42
rvm get stable
rvm install 1.9.3-p374
I didn’t have to set the CC environment variable as some instructions point out. HTH!