Hi, just been having a few issues getting the latest gem install from rubyforge. It seems that it need specific versions ie. facets (= 2.4.3) rubyforge (= 1.0.0) This is fine but I actually have newer version of most of these dependencies installed ie. rubyforge 1.0.1 is installed (and is required for other projects). When trying to run webgen it is loading the newer version first and then cannot load the version that it depends on. This could be an issue with rubygems (I have version 1.2.0 installed) but it seems that the dependencies for webgen could be a little more relaxed (using >= instead of =). Does this make sense? Either that or have it load the gem version that it depends on (load rubyforge 1.0.0 specifically). I am no rubygem expert so I don''t know if this is possible. Basically, I would like to install webgen alongside my other, newer, gems. -felix
Am Sun, 2 Nov 2008 01:36:11 -0800 (PST) schrieb felix <felix.mccoey at gmail.com>:> Hi, > > just been having a few issues getting the latest gem install from > rubyforge. It seems that it need specific versions > > ie. > facets (= 2.4.3) > rubyforge (= 1.0.0) > > This is fine but I actually have newer version of most of these > dependencies installed ie. rubyforge 1.0.1 is installed (and is > required for other projects). When trying to run webgen it is loading > the newer version first and then cannot load the version that it > depends on. This could be an issue with rubygems (I have version 1.2.0 > installed) but it seems that the dependencies for webgen could be a > little more relaxed (using >= instead of =). Does this make sense? > > Either that or have it load the gem version that it depends on (load > rubyforge 1.0.0 specifically). I am no rubygem expert so I don''t know > if this is possible. > > Basically, I would like to install webgen alongside my other, newer, > gems.This *should* work. When you install webgen via Rubygems, the exact versions of the dependencies are installed. When you run webgen, the Rubygems'' installed binary calls gem ''webgen'' with the correct version (ie. normally the latest if you don''t specify a Rubygems version argument to the webgen executable) and loads the correct dependencies. A further call to, for example, require ''facets'', should load the facets library of the correct version (=2.4.3). The only problem that could arise is when you are writing an extension that uses another version of facets since two versions of the same library can''t be loaded at the same time. After installing facets-2.4.5 on my machine webgen works without complaints. I have been using fixed version dependencies after an update to the facets library caused webgen to stop working and after some discussions on this mailing list. So to the problem at hand: could you please give me the output of ''gem list'' so I can investigate further? And do you use any non-webgen shipped extensions? -- Thomas
On Sun, Nov 2, 2008 at 2:36 AM, felix <felix.mccoey at gmail.com> wrote:> Hi, > > just been having a few issues getting the latest gem install from > rubyforge. It seems that it need specific versions >What is your version of rubygems? Can you paste the output of ''gem env''? -- Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/webgen-users/attachments/20081103/d5b09b95/attachment.html>
Thanks for your replies. This is my current setup: RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] - INSTALLATION DIRECTORY: /var/lib/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /var/lib/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/ and this is the error i am receiving: /usr/lib/ruby/1.8/rubygems.rb:142:in `activate'': can''t activate rubyforge (>= 1.0.1, runtime), already activated rubyforge-1.0.0 (Gem::Exception) from /usr/lib/ruby/1.8/rubygems.rb:158:in `activate'' from /usr/lib/ruby/1.8/rubygems.rb:157:in `each'' from /usr/lib/ruby/1.8/rubygems.rb:157:in `activate'' from /usr/lib/ruby/1.8/rubygems.rb:158:in `activate'' from /usr/lib/ruby/1.8/rubygems.rb:157:in `each'' from /usr/lib/ruby/1.8/rubygems.rb:157:in `activate'' from /usr/lib/ruby/1.8/rubygems.rb:158:in `activate'' from /usr/lib/ruby/1.8/rubygems.rb:157:in `each'' from /usr/lib/ruby/1.8/rubygems.rb:157:in `activate'' from /usr/lib/ruby/1.8/rubygems.rb:49:in `gem'' from /var/lib/gems/1.8/bin/webgen:18 -felix On Nov 4, 8:18?am, "Chad Woolley" <thewoolley... at gmail.com> wrote:> On Sun, Nov 2, 2008 at 2:36 AM, felix <felix.mcc... at gmail.com> wrote: > > Hi, > > > just been having a few issues getting the latest gem install from > > rubyforge. It seems that it need specific versions > > What is your version of rubygems? ?Can you paste the output of ''gem env''? > > -- Chad > > _______________________________________________ > webgen-users mailing list > webgen-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/webgen-users
Thomas, I followed the advice to install rubygems from rubyforge (as apposed to my distro''s version) and so it seems that 1.3.x has fixed the issue. This means I have blown away my previous gem list :-) The main thing is, it works. -felix On Nov 4, 3:00?am, Thomas Leitner <t_leit... at gmx.at> wrote:> Am Sun, 2 Nov 2008 01:36:11 -0800 (PST) > schrieb felix <felix.mcc... at gmail.com>: > > > > > Hi, > > > just been having a few issues getting the latest gem install from > > rubyforge. It seems that it need specific versions > > > ie. > > facets (= 2.4.3) > > rubyforge (= 1.0.0) > > > This is fine but I actually have newer version of most of these > > dependencies installed ie. rubyforge 1.0.1 is installed (and is > > required for other projects). When trying to run webgen it is loading > > the newer version first and then cannot load the version that it > > depends on. This could be an issue with rubygems (I have version 1.2.0 > > installed) but it seems that the dependencies for webgen could be a > > little more relaxed (using >= instead of =). Does this make sense? > > > Either that or have it load the gem version that it depends on (load > > rubyforge 1.0.0 specifically). I am no rubygem expert so I don''t know > > if this is possible. > > > Basically, I would like to install webgen alongside my other, newer, > > gems. > > This *should* work. When you install webgen via Rubygems, the exact > versions of the dependencies are installed. When you run webgen, the > Rubygems'' installed binary calls > > ? ? gem ''webgen'' > > with the correct version (ie. normally the latest if you don''t specify > a Rubygems version argument to the webgen executable) and loads the > correct dependencies. A further call to, for example, require ''facets'', > should load the facets library of the correct version (=2.4.3). The > only problem that could arise is when you are writing an extension that > uses another version of facets since two versions of the same library > can''t be loaded at the same time. After installing facets-2.4.5 on my > machine webgen works without complaints. > > I have been using fixed version dependencies after an update to > the facets library caused webgen to stop working and after some > discussions on this mailing list. > > So to the problem at hand: could you please give me the output of ''gem > list'' so I can investigate further? And do you use any non-webgen > shipped extensions? > > -- Thomas > _______________________________________________ > webgen-users mailing list > webgen-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/webgen-users