Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#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 (Ryan Carsten Schmidt))

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 (14)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Component: portsbase
Priority: HighNormal

Looks like you don't have XCode installed.

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port BugsMacPorts 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 ; Changed 16 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 16 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 16 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:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:7 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:8 Changed 15 years ago by tobypeterson

Resolution: worksforme
Status: newclosed

No response in 8 months, closing.

comment:9 Changed 15 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:10 Changed 15 years ago by yasir.suhail@…

Cc: yasir.suhail@… added

Cc Me!

comment:11 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: closedreopened

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 15 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 15 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: reopenedclosed

Uncommenting binpath is unsupported.

comment:14 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.