Opened 12 years ago

Closed 12 years ago

#37274 closed defect (invalid)

make not found

Reported by: jamesrome@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.2
Keywords: Cc:
Port:

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

I am not sure where ports gets its PATH from on OS X Mountain Lion, but make is at /Applications/Xcode.app/Contents/Developer/usr/bin This is in my PATH in .bashrc, .bash_profile, and .profile, but port seems to use a different PATH and cannot find it:

jarmac:tmp jar$ echo $PATH
/opt/local/bin:/opt/local/sbin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/ant/bin:/usr/local/bin:/usr/local/sbin:/Users/jar/bin:/Users/jar/mpj/bin:/Users/jar/android-sdk-macosx/tools:/Users/jar/android-sdk-macosx/platform-tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin

jarmac:tmp jar$ sudo ./restore_ports.tcl myports.txt
Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default
Warning: port definitions are more than two weeks old, consider using selfupdate
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?
    invoked from within
"findBinary make $portutil::autoconf::make_path"
    (procedure "portbuild::build_getmaketype" line 3)
    invoked from within
"portbuild::build_getmaketype"
    invoked from within
"set build.cmd [portbuild::build_getmaketype]"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 set $optionName $option_defaults($optionName)"
    (procedure "default_check" line 11)
    invoked from within
"default_check build.cmd {} r"
    (read trace on "build.cmd")
    invoked from within
"build.cmd               ${build.cmd} CC=${configure.cc} -f Makefile.devel && ${build.cmd}"
    (file "Portfile" line 56)
    invoked from within
"source Portfile"
    invoked from within
"$workername eval source Portfile"
    (procedure "mportopen" line 47)
    invoked from within
"mportopen $portInfo(porturl) [list subport $portInfo(name)] $variantInfo"
Unable to open port 'libiconv': 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?
    while executing
"dependenciesForPort $name $filtered_variants"
    (procedure "sort_ports" line 53)
    invoked from within
"sort_ports $portList"
    invoked from within
"set operationList [sort_ports $portList]"
    (file "./restore_ports.tcl" line 267)
jarmac:tmp jar$ 

Change History (1)

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

Component: portsbase
Description: modified (diff)
Resolution: invalid
Status: newclosed

MacPorts won't use the make in /Applications/Xcode.app/Contents/Developer/usr/bin (nor will it use your PATH). MacPorts needs make in /usr/bin, where the command line tools installer will put it. Please open Xcode, go to the Preferences window, to the Downloads section, and install the command line tools.

Note: See TracTickets for help on using tickets.