Ruby does not load CSV from stdlib

I am not sure why this does not work, and I am stuck in finding a solution. Very simple, I run a little script that does require 'CSV', which works fine on my Mac with 1.9.3-p327, but does not work with the server on p374.

The error I get is

/home/deployer/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- CSV (LoadError)<br> from /home/deployer/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire '

+5
source share
1 answer

The case is important. CSVnot yet defined CSV.

require 'csv'

I don't have a Mac at hand, but it probably works because your FS (HSF +) is case insensitive, while the server is case sensitive.

+16
source

All Articles