# Need to run setup.rb after 'gem install facets'

**URL:** <https://www.ruby-forum.com/t/need-to-run-setup-rb-after-gem-install-facets/49908>\
**Category:** Ruby\
**Created:** [December 9, 2005, 10:34pm UTC](https://www.ruby-forum.com/t/need-to-run-setup-rb-after-gem-install-facets/49908 "2005-12-09T22:34:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akonsu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Post date:** [December 9, 2005, 10:34pm UTC](https://www.ruby-forum.com/t/need-to-run-setup-rb-after-gem-install-facets/49908/1 "2005-12-09T22:34:03Z")

</div>

hello,

i just installed facets thus: ‘gem install facets’ and was expecting it  
to work. but still could not require ‘facets’. only after running  
setup.rb in the gem’s root directory did it start to work. is this a  
bug in the gem?

thanks  
konstantin

---

<div class="post-metadata">

**Author:** ![akonsu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Post date:** [December 9, 2005, 10:58pm UTC](https://www.ruby-forum.com/t/need-to-run-setup-rb-after-gem-install-facets/49908/2 "2005-12-09T22:58:32Z")

</div>

Hmmm… my guess is the RUBYOPT setting. Make sure you have this  
environment variable set. If using Linux

> export RUBYOPT="-rubygems"

You’ll probably want that in your default shell setup. Give that a go  
and let me know if that doesn’t fix the problem. (Oh, you’ll have to  
uninstall the manual installation too for the gem to work. Go to your  
ruby site dir, on Linux something like /usr/local/lib/site\_ruby/1.8 and  
delete the facet dir and facets.rb file.)

Also a little bonus for you. Uninstall the facets gem

gem uninstall facets

And reinstall with:

gem install --version “=1.0.0” facets

Not offically released yet, but it will be “real soon now”.

HTH,  
T.

---

<div class="post-metadata">

**Author:** ![akonsu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Post date:** [December 9, 2005, 11:06pm UTC](https://www.ruby-forum.com/t/need-to-run-setup-rb-after-gem-install-facets/49908/3 "2005-12-09T23:06:43Z")

</div>

thanks. with rubygems it works. stupid of me.
