Opened 11 years ago

Closed 11 years ago

#38590 closed defect (invalid)

New installation can't read "build.cmd": Failed to locate 'make'

Reported by: hakdogan75@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port:

Description

I am a new user of mac os x(version 10.8.3). Xcode installed on my system before installing MacPorts. Xcode version 4.6.1, path /Users/hakdogan/Library/Developer/Xcode

I get an error when trying to install MongoDB.

hakdogan:~ hakdogan$ sudo port install mongodb
Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.
--->  Computing dependencies for mongodb..Error: 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?

I looked at the file macports.conf. I changed the developer_dir line.

Before

#developer_dir       /Applications/Xcode.app/Contents/Developer

After

developer_dir       /Users/hakdogan/Library/Developer/Xcode

However, the problem was not resolved.

I would be happy if you help.

Change History (3)

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)

Don't set developer_dir. MacPorts is usually smart enough to figure out where it is on its own. How did you get Xcode.app installed in this directory anyway?

However:

Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.

I suggest you go ahead and install the command line tools from Xcode's preferences.

Last edited 11 years ago by neverpanic (Clemens Lang) (previous) (diff)

comment:2 in reply to:  1 Changed 11 years ago by hakdogan75@…

With your support, problem solved.

Thank you...

Replying to cal@…:

Don't set developer_dir. MacPorts is usually smart enough to figure out where it is on its own. How did you get Xcode.app installed in this directory anyway?

However:

Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.

I suggest you go ahead and install the command line tools from Xcode's preferences.

comment:3 in reply to:  1 Changed 11 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed

Replying to cal@…:

How did you get Xcode.app installed in this directory anyway?

That’s a pretty good question.

Note: See TracTickets for help on using tickets.