[MacPorts] #19043: sudo port selfupdate, error 1, C compiler, $PATH

MacPorts noreply at macports.org
Sun Mar 29 13:46:50 PDT 2009


#19043: sudo port selfupdate, error 1, C compiler, $PATH
-------------------------------------+--------------------------------------
 Reporter:  webguy@…                 |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  base                     |     Version:  1.7.0                                
 Keywords:  compiler                 |        Port:                                       
-------------------------------------+--------------------------------------

Old description:

> When I run
>      sudo port selfupdate
> It gives me error 1, and says
>      no acceptable C compiler found in $PATH
> I looked at config.log, but it gave me no more insight into what to do
> about this.
> Please advise.
>

> Following is the complete output I get from
>      sudo port selfupdate:
>
> MacPorts base version 1.700 installed
> Downloaded MacPorts base version 1.710
>
> Installing new MacPorts release in /opt/local as root:admin - TCL-PACKAGE
> in /Library/Tcl; Permissions: 0755
>
> Error: /opt/local/bin/port: port selfupdate failed: Error installing new
> MacPorts base: shell command "cd
> /opt/local/var/macports/sources/rsync.macports.org/release/base &&
> ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-
> install-user=root --with-install-group=admin --with-directory-mode=0755
> && make && make install" returned error 1
> Command output: checking build system type... i686-apple-darwin9.6.0
> checking host system type... i686-apple-darwin9.6.0
> checking target system type... i686-apple-darwin9.6.0
> checking MacPorts version... 1.7.1
> checking for sw_vers... sw_vers
> checking Mac OS X version... 10.5.6
> checking Xcode version... 3.1.2
> checking for gcc... no
> checking for cc... no
> checking for cl.exe... no
> configure: error: in
> `/opt/local/var/macports/sources/rsync.macports.org/release/base':
> configure: error: no acceptable C compiler found in $PATH
> See `config.log' for more details.

New description:

 When I run
      sudo port selfupdate
 It gives me error 1, and says
      no acceptable C compiler found in $PATH
 I looked at config.log, but it gave me no more insight into what to do
 about this.
 Please advise.


 Following is the complete output I get from
      sudo port selfupdate:
 {{{
 MacPorts base version 1.700 installed
 Downloaded MacPorts base version 1.710

 Installing new MacPorts release in /opt/local as root:admin - TCL-PACKAGE
 in /Library/Tcl; Permissions: 0755

 Error: /opt/local/bin/port: port selfupdate failed: Error installing new
 MacPorts base: shell command "cd
 /opt/local/var/macports/sources/rsync.macports.org/release/base &&
 ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-
 install-user=root --with-install-group=admin --with-directory-mode=0755 &&
 make && make install" returned error 1
 Command output: checking build system type... i686-apple-darwin9.6.0
 checking host system type... i686-apple-darwin9.6.0
 checking target system type... i686-apple-darwin9.6.0
 checking MacPorts version... 1.7.1
 checking for sw_vers... sw_vers
 checking Mac OS X version... 10.5.6
 checking Xcode version... 3.1.2
 checking for gcc... no
 checking for cc... no
 checking for cl.exe... no
 configure: error: in
 `/opt/local/var/macports/sources/rsync.macports.org/release/base':
 configure: error: no acceptable C compiler found in $PATH
 See `config.log' for more details.
 }}}

--

Comment(by blb@…):

 Hmm, so it detects your Xcode (3.1.2) but doesn't see a cc or gcc?  Did
 you disable Xcode's option for installing stuff under /usr/bin?

-- 
Ticket URL: <http://trac.macports.org/ticket/19043#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list