Subject: Re: [sup-talk] git co old version

From: John Bent <[email-masked]>
Date: Fri, 22 Apr 2011 14:03:20 -0600

Excerpts from Tero Tilus's message of Fri Apr 22 10:14:09 -0600 2011:
> John Bent, 2011-04-22 17:29:
> > Can anyone supply the command-line magic to check out an old version
> > of sup from the git repository pls?
> 
> To jump to specific tag (releases are tagged) you use `git checkout
> <tag>` and `git tag` to list tags.
> 
Excellent.  Thanks.  Also, thanks to Mariano who replied separately with
the same solution.  Also, thanks for tolerating what's clearly more
suited for a git message board!

But now a sup problem if you don't mind with sup-convert-ferret-index:

jvpn-132-106:~>sup-convert-ferret-index 
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/index.rb:229:in
`rescue in init': unknown index type "ferret": no such file to load --
ferret (RuntimeError)
        from
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/index.rb:224:in
`init'
        from
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/bin/sup-convert-ferret-index:53:in
`<top (required)>'
        from /opt/local/bin/sup-convert-ferret-index:19:in `load'
        from /opt/local/bin/sup-convert-ferret-index:19:in `<main>'

Anyone see this before?  I'm doing something silly probably.
-- 
Thanks,

John 
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: John Bent <[email-masked]>
Date: Tue, 26 Apr 2011 10:30:16 -0600

Excerpts from Tero Tilus's message of Sat Apr 23 03:25:36 -0600 2011:
> John Bent, 2011-04-22 23:03:
> Wasn't ferret support dropped already before 0.10 or do I just remeber
> wrong?  
> 
I think it was deprecated in 0.10.  0.10 comes with
sup-convert-ferret-index at least.

> And why did you ask for git commands if you are using old sup
> from gems?  
That's cause I'm thrashing a bit here.  :)  I've just been trying
whatever I can to get a working copy of sup-convert-ferret-index.

> And in case I got something wrong here, it seems to be
> missing ferret (the gem).  Does gem list show ferret?
>
That was indeed the problem.  Thanks!

Sadly however, I still can't get sup-convert-ferret-index to run.  I've
tried now on two different machines. Any further help or suggestions are
greatly appreciated.  I'd rather not be stuck w/ sup 0.10 and ferret any
longer.  :(

1) 10.6.6 OS X

  jvpn-132-106:/tmp>sup-convert-ferret-index 
  ## Step one: back up all message state to /tmp/sup-state.txt
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/bin/sup-dump --index
  ferret > /tmp/sup-state.txt
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/ferret-0.11.6.19/lib/ferret/index.rb:736:in
  `initialize': File Not Found Error occured at <except.c>:93 in xraise
  (Ferret::FileNotFoundError)
  Error occured in index.c:840 - sis_find_segments_file
          couldn't find segments file

          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/ferret-0.11.6.19/lib/ferret/index.rb:736:in
  `new'
          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/ferret-0.11.6.19/lib/ferret/index.rb:736:in
  `ensure_reader_open'
          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/ferret-0.11.6.19/lib/ferret/index.rb:591:in
  `block in size'
          from /opt/local/lib/ruby1.9/1.9.1/monitor.rb:201:in
  `mon_synchronize'
          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/ferret-0.11.6.19/lib/ferret/index.rb:590:in
  `size'
          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/ferret_index.rb:33:in
  `block in load_index'
          from /opt/local/lib/ruby1.9/1.9.1/monitor.rb:201:in
  `mon_synchronize'
          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/ferret_index.rb:31:in
  `load_index'
          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/index.rb:71:in
  `load'
          from
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/sup-0.10.2/bin/sup-dump:27:in
  `<main>'

2) 10.5.8 OS X

  guava:~>sup-convert-ferret-index 
  Error: you don't have the xapian gem installed, so this script won't do
  much for you--`gem install xapian` (or xapian-full) first.
  Try --help for help.

  guava:~>gem list

  *** LOCAL GEMS ***
  acts_as_xapian (0.1.3)
  chronic (0.2.3)
  ferret (0.11.6)
  gemcutter (0.5.0)
  gettext (2.1.0)
  highline (1.5.2)
  hoe (2.5.0)
  json_pure (1.2.2)
  locale (2.0.5)
  lockfile (1.4.3)
  mime-types (1.16)
  ncursesw (1.2.4.1)
  net-ssh (2.0.20)
  rake (0.8.7)
  rmail (1.0.0)
  rubyforge (2.0.4)
  sup (0.10.2)
  trollop (1.15)
  xapian-core (1.2.3.1)
  xapian-full (1.1.3.4)

  So, you can see that I have xapian-full but not xapian.  gem install
  xapian fails with some weird error that makes it look like my gcc
  isn't properly installed but I use it successfully for other things
  all the time.  I've attached the gem install error log for this but
  basically the configure is explicitly adding some linking to objects
  which don't exist (i.e. crti.o, crtbeginS.o, crtendS.o)

Any thoughts about possible things to try on either machine 1 or 2?  Or
perhaps the easiest path is some machine 3 running linux?
-- 
Thanks,

John

---

From: Tero Tilus <[email-masked]>
Date: Fri, 22 Apr 2011 19:14:09 +0300

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: John Bent <[email-masked]>
Date: Fri, 22 Apr 2011 08:29:16 -0600

Can anyone supply the command-line magic to check out an old version of
sup from the git repository pls?

Specifically what I'm trying to do is sup-convert-ferret-index to
finally upgrade to 0.12.  I tried before from an old PPC mac and
couldn't get it to work.  I'm now on intel SL and actually got gem
install sup to work (once I upgraded to ruby1.9).  But unfortunately,
sup 0.12 does not come with sup-convert-ferret-index . . .
-- 
Thanks,

John

---

From: Tero Tilus <[email-masked]>
Date: Sat, 23 Apr 2011 12:25:36 +0300

Wasn't ferret support dropped already before 0.10 or do I just remeber
wrong?  And why did you ask for git commands if you are using old sup
from gems?  And in case I got something wrong here, it seems to be
missing ferret (the gem).  Does gem list show ferret?

---

From: Tero Tilus <[email-masked]>
Date: Tue, 26 Apr 2011 21:33:14 +0300

John Bent, 2011-04-26 19:30:
> Sadly however, I still can't get sup-convert-ferret-index to run.

I've got no idea whats wrong with your sup-convert-ferret-index.  I'm
not 100% sure, but I assume you could just try to sup-dump with old
enough sup (preferably the one you've been using) and reindex +
restore using current.

---

From: John Bent <[email-masked]>
Date: Wed, 11 May 2011 21:28:39 -0600

> enough sup (preferably the one you've been using) and reindex +
Just a follow-up.  I am finally off ferret and am all the way onto
0.12.1!  I'm not sure why it was so difficult but I could never
successfully convert from ferret to xapian on an OS X box.  On 10.5.8, I
couldn't ever get xapian working and on 10.6 I couldn't get ferret
working.  I finally just migrated to a real linux box and am happily
sup'ing again!  Thanks to everyone who chimed in trying to help me. 
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk