Am Fri, 28 Jun 2013 17:44:29 -0700 (PDT) schrieb Muthu Selvan <[email protected]>:
> > Hi , > > I am trying to read excel sheet from Ruby so i have installed > RubyXL ( sudo gem install rubyXL ) . > > After installed successfully , I am running with the below source > code , but its giving error > > mselv2m1:ruby_Code mselv2$ ruby ex.rb > * ./rubyXL.rb:3: uninitialized constant RubyXL (NameError) * > from ex.rb:1:in `require' > from ex.rb:1 > > > *//Source Code : * > cat ex.rb > require 'rubyXL' Your example works very well for me, or at least I don't get any error messages when I run that oneliner. But I took a quick look over at rubygems.org, and had seen, that there are some dependencies as development deps only, which I think that should be full-deps (nokogiri for XML and rubyzip for unzipping that docx stuff), but also I don't think that this is really the problem… Please check first, if rubyXL is installed correctly: $ gem list | grep rubyXL If not, try installing again and post the full output of the install command to the list, also please tell us if you are using rvm, rbversion or similar tools or the default ruby of your system package management system. In any case tell us the version of ruby and ruby gems you are using. > Thanks , > Muthu Selvan SR > > >
signature.asc
Description: PGP signature

