# Problem with rubyscript2exe - uninitialized constant

**URL:** <https://www.ruby-forum.com/t/problem-with-rubyscript2exe-uninitialized-constant/182265>\
**Category:** Ruby\
**Created:** [January 25, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/problem-with-rubyscript2exe-uninitialized-constant/182265 "2010-01-25T19:04:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [January 25, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/problem-with-rubyscript2exe-uninitialized-constant/182265/1 "2010-01-25T19:04:39Z")

</div>

hey all

I just installed the rubyscript2exe gem, and tried to use it on a ruby  
script i just wrote called make\_xml.rb. But, i get this error:

/usr/lib/ruby/1.8/rubygems/specification.rb:1038: uninitialized constant  
Gem::RubyGemsVersion (NameError)  
Couldn’t execute this command (rc=256):

I think it may be connected to the first line of my script which starts

require ‘rubygems’  
require ‘hpricot’  
require ‘fastercsv’  
require ‘fileutils’

I had to require ‘rubygems’ in order to be able to require ‘hpricot’,  
which struck me as odd at the time. Maybe the two problems are symptoms  
of the same underlying problem?

here’s the versions of the relevant gems i have, in case that sheds any  
light.

gem list | grep ruby

rubygems-update (1.3.5)  
rubyscript2exe (0.5.3)

grateful for any advice, Max
