Opened 8 years ago

Closed 8 years ago

#49682 closed defect (invalid)

gdb does not install on El Capitan

Reported by: stiefschmied@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: elcapitan Cc: kurthindenburg (Kurt Hindenburg)
Port: gdb

Description

gdb can not be installed on El Capitan, most likely due to Apple's "rootless system" feature.

System: OSX 10.11.1.

"sudo port install gdb" does not give an error message, but nevertheless gdb is not available.

Attachments (1)

install_gdb.txt (1.2 KB) - added by stiefschmied@… 8 years ago.
gdb installation log

Download all attachments as: .zip

Change History (6)

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

Keywords: elcapitan added; gdb El Capitan removed
Port: gdb added

"sudo port install gdb" should produce some output: either showing a successful installation or showing an error. Please show us the exact output you get from running that command. gdb builds fine for me on OS X 10.11.1. If it fails for you, it should print the location of a main.log file which you should attach to this ticket.

Changed 8 years ago by stiefschmied@…

Attachment: install_gdb.txt added

gdb installation log

comment:2 Changed 8 years ago by stiefschmied@…

The installation log is attached. It seems to install something, but I can not find "gdb" after installation. I was expecting to find "/opt/local/bin/gdb" but it is not there.

comment:3 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:4 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

If it installs, this will likely display the binaries

 $ port contents gdb | grep bin                                                                                            
  /opt/local/bin/ggdb
  /opt/local/libexec/gnubin/gdb

Note that 10.11 has SIP, so the notes given doesn't appear to be possible to change. "You will need to make sure /System/Library/LaunchDaemons/com.apple.taskgated.plist has the '-p' option"

https://en.wikipedia.org/wiki/System_Integrity_Protection

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

Resolution: invalid
Status: newclosed

Replying to stiefschmied@…:

The installation log is attached. It seems to install something, but I can not find "gdb" after installation. I was expecting to find "/opt/local/bin/gdb" but it is not there.

The transcript you attached shows gdb was successfully installed.

The gdb port does not provide /opt/local/bin/gdb; it provides /opt/local/bin/ggdb. As Kurt mentioned above, use "port contents" to discover what a port installs.

If you want to call the program as "gdb" instead of "ggdb" you can add /opt/local/libexec/gnubin to your PATH environment variable, however note that several other GNU programs install into that directory and making them available in the PATH might be problematic on OS X. An alternative would be to define a shell alias for gdb in your shell startup file.

Note: See TracTickets for help on using tickets.