Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] help installing on FC17 on 64bit
@ 2013-01-14 15:12 Philippe LeCavalier
  2013-01-14 17:23 ` Mark Alexander
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe LeCavalier @ 2013-01-14 15:12 UTC (permalink / raw)
  To: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 1308 bytes --]

Hi.

In light of recent activity I'd like to give sup another whirl. Last time I
installed sup was on i386 w/Deb. I'm now on FC17 64-bit -dunno if that's
what's making thing difficult or not...

I've installed everything from the fedora repo including sup gem.
Everything installs successfully however I get:

 sup
/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': superclass
mismatch for class Iconv (TypeError)
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/gems/gems/sup-0.10.2/lib/sup/rfc2047.rb:19:in `<top
(required)>'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/gems/gems/sup-0.10.2/lib/sup/source.rb:1:in `<top
(required)>'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/gems/gems/sup-0.10.2/lib/sup.rb:304:in `<top (required)>'
from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/share/gems/gems/sup-0.10.2/bin/sup:15:in `<top (required)>'
from /usr/bin/sup:19:in `load'
from /usr/bin/sup:19:in `<main>'

Any ideas?

Thanks in advance,
Phil

[-- Attachment #1.2: Type: text/html, Size: 2400 bytes --]

[-- Attachment #2: 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] 5+ messages in thread

* Re: [sup-talk] help installing on FC17 on 64bit
  2013-01-14 15:12 [sup-talk] help installing on FC17 on 64bit Philippe LeCavalier
@ 2013-01-14 17:23 ` Mark Alexander
  2013-01-22 19:23   ` fedzor
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Alexander @ 2013-01-14 17:23 UTC (permalink / raw)
  To: Philippe LeCavalier; +Cc: sup-talk

Excerpts from Philippe LeCavalier's message of Mon Jan 14 10:12:58 -0500 2013:
> /usr/share/rubygems/rubygems/custom_require.rb:36:in `require': superclass
> mismatch for class Iconv (TypeError)

I vaguely recall running into this when experimenting with sup on
Linux Mint 13 and got around the problem with the following patch.  I
was just trying to see if it would even run at all on a new version of
Mint (I normally use sup on a machine running Mint 10).  On this
experimental machine I had no mail in the index, and this was a patch
against my copy of the sup git repository, not against any installed
package.  So no guarantees that this will work.

diff --git a/bin/sup b/bin/sup
index ad7a0d1..8e87a83 100755
--- a/bin/sup
+++ b/bin/sup
@@ -19,6 +19,7 @@ end
 
 require 'fileutils'
 require 'trollop'
+require 'iconv'
 require "sup"; Redwood::check_library_version_against "git"
 
 if ENV['SUP_PROFILE']
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sup-talk] help installing on FC17 on 64bit
  2013-01-14 17:23 ` Mark Alexander
@ 2013-01-22 19:23   ` fedzor
  2013-01-22 19:51     ` Philippe LeCavalier
  2013-01-22 20:14     ` Matthieu Rakotojaona
  0 siblings, 2 replies; 5+ messages in thread
From: fedzor @ 2013-01-22 19:23 UTC (permalink / raw)
  To: sup-talk

I'm getting a similar error. Why does this have to be, though? Why is this error coming up in the first place?

I'm posing the question now but I'll investigate shortly.

On Jan 14, 2013, at 12:23 PM, Mark Alexander wrote:

> Excerpts from Philippe LeCavalier's message of Mon Jan 14 10:12:58 -0500 2013:
>> /usr/share/rubygems/rubygems/custom_require.rb:36:in `require': superclass
>> mismatch for class Iconv (TypeError)
> 
> I vaguely recall running into this when experimenting with sup on
> Linux Mint 13 and got around the problem with the following patch.  I
> was just trying to see if it would even run at all on a new version of
> Mint (I normally use sup on a machine running Mint 10).  On this
> experimental machine I had no mail in the index, and this was a patch
> against my copy of the sup git repository, not against any installed
> package.  So no guarantees that this will work.
> 
> diff --git a/bin/sup b/bin/sup
> index ad7a0d1..8e87a83 100755
> --- a/bin/sup
> +++ b/bin/sup
> @@ -19,6 +19,7 @@ end
> 
> require 'fileutils'
> require 'trollop'
> +require 'iconv'
> require "sup"; Redwood::check_library_version_against "git"
> 
> if ENV['SUP_PROFILE']
> _______________________________________________
> sup-talk mailing list
> sup-talk@rubyforge.org
> http://rubyforge.org/mailman/listinfo/sup-talk

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sup-talk] help installing on FC17 on 64bit
  2013-01-22 19:23   ` fedzor
@ 2013-01-22 19:51     ` Philippe LeCavalier
  2013-01-22 20:14     ` Matthieu Rakotojaona
  1 sibling, 0 replies; 5+ messages in thread
From: Philippe LeCavalier @ 2013-01-22 19:51 UTC (permalink / raw)
  To: fedzor; +Cc: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 405 bytes --]

On Tue, Jan 22, 2013 at 2:23 PM, fedzor <fedzor@gmail.com> wrote:

> I'm getting a similar error. Why does this have to be, though? Why is this
> error coming up in the first place?
>
> I'm posing the question now but I'll investigate shortly.
>
> dunno. I didn't attempt the patch suggested since I hadn't installed from
source and was too lazy to rebuilt the rpm.

Had you installed from source or rpm?

[-- Attachment #1.2: Type: text/html, Size: 775 bytes --]

[-- Attachment #2: 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] 5+ messages in thread

* Re: [sup-talk] help installing on FC17 on 64bit
  2013-01-22 19:23   ` fedzor
  2013-01-22 19:51     ` Philippe LeCavalier
@ 2013-01-22 20:14     ` Matthieu Rakotojaona
  1 sibling, 0 replies; 5+ messages in thread
From: Matthieu Rakotojaona @ 2013-01-22 20:14 UTC (permalink / raw)
  To: fedzor; +Cc: sup-talk

On Tue, Jan 22, 2013 at 8:23 PM, fedzor <fedzor@gmail.com> wrote:
> I'm getting a similar error. Why does this have to be, though? Why is this error coming up in the first place?

class Iconv is redefined in util.rb [0]. If you 'require "iconv"' over
that, there will be a conflict (which one is the real one). I really
don't know how to work around this one; the "easy" solution would be
to uninstall the iconv gem, but this isn't really long-term. If you
have time and courage, you should remove the custom Iconv class and
replace it with the Decoder[1] class from heliotrope. It's a
continuation of this Iconv class, taking into account the tricky 1.9.

[0] https://github.com/sup-heliotrope/sup/blob/dd129e12603f5c77846c5fa624b8f118d53fbd0e/lib/sup/util.rb#L661
[1] https://github.com/sup-heliotrope/sup/pull/1#issuecomment-12415689
--
Matthieu RAKOTOJAONA
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-22 20:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-14 15:12 [sup-talk] help installing on FC17 on 64bit Philippe LeCavalier
2013-01-14 17:23 ` Mark Alexander
2013-01-22 19:23   ` fedzor
2013-01-22 19:51     ` Philippe LeCavalier
2013-01-22 20:14     ` Matthieu Rakotojaona

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox