Opened 11 years ago

Closed 9 years ago

#40945 closed defect (invalid)

facter: destroot fails: /opt/local/bin/ruby: No such file or directory

Reported by: ian@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: kurthindenburg (Kurt Hindenburg), ryandesign (Ryan Carsten Schmidt)
Port: facter

Description

$ sudo port install puppet
Password:
Warning: no archive_frameworks_dir configured for site 'macports_archives'
Warning: no archive_applications_dir configured for site 'macports_archives'
Warning: no archive_type configured for site 'macports_archives'
Warning: no archive_frameworks_dir configured for site 'macports_archives'
Warning: no archive_applications_dir configured for site 'macports_archives'
Warning: no archive_type configured for site 'macports_archives'
--->  Computing dependencies for puppetWarning: no archive_frameworks_dir configured for site 'macports_archives'
Warning: no archive_applications_dir configured for site 'macports_archives'
Warning: no archive_type configured for site 'macports_archives'
Warning: no archive_frameworks_dir configured for site 'macports_archives'
Warning: no archive_applications_dir configured for site 'macports_archives'
Warning: no archive_type configured for site 'macports_archives'

--->  Dependencies to be installed: facter ruby
--->  Fetching archive for ruby
--->  Attempting to fetch ruby-1.8.7-p374_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/ruby
--->  Attempting to fetch ruby-1.8.7-p374_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/ruby
--->  Attempting to fetch ruby-1.8.7-p374_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ruby
--->  Fetching distfiles for ruby
--->  Verifying checksums for ruby
--->  Extracting ruby
--->  Applying patches to ruby
--->  Configuring ruby
--->  Building ruby
--->  Staging ruby into destroot
--->  Installing ruby @1.8.7-p374_0
--->  Activating ruby @1.8.7-p374_0
--->  Cleaning ruby
--->  Staging facter into destroot
Error: org.macports.destroot for port facter returned: command execution failed
Error: Failed to install facter
Please see the log file for port facter for details:
    /opt/local/var/macports/logs/_Users_ibrandt_Development_MacPorts_sysutils_facter/facter/main.log
Error: The following dependencies were not installed: facter
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port puppet failed

Attachments (2)

main.log (14.4 KB) - added by ian@… 11 years ago.
ruby-port-contents.out (671.0 KB) - added by ian@… 11 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ian@… removed
Keywords: puppet removed
Owner: changed from macports-tickets@… to nigel@…

comment:2 Changed 11 years ago by ian@…

Tried that before posting:

sudo port clean facter
sudo port clean puppet
sudo port clean ruby
sudo port uninstall --follow-dependents ruby
sudo port install puppet

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Then please attach the new main.log. The one you attached before was not from a clean build.

Changed 11 years ago by ian@…

Attachment: main.log added

comment:4 Changed 11 years ago by ian@…

Sorry for that. I've just rerun the above commands, and attached the resulting main.log.

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Error: org.macports.destroot for port facter returned: command execution failedfacter: destroot fails: /opt/local/bin/ruby: No such file or directory

The error in the log is:

/opt/local/bin/ruby: No such file or directory

This surprises me since /opt/local/bin/ruby should be provided by the ruby port and the facter port does declare a dependency on the ruby port.

Is the ruby port installed? If not, install it ("sudo port install ruby")

Does /opt/local/bin/ruby exist? If not, what does the ruby port contain? ("port contents ruby")

comment:6 Changed 11 years ago by ian@…

$ ls /opt/local/bin/ruby*
/opt/local/bin/ruby1.8

Changed 11 years ago by ian@…

Attachment: ruby-port-contents.out added

comment:7 Changed 11 years ago by ian@…

It looks like all the bin files have "1.8" tacked on to the end of their names.

comment:8 Changed 11 years ago by ian@…

Checking in to see if there is any other information I can provide on this issue?

comment:9 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:10 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Can you update your macports and try again - from your main.log you're trying to install facter-1.6.2; we up to 1.7.6

I'm not sure forcing 1.8 is a good idea

destroot.cmd        ${prefix}/bin/ruby1.8 ${worksrcpath}/install.rb 

comment:11 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from nigel@… to macports-tickets@…

comment:12 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed

Invalid because you were trying to install an old version of facter; with the current version, it should have worked. Run "sudo port selfupdate" regularly to keep up to date.

Note: See TracTickets for help on using tickets.