Opened 13 years ago

Closed 13 years ago

#34301 closed defect (invalid)

xcodebuild exists but failed to execute

Reported by: mischaa.rose@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port:

Description

In my attempt to install Wine, I've typed:

$ sudo port install wine

My result is:

Warning: xcodebuild exists but failed to execute
Warning: No index(es) found! Have you synced your source indexes?
Error: Port wine not found
To report a bug, see <http://guide.macports.org/#project.tickets>

I have tried updating my sources using

$ sudo port -v selfupdate

and I receive

Warning: xcodebuild exists but failed to execute
Warning: No index(es) found! Have you synced your source indexes?
--->  Updating MacPorts base sources using rsync
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at /SourceCache/rsync/rsync-42/rsync/main.c(1398) [receiver=2.6.9]
shell command "/usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs" returned error 5
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: shell command failed (see log for details)

I'm not sure where to go from here. I've checked the FAQ and the Guide, and was unable to find a fix to my problem. Perhaps I was looking at the wrong thing, but any help is greatly appreciated!

Change History (7)

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

Have you agreed to the Xcode license? See wiki:ProblemHotlist#xcode-eula

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Oh, and the rsync error you're seeing is because our rsync server is down. See #34298.

comment:3 in reply to:  1 Changed 13 years ago by mischaa.rose@…

Replying to ryandesign@…:

Have you agreed to the Xcode license? See wiki:ProblemHotlist#xcode-eula

I was unaware that was something I needed to do. I should have read closer!

$ xcodebuild -license
xcode-select: Error: No Xcode folder is set. Run xcode-select -switch <xcode_folder_path> to set the path to the Xcode folder.
Error: /usr/bin/xcode-select returned unexpected error.

What I've typed and what I received. I'm unsure where to direct it.

comment:4 in reply to:  2 Changed 13 years ago by mischaa.rose@…

Replying to ryandesign@…:

Oh, and the rsync error you're seeing is because our rsync server is down. See #34298.

Thank you! I'll give it another try later.

Thank you for responding!

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

The server is back online now.

Yes, you also need to set the Xcode folder, as shown in wiki:ProblemHotlist#xcode-select

comment:6 in reply to:  5 Changed 13 years ago by mischaa.rose@…

Replying to ryandesign@…:

The server is back online now.

Yes, you also need to set the Xcode folder, as shown in wiki:ProblemHotlist#xcode-select

Thank you! That was it. Working perfectly, now.

comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

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