[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

issue in faster_csv

Surjit Nameirakpam

10/23/2007 1:57:00 PM

I wanted to read a csv file and do some manipulation on it so i tried
writing a small program but i get this error

##########T his is the program

require "faster_csv"
FasterCSV.foreach("C:\\rubyprograms\\Input.csv") do |row|
# use row here...
puts row
end
########## This is the error

trialread.rb:1:in `require': no such file to load -- faster_csv
(LoadError)
from trialread.rb:1

Please help on what mistake i am commiting
--
Posted via http://www.ruby-....

6 Answers

James Gray

10/23/2007 2:06:00 PM

0

On Oct 23, 2007, at 8:57 AM, Surjit Nameirakpam wrote:

> I wanted to read a csv file and do some manipulation on it so i tried
> writing a small program but i get this error
>
> ##########T his is the program
>
> require "faster_csv"
> FasterCSV.foreach("C:\\rubyprograms\\Input.csv") do |row|
> # use row here...
> puts row
> end
> ########## This is the error
>
> trialread.rb:1:in `require': no such file to load -- faster_csv
> (LoadError)
> from trialread.rb:1
>
> Please help on what mistake i am commiting

Have you installed FasterCSV? If so, you are probably just missing:

require "rubygems"

at the top of your file.

James Edward Gray II

Surjit Nameirakpam

10/23/2007 2:12:00 PM

0

James Gray wrote:
> On Oct 23, 2007, at 8:57 AM, Surjit Nameirakpam wrote:
>
>> ########## This is the error
>>
>> trialread.rb:1:in `require': no such file to load -- faster_csv
>> (LoadError)
>> from trialread.rb:1
>>
>> Please help on what mistake i am commiting
>
> Have you installed FasterCSV? If so, you are probably just missing:
>
> require "rubygems"
>
> at the top of your file.
>
> James Edward Gray II


I am a new to Ruby... Does FasterCSV comes by default with Ruby gems
installation version "rubygems-0.9.4 "

If not from where can i install Fastercsv

--
Posted via http://www.ruby-....

James Gray

10/23/2007 2:17:00 PM

0

On Oct 23, 2007, at 9:11 AM, Surjit Nameirakpam wrote:

> James Gray wrote:
>> On Oct 23, 2007, at 8:57 AM, Surjit Nameirakpam wrote:
>>
>>> ########## This is the error
>>>
>>> trialread.rb:1:in `require': no such file to load -- faster_csv
>>> (LoadError)
>>> from trialread.rb:1
>>>
>>> Please help on what mistake i am commiting
>>
>> Have you installed FasterCSV? If so, you are probably just missing:
>>
>> require "rubygems"
>>
>> at the top of your file.
>>
>> James Edward Gray II
>
>
> I am a new to Ruby... Does FasterCSV comes by default with Ruby gems
> installation version "rubygems-0.9.4 "
>
> If not from where can i install Fastercsv

It's not included with RubyGems, no. But you can use gems to install
it by feeding your command-line something like:

gem install fastercsv

You may need to put an sudo in front of that if you're on Unix.

James Edward Gray II

Surjit Nameirakpam

10/23/2007 2:18:00 PM

0


> I am a new to Ruby... Does FasterCSV comes by default with Ruby gems
> installation version "rubygems-0.9.4 "
>
> If not from where can i install Fastercsv

--
Posted via http://www.ruby-....

Surjit Nameirakpam

10/23/2007 2:23:00 PM

0

I am working on windows OS can you please gimme the syntax i have to use
in command prompt to install it
--
Posted via http://www.ruby-....

Surjit Nameirakpam

10/23/2007 2:27:00 PM

0

Thanks a lot.... It is working now.. I am a newbie so i will be back
with lot of q's
--
Posted via http://www.ruby-....