Opened 10 years ago

Last modified 9 years ago

#42125 new defect

traceroute: can't install when MacPorts is not installed as root

Reported by: rudloff@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: traceroute

Description

Hello,

I get an error when I try to install traceroute:

install: /Users/prudloff/opt/var/macports/build/_Users_prudloff_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_traceroute/traceroute/work/destroot/Users/prudloff/opt/sbin/traceroute: chown/chgrp: Operation not permitted

Attachments (1)

main.log (24.0 KB) - added by rudloff@… 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by rudloff@…

Attachment: main.log added

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

Traceroute apparently needs to be installed as root with the setuid bit, judging from the Makefile.

Does adding the line "install_asroot yes" to the portfile help?

comment:2 Changed 10 years ago by rudloff@…

install_asroot does not seem to exist:

Failed to parse file net/traceroute/Portfile: invalid command name "install_asroot"

Did you mean install.asroot ? I am not root on this system so it won't change anything though.

comment:3 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 in reply to:  2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Can't install traceroutetraceroute: can't install when MacPorts is not installed as root

Replying to rudloff@…:

install_asroot does not seem to exist:

Failed to parse file net/traceroute/Portfile: invalid command name "install_asroot"

Did you mean install.asroot ?

Yes I suppose I did.

I am not root on this system so it won't change anything though.

Ah.

Note: See TracTickets for help on using tickets.