Opened 9 years ago

Closed 9 years ago

#50435 closed defect (invalid)

mysql55: fatal error: 'sys/types.h' file not found

Reported by: s_brandy@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: mysql55

Description (last modified by ryandesign (Ryan Carsten Schmidt))

my Macbook Pro is : OS X EI Capitan 10.11 and have Xcode 7.2 installed.

$> sudo port install mysql55

and I got fails which report 'sys/types.h' file not found. I surely run 'Xcode-select --install' in advance.

details please refer to attachments

Attachments (2)

main.log (106.5 KB) - added by s_brandy@… 9 years ago.
error_message.txt (1.2 KB) - added by s_brandy@… 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by s_brandy@…

Attachment: main.log added

Changed 9 years ago by s_brandy@…

Attachment: error_message.txt added

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

Cc: s_brandy@… removed
Description: modified (diff)
Keywords: 'sys/types.h' file not found removed
Owner: changed from macports-tickets@… to pixilla@…
Port: mysql55 added
Priority: HighNormal
Summary: fail to install mysql on EI Capitan 10.11mysql55: fatal error: 'sys/types.h' file not found

Does the file /usr/include/sys/types.h exist? If not, install the Xcode command line tools.

comment:2 in reply to:  1 Changed 9 years ago by s_brandy@…

Replying to ryandesign@…:

Does the file /usr/include/sys/types.h exist? If not, install the Xcode command line tools.

I installed Xcode7.2, and I also run "Xcode-select --install" in the terminal and it finished well, but I don't have a /usr/include folder. That's weird!

comment:3 in reply to:  1 Changed 9 years ago by s_brandy@…

Replying to ryandesign@…:

Does the file /usr/include/sys/types.h exist? If not, install the Xcode command line tools.

I finally download the command line tool form Apple https://developer.apple.com/downloads/, and have the /usr/include folder after installing the command line tool. Then mysql installation pass. It seems just run the "Xcode-select --install" give me a fake installation of command line tool.

Thank you very much for the help. :) Please help to close this ticket.

comment:4 Changed 9 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.