From: Esen Sagynov Date: 2010-08-03T17:03:34+09:00 Subject: Re: ENV['someapp']" is nil when the code is run with "sudo" Thank you very much Brian for your assistance! I have read the manual and see that env_reset is set to ON by default, which means all users who will download my gem and try to install will not succeed. Is there anything you could suggest me to solve this problem? The other thing is I have seen so many gem which have their main extconf.rb Ruby code which request ENV['...'] variables like PATH, and others. How do they get the variables if sudo resets them by default? Any help is greatly appreciated. Esen. -- Posted via http://www.ruby-forum.com/.