# Custom rbconfig.rb

**URL:** <https://www.ruby-forum.com/t/custom-rbconfig-rb/187688>\
**Category:** Ruby\
**Created:** [April 27, 2010, 9:05pm UTC](https://www.ruby-forum.com/t/custom-rbconfig-rb/187688 "2010-04-27T21:05:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 27, 2010, 9:05pm UTC](https://www.ruby-forum.com/t/custom-rbconfig-rb/187688/1 "2010-04-27T21:05:53Z")

</div>

On my system some settings for the compiler (Solaris) are wrong and i  
want to modify these.  
But since i dont have root access, i cannot modify that file directly.  
Is it possible to put a copy of that file like in .gem/ or something so  
ruby/mkmf can access the settings from there and the system-settings get  
overwritten by my settings?

---

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 28, 2010, 1:05am UTC](https://www.ruby-forum.com/t/custom-rbconfig-rb/187688/2 "2010-04-28T01:05:52Z")

</div>

On Apr 27, 4:05 pm, Michael M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On my system some settings for the compiler (Solaris) are wrong and i  
> want to modify these.  
> But since i dont have root access, i cannot modify that file directly.  
> Is it possible to put a copy of that file like in .gem/ or something so  
> ruby/mkmf can access the settings from there and the system-settings get  
> overwritten by my settings?

Install ruby using rvm:

[http://rvm.beginrescueend.com/](http://rvm.beginrescueend.com/)

And have your own version of Ruby that lives in your user folder, and  
problem solved.

Saying this because since you don’t have access to rbconfig system-  
wide, there will be no chance to perform “sudo gem install” which then  
could lead to problems.

HTH,

---

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 28, 2010, 9:03am UTC](https://www.ruby-forum.com/t/custom-rbconfig-rb/187688/3 "2010-04-28T09:03:33Z")

</div>

RVM install somehow didnt work for me on Solaris, got quite many error  
messages on the install script with command not found etc.

And installing gems works with “gem install xx”, it installs the gem in  
my home folder then, so thats not problem.  
My poblem are native gems, since those use the compiler settings from  
the rbconfig.rb and i want to overwrite these somehow.
