Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
not woking in Linux
jabowen
7/22/2007 5:28:00 PM
require 'csv'
lane_data =
CSV.read('/usr/prod/lanedata/testinfofile')
lane1 = lane.find_all { |lane| lane[0] =~ /"lane 1"/ }
printf "%2s %2s \n", laura[0][0], laura[0][1]
The above code works in SciTE. But in Linux I get
"csv_test.rb:2: undefined method `read' for CSV:Class
(NoMethodError)"
Could it be different version leaves and if so how do
I get the versions? I tried "gem list" but the
command is not found.
Jeff
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?re...
1 Answer
Travis D Warlick Jr
7/23/2007 12:46:00 AM
0
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeffrey Bowen wrote:
> require 'csv'
> lane_data =
> CSV.read('/usr/prod/lanedata/testinfofile')
> lane1 = lane.find_all { |lane| lane[0] =~ /"lane 1"/ }
> printf "%2s %2s \n", laura[0][0], laura[0][1]
>
> The above code works in SciTE. But in Linux I get
> "csv_test.rb:2: undefined method `read' for CSV:Class
> (NoMethodError)"
>
> Could it be different version leaves and if so how do
> I get the versions? I tried "gem list" but the
> command is not found.
CSV is in the Ruby standard library, so I recommend getting the latest version.
I checked it on my Gentoo box, it works fine there.
- --
Travis Warlick
"Programming in Java is like dealing with your mom --
it's kind, forgiving, and gently chastising.
Programming in C++ is like dealing with a disgruntled
girlfriend -- it's cold, unforgiving, and doesn't tell
you what you've done wrong."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail....
iD8DBQFGo/ohWvapaOIz2YYRAmiTAJ97Iiz8XRGyF5aPFQz89FHGxt3i5ACggPXc
KJvyIjyR5whqw4hunsDuNfw=
=fQLn
-----END PGP SIGNATURE-----
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
not woking in Linux
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password