# Not woking in Linux

**URL:** <https://www.ruby-forum.com/t/not-woking-in-linux/110079>\
**Category:** Ruby\
**Created:** [July 22, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/not-woking-in-linux/110079 "2007-07-22T19:30:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorjeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Post date:** [July 22, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/not-woking-in-linux/110079/1 "2007-07-22T19:30:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rorjeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Post date:** [July 23, 2007, 2:46am UTC](https://www.ruby-forum.com/t/not-woking-in-linux/110079/2 "2007-07-23T02:46:55Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Jeffrey B. wrote:

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

“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.mozdev.org](http://enigmail.mozdev.org)

iD8DBQFGo/ohWvapaOIz2YYRAmiTAJ97Iiz8XRGyF5aPFQz89FHGxt3i5ACggPXc  
KJvyIjyR5whqw4hunsDuNfw=  
=fQLn  
-----END PGP SIGNATURE-----
