Forum: Ferret Problem with ferret & acts_as_ferret on Window XP

Posted by Hanguo Luo (chinch)
on 2008-07-26 12:47
Platform :windows xp
ferret : gem install ferret -v=0.11.5 --platform mswin32
acts_as_ferret : gem install acts_as_ferret (version 0.4.3)
ruby version 1.8.6
rails version 2.1

all installations went with no error

add "require 'acts_as_ferret'" in environment.rb

problem when booting WEBrick:
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- ferret_ext
(MissingSourceFile)

i found ferret_ext.so under the dir
"C:\ruby\lib\ruby\gems\1.8\gems\ferret-0.11.5-x86-mswin32\ext"

can't find any useful solution by google

anyone can tell me y? Thanks!

BTW: i have no c compiler on XP, do i need one when installing ferret?
Posted by Hanguo Luo (chinch)
on 2008-07-26 17:07
i copy the file ferret_ext.so to the folder 
"C:\ruby\lib\ruby\gems\1.8\gems\ferret-0.11.5-x86-mswin32\lib"
 which ferret.rb is also in, and the WEBrick server start correctly...
so weird,
it seems this line
"$: << File.expand_path(File.join(File.dirname(__FILE__), "../ext"))"
in ferret.rb is useless.





Hanguo Luo wrote:
> Platform :windows xp
> ferret : gem install ferret -v=0.11.5 --platform mswin32
> acts_as_ferret : gem install acts_as_ferret (version 0.4.3)
> ruby version 1.8.6
> rails version 2.1
> 
> all installations went with no error
> 
> add "require 'acts_as_ferret'" in environment.rb
> 
> problem when booting WEBrick:
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- ferret_ext
> (MissingSourceFile)
> 
> i found ferret_ext.so under the dir
> "C:\ruby\lib\ruby\gems\1.8\gems\ferret-0.11.5-x86-mswin32\ext"
> 
> can't find any useful solution by google
> 
> anyone can tell me y? Thanks!
> 
> BTW: i have no c compiler on XP, do i need one when installing ferret?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.