Ruby on Rails Saturday, June 29, 2013

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iF4EAREIAAYFAlHPLJAACgkQmStwlOckyZmg2AD/dL7CH/hqvtHvPUzlgGp2TZhU
um+e60rV3wu8ThGCrrUA/RnWkVDDxSmKfBDWY1R3KoGTwN9pKSDpgUoXrZNHFT7A
=yY6i
-----END PGP SIGNATURE-----
Am Fri, 28 Jun 2013 17:44:29 -0700 (PDT)
schrieb Muthu Selvan <pearl.selvan@gmail.com>:

>
> 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
>
>
>

No comments:

Post a Comment