Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tronica

macrumors member
Original poster
Dec 29, 2006
48
0
I installed macports and am trying to install xchat2, but im getting dependencie errors. And when trying to install them, they bring up others. here what im getting:

Code:
lyle-marshalls-mac-mini:~ Lyle$ sudo port install xchat2
--->  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_textproc_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.2.2
checking host system type... i386-apple-darwin9.2.2
checking for gcc... /usr/bin/gcc-4.0
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: gtk2 atk gettext expat libiconv gperf ncurses ncursesw glib2 pkgconfig cairo fontconfig freetype zlib libpixman libpng render xrender jpeg pango Xft2 xorg-xproto xorg-util-macros shared-mime-info libxml2 p5-xml-parser perl5.8 tiff
Error: Status 1 encountered during processing.

I really have no clue as how to solve those, any ideas?
 
I have found that mac ports file hosting or however they may be providing our files is unreliable and could be part of the problem.

Also if you are using leopard then you should know that mac ports was intended for OSX 10.4 or earlier and I have not had much success using it with Leopard.
 
What versions of the software are you using? e.g. Leopard? Tiger? MacPorts version?

You could try running
Code:
sudo port selfupdate
to get MacPorts updated to the latest version.
 
im running 10.5.2, running selfupdate tells me that is up to date. Also do i need xcode?
 
Taken from the mac ports project site here:

http://www.macports.org/install.php


Please note that in order to install and run MacPorts on Mac OS X, your system must have installations of the following
components:

1. Apple's
Xcode 3.0 Developer Tools for the Leopard platform or 2.4.1 for Tiger, found at the
Apple Developer Connection site or on your Mac OS X installation CDs/DVD.

2. The X11 windowing environment (A.K.A. “X11 User”) and its related SDK package (“X11SDK”)
for ports that depend on the functionality they provide to compile and run.


* the “X11 User” package is an optional installation on your system CDs/DVD for Panther and
Tiger, enabled through the “Customize” button of the installer, whereas it is included by default
on Leopard.

* the “X11 SDK” package from the Xcode installer will be automatically selected if “X11
User” is already installed, so be sure to install that first.
 
xcode did the trick. But now im stuck on actually compiling, it was going well for awhile till i hit:
Code:
lyle-marshalls-mac-pro:~ Lyle$ sudo port install xchat2
--->  Fetching XFree86
Error: Target org.macports.fetch returned: 

                    You have an Apple X11 installation already.
                        MacPorts will not overwrite it.

                    If you wish to use Apple X11,
                        install the X11SDK included with Xcode tools.

                    If you really want to use XFree86 instead,
                        please move it aside first :

                            sudo mv /usr/X11R6 /usr/X11R6.apple
                
Error: The following dependencies failed to build: gtk2 cairo xrender XFree86 jpeg pango Xft2 xorg-xproto xorg-util-macros shared-mime-info libxml2 p5-xml-parser perl5.8 tiff xorg
Error: Status 1 encountered during processing.
lyle-marshalls-mac-pro:~ Lyle$

doing sudo mv /usr/X11R6 /usr/X11R6.apple tells me no such file or directory. I also switched to a better machine, that really did the mac mini in :D any ideas on this?
 
I am getting the same error. Is there a way to get around this? I havent been able to find any help on this topic.

You have an Apple X11 installation already.
MacPorts will not overwrite it.
If you wish to use Apple X11,
install the X11SDK included with Xcode tools.
If you really want to use XFree86 instead,
please move it aside first :
sudo mv /usr/X11R6 /usr/X11R6.apple
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.