Bug #4158
no such file to load -- puppet/network/server
| Status: | Closed | Start date: | 07/07/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 2.6.0 | |||
| Affected Puppet version: | 2.6alpha1 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
Running off of master (6ac36eb42f0a505fd37d7e600bb0fd8837511b42) I do a ruby install.rb — /home/bkearney/puppet. When attempting to run against that install, I get the output in http://www.pastie.org/1034425.
This is on a Fedora 12 machine.
History
Updated by James Turnbull almost 2 years ago
- Status changed from Unreviewed to Investigating
- Assignee set to Markus Roberts
- Target version set to 2.6.0
Updated by Markus Roberts almost 2 years ago
- Status changed from Investigating to Needs More Information
- Assignee changed from Markus Roberts to Bryan Kearney
This appears to be an installation problem; in the pastie I see:
RUBYLIB=/home/bkearney/puppet/usr/lib/ruby/site_ruby/1.8/
but Puppet needs its lib-dir in the RUBYLIB. Can you try it with something like:
RUBYLIB=/home/bkearney/puppet/lib:/usr/lib/ruby/site_ruby/1.8/
or whatever would be appropriate for your system?
— Markus
Updated by Bryan Kearney almost 2 years ago
the contents of my install can be seen at http://www.pastie.org/1034500. Given that puppet.rb and the puppet directory are found at /home/bkearney/puppet/usr/lib/ruby/site_ruby/1.8/ I assumed this was correct. I changed the following env variable:
export RUBYLIB=/home/bkearney/puppet/usr/lib/ruby/site_ruby/1.8/:/home/bkearney/puppet/usr/lib
to no avail.
Updated by Markus Roberts almost 2 years ago
You should have a file on your system with the path:
/xxxx/lib/puppet/network/server.rb
for some “xxxx” (most likely from what you’ve said “/home/bkearney/puppet/lib/puppet/network/server.rb”), and the “/xxxx/lib” needs to be in your RUBYPATH.
Does that help? (This may be a problem with install.rb if you can’t locate the file or it isn’t in a reasonable place).
— Markus
Updated by Bryan Kearney almost 2 years ago
if I execute
ruby install.rb —destdir=/home/bkearney/puppet
from my git checkout location, then I get a lib directory in
/home/bkearney/puppet/usr/
but that directory is empty save for the following:
/home/bkearney/puppet/usr/lib/ruby/site_ruby/1.8/puppet.rb /home/bkearney/puppet/usr/lib/ruby/site_ruby/1.8/puppet
where the latter has the contents of the puppet engine (including network/server)
What version of gem and rails are required for 2.6? Here is my info… they are a mix of rpms and pure ruby gems:
[root@localhost ~]# gem —version 1.3.7 [root@localhost ~]# gem list
LOCAL GEMS
abstract (1.0.0) actionmailer (2.3.8, 2.3.4) actionpack (2.3.8, 2.3.4) activerecord (2.3.8, 2.3.4) activeresource (2.3.8, 2.3.4) activesupport (2.3.8, 2.3.4) Antwrap (0.7.0) archive-tar-minitar (0.5.2) authlogic (2.1.5) builder (2.1.2) buildr (1.4.0) bundler (0.9.26) compass (0.10.2) cucumber (0.7.3) daemons (1.1.0) deltacloud-client (0.0.4) diff-lcs (1.1.2) erubis (2.6.5) eventmachine (0.12.10) extlib (0.9.15) facter (1.5.7) gem2rpm (0.6.0) gettext (2.1.0) gettext_activerecord (2.1.0) gettext_rails (2.1.0) gherkin (1.0.30) haml (3.0.13) highline (1.5.2, 1.5.1) hoe (2.6.1, 2.3.3) i18n (0.4.1) json (1.4.3) json_pure (1.4.3, 1.4.0) locale (2.0.5) locale_rails (2.0.5) mail (2.2.5) memcache-client (1.8.3) mime-types (1.16) minitest (1.6.0) mocha (0.9.8) net-sftp (2.0.4, 2.0.2) net-ssh (2.0.23, 2.0.15) pg (0.9.0) polyglot (0.3.1) rack (1.2.1, 1.0.1) rack-mount (0.6.6) rack-test (0.5.4) rails (2.3.8, 2.3.4) rake (0.8.7) rake-compiler (0.7.0) rerun (0.5.2) rest-client (1.5.1) rjb (1.2.5) rspec (1.3.0) rubyforge (2.0.4, 2.0.3) rubygems-update (1.3.7) rubyzip (0.9.4, 0.9.1) sinatra (1.0) sproutcore (1.0.1046) sqlite3-ruby (1.3.0) term-ansicolor (1.0.5) text-format (1.0.0) text-hyphen (1.0.0) thin (1.2.7) thor (0.13.6) treetop (1.4.8) trollop (1.16.2) tzinfo (0.3.22) xml-simple (1.0.12) [root@localhost ~]#
Updated by Markus Roberts almost 2 years ago
- Status changed from Needs More Information to Investigating
- Assignee changed from Bryan Kearney to Markus Roberts
Thanks, I’m trying to reproduce now.
Updated by Markus Roberts almost 2 years ago
- Assignee deleted (
Markus Roberts)
I wasn’t able to reproduce. Anyone have any thoughts?
Updated by Bryan Kearney almost 2 years ago
I installed the gem and am working, so if you want to close it as pebcak that is fine. I noticed some other issue with the rails version local, so there may be a nuttiness with the rubygems I have… dunno.
Updated by James Turnbull almost 2 years ago
- Status changed from Investigating to Closed
Closed as PEBCAK :) Re-open if still an issue.