Problem using Ruby Gems

I wrote this in the terminal: gem install mysql, I got this:

ERROR: While executing gem … (URI::InvalidURIError)
bad URI(is not URI?): http://:8080/

Suggestions?

when I write gem update, I get the same error message.