Directory of C:\search_app 01/21/2007 19:37 <DIR> . 01/21/2007 19:37 <DIR> .. 01/21/2007 19:36 427 008 ferret-0.10.13.gem 01/21/2007 19:07 148 992 rdig-0.3.4.gem 2 File(s) 576 000 bytes 2 Dir(s) 45 135 982 592 bytes free C:\search_app>gem install ferret Building native extensions. This could take a while... ERROR: Error installing gem ferret[.gem]: ERROR: Failed to build gem native ext ension. Gem files will remain installed in c:/Program Files/Ruby/lib/ruby/gems/1.8/gems/ ferret-0.10.13 for inspection. Results logged to c:/Program Files/Ruby/lib/ruby/gems/1.8/gems/ferret-0.10.13/ex t/gem_make.out C:\search_app> --------------------- And looking at gem_make.out showing nothing -- Posted via http://www.ruby-forum.com/.
Hi! Just a wild guess - I didn''t ever use Ferret on Windows - Do you have a compiler installed? Can you build and install other gems with native extensions? Jens On Sun, Jan 21, 2007 at 07:47:56PM +0100, Ngoc Ngoc wrote:> Directory of C:\search_app > > 01/21/2007 19:37 <DIR> . > 01/21/2007 19:37 <DIR> .. > 01/21/2007 19:36 427 008 ferret-0.10.13.gem > 01/21/2007 19:07 148 992 rdig-0.3.4.gem > 2 File(s) 576 000 bytes > 2 Dir(s) 45 135 982 592 bytes free > > C:\search_app>gem install ferret > Building native extensions. This could take a while... > > ERROR: Error installing gem ferret[.gem]: ERROR: Failed to build gem > native ext > ension. > Gem files will remain installed in c:/Program > Files/Ruby/lib/ruby/gems/1.8/gems/ > ferret-0.10.13 for inspection. > > > Results logged to c:/Program > Files/Ruby/lib/ruby/gems/1.8/gems/ferret-0.10.13/ex > t/gem_make.out > > C:\search_app> > > > --------------------- > And looking at gem_make.out showing nothing > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk >-- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
Jens Kraemer wrote:> Just a wild guess - I didn''t ever use Ferret on Windows - Do you have a > compiler installed? Can you build and install other gems with native > extensions?Hi Jens I looked closer to ferret download page and saw there are ferret version for Windows, but with older version. So I downloaded the latest Windows version and the installation is successful. Next step is RDig. And I see you are the author of RDig. Installing gave message "Could not load rubyful_soup.rb". First I installed Hpricot, so there is no need for rubyful_soup.rb. I tried to figure out what is wrong? Reading at the code, I found RDig is made for Linux and Unix platform. The path # load content extractors Dir["#{File.expand_path(File.dirname(__FILE__))}/content_extractors/**/*.rb"].each do |f| begin require f rescue LoadError puts "could not load #{f}: #{$!}" end end I changed to below-> the error message is disappear. # load content extractors Dir["#{File.expand_path(File.dirname(__FILE__))}\\content_extractors\\**\\*.rb"].each do |f| begin require f rescue LoadError puts "could not load #{f}: #{$!}" end end But I still could not get index. Because rdig -c config.rb -q ''ruby'' gave no result. I changed from url_type = RDig.config.crawler.start_urls.first =~ /^file:\/\// ? :file : :http to url_type = RDig.config.crawler.start_urls.first =~ /^https?:\/\// ? :http : :file my url is "C://data_store//files" But still no index. So if I have more time, I will work further on it to make it work in Windows. And I will report to you if you want. Ngoc -- Posted via http://www.ruby-forum.com/.
On Mon, Jan 22, 2007 at 01:59:29PM +0100, ngoc wrote:> Jens Kraemer wrote: > > > Just a wild guess - I didn''t ever use Ferret on Windows - Do you have a > > compiler installed? Can you build and install other gems with native > > extensions? > > Hi Jens > I looked closer to ferret download page and saw there are ferret version > for Windows, but with older version. So I downloaded the latest Windows > version and the installation is successful.What version do you have installed now? latest RDig requires a 0.10.x Ferret. Besides that, It would be cool if you could send me a patch with the changes you had to apply to rdig when you made it work on windows. cheers, Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
> > What version do you have installed now? latest RDig requires a 0.10.x > Ferret. >I installed ferret-0.10.9-mswin32.gem. I think the reason is derivative path is not reached RDig.config.crawler.start_urls.each { |url| add_url(url, filterchain) } To tried to print url value by RDig.config.crawler.start_urls.each { |url| add_url(url, filterchain) puts url } ->It looped only one path which is C://data_store//files When I changed to file:///data_store//files, It looped a lot but still no index. I have a lot of files in my Windows pc. I want to search it. Windows XP search is not good. Using Windows Desktop Search index my files when machine is not active. So It will reduce my hard drive life time. That is the reason, I am searching other search software than Windows XP standard search software. I will report to you patch for windows. It will take a while, because now I am very busy with other tasks. Thanks Jens ngoc -- Posted via http://www.ruby-forum.com/.