Subject: [sup-talk] Error when running sup

From: [email-masked] (William Betts)
Date: Mon, 13 Aug 2007 10:55:45 -0500

Hello,

I just installed sup using gem install sup -y after it finished
installing I tried to run "sup" and I received the following errors.

/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:34: warning:
already initialized constant VERSION
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:36: warning:
already initialized constant BASE_DIR
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:37: warning:
already initialized constant CONFIG_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:38: warning:
already initialized constant SOURCE_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:39: warning:
already initialized constant LABEL_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:40: warning:
already initialized constant PERSON_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:41: warning:
already initialized constant CONTACT_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:42: warning:
already initialized constant DRAFT_DIR
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:43: warning:
already initialized constant SENT_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:44: warning:
already initialized constant LOCK_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:45: warning:
already initialized constant SUICIDE_FN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:47: warning:
already initialized constant YAML_DOMAIN
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:48: warning:
already initialized constant YAML_DATE
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__': no such file to load -- iconv (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/message.rb:3
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require__'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:208
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require__'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup:7
        from /usr/local/bin/sup:18:in `load'
        from /usr/local/bin/sup:18

uname -a output:
FreeBSD <hostname_removed> 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan
12 10:40:27 UTC 2007
root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Any help would be appreciated.

Thank You,
William

---

From: [email-masked] (William Morgan)
Date: Mon, 13 Aug 2007 15:10:57 -0700

Hi William,

> already initialized constant VERSION

I'm not sure what's causing these. Looks like sup.rb is being loaded
twice in your path for some reason. It shouldn't affect anything though.

>         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in

Looks like you're missing a Ruby iconv library. On my Debian system it's
a separate package named libruby-iconv. Not sure what the equivalent is
for BSD but it's probably something similar.

-- 
William <wmorgan-sup at masanjin.net>