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/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk