issue in faster_csv

S

Surjit Nameirakpam

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
 
J

James Edward Gray II

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
 
S

Surjit Nameirakpam

James said:
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
 
J

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
 
S

Surjit Nameirakpam

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
 
S

Surjit Nameirakpam

I am working on windows OS can you please gimme the syntax i have to use
in command prompt to install it
 
S

Surjit Nameirakpam

Thanks a lot.... It is working now.. I am a newbie so i will be back
with lot of q's
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,314
Members
47,990
Latest member
MauricioEl

Latest Threads

Top