Cannot install Bison
Ryan Schmidt
ryandesign at macports.org
Sun Dec 23 09:03:01 PST 2007
On Dec 23, 2007, at 10:59, Michael Welch wrote:
> Tried to install Bison, for whatever reason it wont install...see
> below. Any help?
>
> Macintosh:~ jswelch$ sudo port clean
> Can't map the URL 'file://.' to a port description file ("Could not
> find Portfile in /Users/jswelch").
> Please verify that the directory and portfile syntax are correct.
> To use the current port, you must be in a port's directory.
> (you might also see this message if a pseudo-port such as
> outdated or installed expands to no ports).
> Error: Unable to open port: Could not find Portfile in /Users/jswelch
You need to tell "port clean" what you want it to clean. For example,
"sudo port clean bison" would clean the bison port's work directory.
> Macintosh:~ jswelch$ sudo port install bison
> ---> Configuring expat
> 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_textp
> roc_expat/work/expat-2.0.1" && ./configure --prefix=/opt/local --
> mandir=/opt/local/share/man " returned error 77
> Command output: checking build system type... i386-apple-darwin9.1.0
> checking host system type... i386-apple-darwin9.1.0
> checking for gcc... gcc
> checking for C compiler default output file name... configure:
> error: C compiler cannot create executables
> See `config.log' for more details.
>
> Error: The following dependencies failed to build: gettext expat
> libiconv m4
> Error: Status 1 encountered during processing.
So the problem here is with expat, not bison. And it says it cannot
find a compiler. Did you install Xcode? You need to. The current
version of Xcode is 3.0 for Leopard, 2.5 for Tiger or 1.5 for
Panther. Please download and install the correct version from http://
developer.apple.com/
More information about the macports-users
mailing list