# InvalidURIError: can not set user with registry or opaque

**URL:** <https://www.ruby-forum.com/t/invalidurierror-can-not-set-user-with-registry-or-opaque/108216>\
**Category:** Rails\
**Created:** [June 30, 2007, 5:33am UTC](https://www.ruby-forum.com/t/invalidurierror-can-not-set-user-with-registry-or-opaque/108216 "2007-06-30T05:33:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmac217](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bc8723/32.png) [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Post date:** [June 30, 2007, 5:33am UTC](https://www.ruby-forum.com/t/invalidurierror-can-not-set-user-with-registry-or-opaque/108216/1 "2007-06-30T05:33:43Z")

</div>

Hi,

I’m attempting to install Rails through RubyGems on OS X 10.4.10, but  
whenever I use “sudo gem instsll rails --include-dependencies” it gives  
me this error:

ERROR: While executing gem … (URI::InvalidURIError)  
can not set user with registry or opaque

Can anyone tell me what might be causing this error or how to fix it?  
Or if not, if there’s another way for me to get Rails and Mongrel?  
Thanks.

---

<div class="post-metadata">

**Author:** ![rmac217](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bc8723/32.png) [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Post date:** [April 23, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/invalidurierror-can-not-set-user-with-registry-or-opaque/108216/2 "2008-04-23T21:32:34Z")

</div>

Ryan Metcalf wrote:

> Hi,
> 
> I’m attempting to install Rails through RubyGems on OS X 10.4.10, but  
> whenever I use “sudo gem instsll rails --include-dependencies” it gives  
> me this error:
> 
> ERROR: While executing gem … (URI::InvalidURIError)  
> can not set user with registry or opaque
> 
> Can anyone tell me what might be causing this error or how to fix it?  
> Or if not, if there’s another way for me to get Rails and Mongrel?  
> Thanks.

See:  
[http://www.ruby-forum.com/topic/100265#new](http://www.ruby-forum.com/topic/100265#new)  
If you have a proxy setting like [bogus.org:911](http://bogus.org:911) you need to change it to  
[http://bogus.org:911](http://bogus.org:911)
