mac ports help

Discussion in 'macOS' started by tronica, May 24, 2008.

  1. tronica macrumors member

    Joined:
    Dec 29, 2006
    #1
    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?
     
  2. ert3 macrumors 6502a

    ert3

    Joined:
    Dec 10, 2007
    #2
    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.
     
  3. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #3
    It works fine in Leopard.
     
  4. tronica thread starter macrumors member

    Joined:
    Dec 29, 2006
  5. mckyvlle macrumors 6502a

    Joined:
    Nov 21, 2007
    Location:
    London, UK
    #5
    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.
     
  6. tronica thread starter macrumors member

    Joined:
    Dec 29, 2006
    #6
    im running 10.5.2, running selfupdate tells me that is up to date. Also do i need xcode?
     
  7. misterredman macrumors 6502a

    misterredman

    Joined:
    Oct 3, 2007
    #7
    Taken from the mac ports project site here:

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


     
  8. tronica thread starter macrumors member

    Joined:
    Dec 29, 2006
    #8
    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?
     
  9. megaplow macrumors newbie

    Joined:
    Jul 3, 2008
    #9
    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
     

Share This Page