Ticket #16610 (closed defect: invalid)
Configure failure
| Reported by: | wkanoff@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | 1.6.0 |
| Keywords: | Cc: | yasir.suhail@… | |
| Port: |
Description (last modified by ryandesign@…) (diff)
I have Xcode 2.5 installed and tried to install macports from source only to receive the following:
checking MacPorts version... ./configure: line 1: tr: command not found ./configure: line 1: sed: command not found checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ./configure: line 1: sed: command not found ./configure: line 36: sed: command not found ./configure: line 39: sort: command not found ./configure: line 56: sort: command not found
Change History
comment:1 follow-up: ↓ 4 Changed 5 years ago by jmr@…
- Priority changed from High to Normal
- Component changed from ports to base
comment:2 follow-up: ↓ 3 Changed 5 years ago by jmr@…
- Milestone changed from Port Bugs to MacPorts base bugs
What is your OS version? What's in your $PATH? Can you actually run the commands being complained about from the shell?
comment:3 in reply to: ↑ 2 ; follow-up: ↓ 5 Changed 5 years ago by wkanoff@…
Replying to jmr@…:
What is your OS version? What's in your $PATH? Can you actually run the commands being complained about from the shell?
OS X 10.4.11 /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local?mysql/bin
comment:4 in reply to: ↑ 1 Changed 5 years ago by wkanoff@…
Replying to jmr@…:
Looks like you don't have XCode installed.
Read the ticket, I have Xcode 2.5 installed.
comment:5 in reply to: ↑ 3 Changed 5 years ago by blb@…
Replying to wkanoff@…:
OS X 10.4.11 /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local?mysql/bin
Is that question mark a typo or is it really in PATH? Do you have tr, run
ls -l /usr/bin/tr
comment:7 Changed 4 years ago by toby@…
- Milestone changed from MacPorts base bugs to MacPorts Future
Milestone MacPorts base bugs deleted
comment:8 Changed 4 years ago by toby@…
- Status changed from new to closed
- Resolution set to worksforme
No response in 8 months, closing.
comment:9 Changed 4 years ago by yasir.suhail@…
I have the same problem, I am running Tiger 10.4, and have XCode 2.5
echo $PATH gives
/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin/:/Library/Frameworks/Python.framework/Versions/2.5/bin/:/sw/bin/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/Applications/MATLAB/bin
which sed gives:
/usr/bin/sed
I can run cat, sed and other commands from my terminal window. I am not sure what's going on.
While trying to install a port, I get
---> Computing dependencies for zlib ---> Configuring zlib Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.3" && ./configure --prefix=/opt/local --shared " returned error 127 Command output: ./configure: line 1: sed: command not found ./configure: line 1: sed: command not found ./configure: line 1: sed: command not found ./configure: line 1: sed: command not found ./configure: line 62: cat: command not found Checking for shared library support... No shared library support; try without defining CC and CFLAGS Building static library libz.a version with /usr/bin/gcc-4.0. ./configure: line 195: cat: command not found ./configure: line 200: sed: command not found Checking for unistd.h... Yes. ./configure: line 207: cat: command not found Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf() ./configure: line 225: cat: command not found Checking for vsnprintf() in stdio.h... No. WARNING: vsnprintf() not found, falling back to vsprintf(). zlib can build but will be open to possible buffer-overflow security vulnerabilities. ./configure: line 287: cat: command not found Checking for return value of vsprintf()... Yes. ./configure: line 402: cat: command not found Checking for errno.h... Yes. ./configure: line 413: cat: command not found Checking for mmap support... Yes. ./configure: line 439: rm: command not found ./configure: line 442: sed: command not found Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade zlib failed
comment:11 follow-up: ↓ 12 Changed 4 years ago by ryandesign@…
- Status changed from closed to reopened
- Resolution worksforme deleted
Yasir, has this ever worked for you?
What's in your /opt/local/etc/macports/macports.conf -- specifically, what's binpath set to?
comment:12 in reply to: ↑ 11 Changed 4 years ago by yasir.suhail@…
I think it stopped working at a certain point.
Here's what it said in my macports.conf:
binpath /opt/local/bin/:/Library/Frameworks/Python.framework/Versions/2.5/bin/:/sw/bin
I added /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin to it. It seems to work now. Thanks!!
comment:13 Changed 4 years ago by jmr@…
- Status changed from reopened to closed
- Resolution set to invalid
Uncommenting binpath is unsupported.


Looks like you don't have XCode installed.