Linguistics gem

Have Linguistics gem in gem list:

libwebsocket (0.1.3)
linguistics (1.0.9)
mail (2.4.4, 2.4.3, 2.4.1)…

but:

require ‘linguistics’
Linguistics::use( :en ) # extends Array, String, and Numeric

gives error: LoadError: no such file to load — linguistics

Using RVM on OSx

and do have 2 gem paths:

  • GEM PATHS:
    • /Users/dcastellano1/.rvm/gems/ruby-1.9.3-p0
    • /Users/dcastellano1/.rvm/gems/[email protected]

Could Linguistics be in the wrong path, and if so how can I check??

Thanks,

Dave C. (beginner!)

On Sunday, August 5, 2012 8:25:56 AM UTC-5, Dave C. wrote:

Linguistics::use( :en ) # extends Array, String, and Numeric

Could Linguistics be in the wrong path, and if so how can I check??

Thanks,

Dave C. (beginner!)


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

Try:
require ‘rubygems’
require ‘linguistics’

On Mon, Aug 6, 2012 at 1:04 PM, rohitn [email protected] wrote:

require ‘linguistics’
- /Users/dcastellano1/.rvm/gems/[email protected]

Try:
require ‘rubygems’
require ‘linguistics’

That shouldn’t be necessary with Ruby 1.9.

Dave: are you sure RVM’s Ruby 1.9 is active when you run the script?

Dave C. писал 05.08.2012 17:25:

and do have 2 gem paths:

  • GEM PATHS:
    • /Users/dcastellano1/.rvm/gems/ruby-1.9.3-p0
    • /Users/dcastellano1/.rvm/gems/[email protected]

Could Linguistics be in the wrong path, and if so how can I check??

I strongly advise you to upgrade to the latest patchlevel of 1.9.3.
-p0 is known to be unstable and produce random segfaults when running
GC-heavy code.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs