* [sup-talk] git co old version
@ 2011-04-22 14:29 John Bent
2011-04-22 16:14 ` Tero Tilus
0 siblings, 1 reply; 7+ messages in thread
From: John Bent @ 2011-04-22 14:29 UTC (permalink / raw)
To: sup-talk
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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sup-talk] git co old version
2011-04-22 14:29 [sup-talk] git co old version John Bent
@ 2011-04-22 16:14 ` Tero Tilus
2011-04-22 20:03 ` John Bent
0 siblings, 1 reply; 7+ messages in thread
From: Tero Tilus @ 2011-04-22 16:14 UTC (permalink / raw)
To: Sup users
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.
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sup-talk] git co old version
2011-04-22 16:14 ` Tero Tilus
@ 2011-04-22 20:03 ` John Bent
2011-04-23 9:25 ` Tero Tilus
0 siblings, 1 reply; 7+ messages in thread
From: John Bent @ 2011-04-22 20:03 UTC (permalink / raw)
To: sup-talk
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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sup-talk] git co old version
2011-04-22 20:03 ` John Bent
@ 2011-04-23 9:25 ` Tero Tilus
2011-04-26 16:30 ` John Bent
0 siblings, 1 reply; 7+ messages in thread
From: Tero Tilus @ 2011-04-23 9:25 UTC (permalink / raw)
To: Sup users
John Bent, 2011-04-22 23:03:
> 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)
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?
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sup-talk] git co old version
2011-04-23 9:25 ` Tero Tilus
@ 2011-04-26 16:30 ` John Bent
2011-04-26 18:33 ` Tero Tilus
0 siblings, 1 reply; 7+ messages in thread
From: John Bent @ 2011-04-26 16:30 UTC (permalink / raw)
To: sup-talk
[-- Attachment #1: Type: text/plain, Size: 3932 bytes --]
Excerpts from Tero Tilus's message of Sat Apr 23 03:25:36 -0600 2011:
> John Bent, 2011-04-22 23:03:
> > 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)
>
> 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
[-- Attachment #2: gem_make.out --]
[-- Type: application/octet-stream, Size: 7572 bytes --]
/opt/local/bin/ruby extconf.rb
./configure --with-ruby
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i386-apple-darwin10.5.0
checking host system type... i386-apple-darwin10.5.0
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for grep that handles long lines and -e... /opt/local/bin/grep
checking for egrep... /opt/local/bin/grep -E
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) is GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for xapian-config... /opt/local/bin/xapian-config
checking /opt/local/bin/xapian-config works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for ruby1.8... no
checking for ruby... /opt/local/bin/ruby
checking /opt/local/bin/ruby version... ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10]
checking for /opt/local/lib/ruby/1.8/i686-darwin10/ruby.h... yes
checking ruby/io.h... no
checking whether to use -fvisibility=hidden... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xapian-version.h
config.status: creating python/Makefile
config.status: creating python/docs/Makefile
config.status: creating php/Makefile
config.status: creating php/docs/Makefile
config.status: creating java/Makefile
config.status: creating java/native/Makefile
config.status: creating java/org/xapian/Makefile
config.status: creating java/org/xapian/errors/Makefile
config.status: creating java/org/xapian/examples/Makefile
config.status: creating java-swig/Makefile
config.status: creating tcl8/Makefile
config.status: creating tcl8/docs/Makefile
config.status: creating tcl8/pkgIndex.tcl
config.status: creating csharp/Makefile
config.status: creating csharp/docs/Makefile
config.status: creating csharp/AssemblyInfo.cs
config.status: creating ruby/Makefile
config.status: creating ruby/docs/Makefile
config.status: creating xapian-bindings.spec
config.status: creating python/generate-python-exceptions
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
*** Building bindings for languages: ruby
make
make all-recursive
Making all in ruby
make all-recursive
Making all in docs
make all-am
make[5]: Nothing to be done for `all-am'.
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I/opt/local/lib/ruby/1.8/i686-darwin10 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/opt/local/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c -o xapian_wrap.lo xapian_wrap.cc
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I/opt/local/lib/ruby/1.8/i686-darwin10 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/opt/local/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o
mv -f .deps/xapian_wrap.Tpo .deps/xapian_wrap.Plo
/bin/sh ../libtool --tag=CXX --mode=link g++ -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/opt/local/include -g -O2 -avoid-version -module -shrext ".bundle" -o _xapian.la -rpath /opt/local/lib/ruby/site_ruby/1.8/i686-darwin10 xapian_wrap.lo /opt/local/lib/libxapian.la -lstdc++
g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtbeginS.o .libs/xapian_wrap.o -Wl,--rpath -Wl,/opt/local/lib -Wl,--rpath -Wl,/opt/local/lib /opt/local/lib/libxapian.dylib -L/opt/local/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.1 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crtn.o -Wl,-soname -Wl,_xapian.bundle -o .libs/_xapian.bundle
i686-apple-darwin10-g++-4.0.1: /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crti.o: No such file or directory
i686-apple-darwin10-g++-4.0.1: /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtbeginS.o: No such file or directory
i686-apple-darwin10-g++-4.0.1: /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtendS.o: No such file or directory
i686-apple-darwin10-g++-4.0.1: /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crtn.o: No such file or directory
make[4]: *** [_xapian.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
extconf.rb:3:in `system!': unhandled exception
from extconf.rb:6
[-- Attachment #3: Type: text/plain, Size: 140 bytes --]
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sup-talk] git co old version
2011-04-26 16:30 ` John Bent
@ 2011-04-26 18:33 ` Tero Tilus
2011-05-12 3:28 ` John Bent
0 siblings, 1 reply; 7+ messages in thread
From: Tero Tilus @ 2011-04-26 18:33 UTC (permalink / raw)
To: Sup users
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.
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sup-talk] git co old version
2011-04-26 18:33 ` Tero Tilus
@ 2011-05-12 3:28 ` John Bent
0 siblings, 0 replies; 7+ messages in thread
From: John Bent @ 2011-05-12 3:28 UTC (permalink / raw)
To: sup-talk
Excerpts from Tero Tilus's message of Tue Apr 26 12:33:14 -0600 2011:
> 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.
>
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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-05-12 3:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-22 14:29 [sup-talk] git co old version John Bent
2011-04-22 16:14 ` Tero Tilus
2011-04-22 20:03 ` John Bent
2011-04-23 9:25 ` Tero Tilus
2011-04-26 16:30 ` John Bent
2011-04-26 18:33 ` Tero Tilus
2011-05-12 3:28 ` John Bent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox