Bug #2305
facter executable is not working
| Status: | Closed | Start date: | 05/27/2009 | |
|---|---|---|---|---|
| Priority: | Urgent | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Keywords: | Affected Facter version: | |||
| Branch: | ||||
| Votes: | 0 |
Description
running
/usr/bin/facterfail with:
/usr/local/lib/site_ruby/1.8/rubygems.rb:383:in `bin_path': can't find executable facter for facter-1.5.5 (Gem::Exception) from /usr/bin/facter:19
running:
ruby -rubygems /usr/lib/ruby/gems/1.8/gems/facter-1.5.5/bin/facterwork as expected.
As far i can see there is no executables declared in the gem spec. Here is a small fix for it:
--- Rakefile.old 2009-05-27 18:02:59.564505233 -0300
+++ Rakefile 2009-05-27 18:01:32.769514813 -0300
@@ -21,6 +21,7 @@ spec = Gem::Specification.new do |spec|
spec.platform = Gem::Platform::RUBY
spec.name = 'facter'
spec.files = FILES.to_a
+ spec.executables = %w{facter}
spec.version = Facter::FACTERVERSION
spec.summary = 'Facter, a system inventory tool'
spec.author = 'Reductive Labs'
Related issues
History
Updated by James Turnbull over 2 years ago
- Status changed from Unreviewed to Duplicate
Duplicates #2203.
Updated by Pablo Castellazzi over 2 years ago
- Status changed from Duplicate to Re-opened
This has nothing to do with my ruby/gem setup. The specification for the facter gem is wrong, or at least it is incompatible with rubygems 1.3.3. The patch i posted fix this issue.
Updated by James Turnbull over 2 years ago
- Status changed from Re-opened to Closed
Duplicates #2303.