From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 490057236480 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,84fc934da9a14f27 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.152.8.67 with SMTP id p3mr346420laa.4.1421015608499; Sun, 11 Jan 2015 14:33:28 -0800 (PST) X-BeenThere: supmua@googlegroups.com Received: by 10.180.100.6 with SMTP id eu6ls473753wib.7.gmail; Sun, 11 Jan 2015 14:33:28 -0800 (PST) X-Received: by 10.180.24.35 with SMTP id r3mr1676867wif.0.1421015608039; Sun, 11 Jan 2015 14:33:28 -0800 (PST) Return-Path: Received: from mout.web.de (mout.web.de. [212.227.17.12]) by gmr-mx.google.com with ESMTPS id j6si349925wix.1.2015.01.11.14.33.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 14:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of ruthard.baudach@web.de designates 212.227.17.12 as permitted sender) client-ip=212.227.17.12; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ruthard.baudach@web.de designates 212.227.17.12 as permitted sender) smtp.mail=ruthard.baudach@web.de Received: from localhost ([188.105.160.104]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MQvsg-1YLsLJ1xle-00UIXD for ; Sun, 11 Jan 2015 23:33:27 +0100 Content-Type: text/plain; charset=UTF-8 From: Ruthard Baudach To: supmua Subject: Re: [sup] sup broken with ruby 2.2? In-reply-to: References: Date: Sun, 11 Jan 2015 23:33:25 +0100 Message-Id: <1421014626-sup-9934@ruthard-lappi> User-Agent: Sup/0.20.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:O24Eno2yucnTxo6vzJq92kWicQPPYO+o9V3pJ0BXFZ/aM1FWx/J puQg5YOzv2M7lPdXKdleZGcBvw0CTugf6ZNOrDDwj9a52UQPTGQdmQ7dA3U9uPurI2I3Pif E/hSOwlPFQxfRDakaOp7lVgUH5ihenf0o9tmrbq9YFaoEvzrP5MBiqL3jSOT2VW0dWmO8UD 6422NiLnKqP+2QOIxIRmg== X-UI-Out-Filterresults: notjunk:1; It hit me, too. The problem seems to be a deprecated DL module, that is substituted by Fiddle and removed from Ruby 2.2. (remember the deprecation notice when sup started?) Assuming that the API of fiddle is the same as of DL, I replaced 'dl' by 'fiddle' and it seems to work: Locate your master sup script -- it should live in sup's bin/ directory, if you installed sup via `gem install` this should be `$HOME/.gem/ruby/2.2.0/gems/sup-0.20.0/bin/sup` for a current sup and ruby install open this file in the editor of your choice. line 111 has to be changed from require 'dl/import' to require 'fiddle/import' and line 113 from extend DL.const_defined?(:Importer) ? DL::Importer : DL::Importable to extend Fiddle::Importer Sorry to Gaute and all developers for not providing a patch, but a) I'm not really shure this will work, someone should probably skim the documentation of ruby 2.1.5 dl/import and ruby 2.2.0 fiddle/import b) I'm still not really acquainted with git. Best regards, Ruthard >== Auszüge aus der Nachricht von gui-gui vom 2015-01-06 11:13: > Hello all, > > I updated my system to ruby 2.2 and I can't get sup to work. > At first it didn't work so I figured I needed to recompile it, so I removed and reinstalled it. However, simply typing 'gem install sup' fails with this message: > > Fetching: sup-0.20.0.gem (100%) > Building native extensions.  This could take a while... > ERROR:  Error installing sup: >     ERROR: Failed to build gem native extension. > >     /usr/bin/ruby mkrf_conf_xapian.rb > xapian: installing xapian-ruby.. > xapian: platform specific dependencies.. > > rake failed, exit code 1 > > Gem files will remain installed in /home/guiniol/.gem/ruby/2.2.0/gems/sup-0.20.0 for inspection. > Results logged to /home/guiniol/.gem/ruby/2.2.0/extensions/x86_64-linux/2.2.0/sup-0.20.0/gem_make.out > > > I figured the problem was with xapian, so I tried to first install xapian-ruby and then sup, which works. However, sup doesn't launch. I get this error instead: > > /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError) >     from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' >     from /home/guiniol/.gem/ruby/2.2.0/gems/sup-0.20.0/bin/sup:111:in `' >     from /home/guiniol/.gem/ruby/2.2.0/gems/sup-0.20.0/bin/sup:74:in `' >     from /home/guiniol/.gem/ruby/2.2.0/bin/sup:23:in `load' >     from /home/guiniol/.gem/ruby/2.2.0/bin/sup:23:in `
' > > > Has anyone else tried sup with ruby 2.2? Is there anything I can try to get it to work? > > Cheers, > > Guillaume > -- Emails are postcards. Put them in an envelope, Sign and encrypt them! My PGP-Id: 0xAC5AC6C2