New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #27820 (closed defect: invalid)

Opened 4 years ago

Last modified 2 years ago

Problem with installing libxml2 with non-functional xcodebuild

Reported by: konstantinkrut@… Owned by: cedric.luthi@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: libxml2

Description

If I do

sudo port install libxml2

answer is

Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
--->  Computing dependencies for libxml2Error: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History

comment:1 Changed 4 years ago by jmr@…

  • Owner changed from macports-tickets@… to cedric.luthi@…
  • Keywords libxml2 removed
  • Port set to libxml2
  • Summary changed from Problem with installing libxml2 to Problem with installing libxml2 with non-functional xcodebuild

Please remember to fill in the Port field and cc the maintainer.

As the error message says, you don't appear to have a complete Xcode install. This is required as per the install page.

comment:2 Changed 4 years ago by konstantinkrut@…

I actually have it fully installed and working. Can we make more detail diagnostic? Thanks.

comment:3 Changed 4 years ago by jmr@…

So /usr/bin/xcodebuild and /usr/bin/make exist and work for you outside of MacPorts?

comment:4 follow-up: ↓ 8 Changed 4 years ago by konstantinkrut@…

Hm. Don`t know how to check if that works but both of them are existing.

comment:5 Changed 4 years ago by cedric.luthi@…

Have you tried to install another port?

comment:6 Changed 4 years ago by konstantinkrut@…

No.

comment:7 Changed 4 years ago by konstantinkrut@…

Sorry, I have tried to install libxslt. The same problem.

comment:8 in reply to: ↑ 4 Changed 4 years ago by jmr@…

Replying to konstantinkrut@…:

Hm. Don`t know how to check if that works but both of them are existing.

This will serve as a basic check that they can execute at all:

/usr/bin/make -v
/usr/bin/xcodebuild -version

While you're at it, you might as well show us the output of:

port version
uname -a
sw_vers

comment:9 Changed 4 years ago by konstantinkrut@…

The output was that I dont have Xcode installed. I decided to reinstall and that resolved the problem. It turned to be that I didnt have "UNIX Development" installed. There is an option during Xcode installation. Thanks for your help!

comment:10 Changed 4 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to invalid

comment:11 Changed 2 years ago by robertoschwald@…

Just to add additional info:

If you have installed Xcode 4.2.x and the unix command line tools but still receive the error message:

/usr/bin/xcodebuild -version Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.

Then you need to switch manually to the new Xcode install dir in /Applications:

sudo /usr/bin/xcode-select -switch /Applications/Xcode.app

Note: See TracTickets for help on using tickets.