[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Need help

Aaron

5/12/2007 2:03:00 AM

I got this error in Ubuntu when i wanted to use parseexcel .
Here is the code :
require 'parseexcel'

workbook = Spreadsheet::ParseExcel.parse("12.xls")
worksheet = workbook.worksheet(0)
......

The full error message:"test.rb:1:in `require': no such file to load
-- parseexcel (LoadError) from test.rb:1 "

Really wanna your help, thanks!

3 Answers

Dan Zwell

5/12/2007 3:19:00 AM

0

Aaron,

In the future you'll have better luck if you title your posts descriptively.

Ruby is looking for the 'parseexcel' include file and can't find it. Do
"locate parseexcel.rb" to see whether it is installed at all. If not, do
"gem install parseexcel" to install the gem. If you do locate the file,
it means it's in the wrong directory and you need to tell ruby where to
look for libraries:

$ ruby -I /my/include/dir/ruby/gems/1.8/gems test.rb

Good luck,
Dan

Aaron wrote:
> I got this error in Ubuntu when i wanted to use parseexcel .
> Here is the code :
> require 'parseexcel'
>
> workbook = Spreadsheet::ParseExcel.parse("12.xls")
> worksheet = workbook.worksheet(0)
> ......
>
> The full error message:"test.rb:1:in `require': no such file to load
> -- parseexcel (LoadError) from test.rb:1 "
>
> Really wanna your help, thanks!
>
>
>

ARMANDO PADILLA

5/12/2007 2:29:00 PM

0

Aaron havent tried replicating this issue but are you sure you have
the library parseexcel installed?

Aaron wrote:
> I got this error in Ubuntu when i wanted to use parseexcel .
> Here is the code :
> require 'parseexcel'
>
> workbook = Spreadsheet::ParseExcel.parse("12.xls")
> worksheet = workbook.worksheet(0)
> ......
>
> The full error message:"test.rb:1:in `require': no such file to load
> -- parseexcel (LoadError) from test.rb:1 "
>
> Really wanna your help, thanks!
>

Bernard Kenik

5/13/2007 8:45:00 PM

0

On May 11, 11:19 pm, Dan Zwell <dzw...@gmail.com> wrote:
> Aaron,
>
> In the future you'll have better luck if you title your posts descriptively.
>
> Ruby is looking for the 'parseexcel' include file and can't find it. Do
> "locate parseexcel.rb" to see whether it is installed at all. If not, do
> "gem install parseexcel" to install the gem. If you do locate the file,
> it means it's in the wrong directory and you need to tell ruby where to
> look for libraries:
>
> $ ruby -I /my/include/dir/ruby/gems/1.8/gems test.rb
>
> Good luck,
> Dan
>
>
>
> Aaron wrote:
> > I got this error in Ubuntu when i wanted to use parseexcel .
> > Here is the code :
> > require 'parseexcel'
>
> > workbook = Spreadsheet::ParseExcel.parse("12.xls")
> > worksheet = workbook.worksheet(0)
> > ......
>
> > The full error message:"test.rb:1:in `require': no such file to load
> > -- parseexcel (LoadError) from test.rb:1 "
>
> > Really wanna your help, thanks!- Hide quoted text -
>
> - Show quoted text -

did you install parseexcel manually using the tarball or via
automatically via gem install parseexcel?