Opened 13 years ago

Closed 12 years ago

#30329 closed defect (invalid)

Error: Failed to install fontconfig

Reported by: pengyu.ut@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc:
Port: fontconfig

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I get the following error when I try to install winetricks. It seems that there is some problem with fontconfig.

$sudo port install winetricksWarning: port definitions are more than two weeks old, consider using selfupdate
--->  Computing dependencies for winetricks
--->  Dependencies to be installed: wine fontconfig gnutls libgcrypt libgpg-error gettext ncurses libtasn1 lzo2 pkgconfig readline jpeg lcms tiff libpng libxml2 libxslt mesa makedepend py27-libxml2 python27 bzip2 db46 gdbm openssl sqlite3 xorg-dri2proto xorg-glproto xorg-libXfixes xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libxcb xorg-libXi xorg-libXext xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXcomposite xorg-libXcursor xrender xorg-libXinerama xorg-libXrandr xorg-libXxf86vm xorg-xf86vidmodeproto zenity libnotify
--->  Configuring fontconfig
Error: Target org.macports.configure returned: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.8.0" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.8.0-i386/fontconfig-2.8.0": file already exists
Error: Failed to install fontconfig
Log for fontconfig is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/main.log
Error: The following dependencies were not installed: wine fontconfig gnutls libgcrypt libgpg-error gettext ncurses libtasn1 lzo2 pkgconfig readline jpeg lcms tiff libpng libxml2 libxslt mesa makedepend py27-libxml2 python27 bzip2 db46 gdbm openssl sqlite3 xorg-dri2proto xorg-glproto xorg-libXfixes xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libxcb xorg-libXi xorg-libXext xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXcomposite xorg-libXcursor xrender xorg-libXinerama xorg-libXrandr xorg-libXxf86vm xorg-xf86vidmodeproto zenity libnotify
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (3)

main.log (1.9 KB) - added by pengyu.ut@… 13 years ago.
The log file
port_installed.txt (22.2 KB) - added by pengyu.ut@… 13 years ago.
wine_main.log (80.3 KB) - added by pengyu.ut@… 13 years ago.

Download all attachments as: .zip

Change History (20)

Changed 13 years ago by pengyu.ut@…

Attachment: main.log added

The log file

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: fontconfig added
Priority: HighNormal

Clean and try again; that should show us the real error, if any. (Attach the new main.log.)

comment:2 Changed 13 years ago by pengyu.ut@…

It seems that the following file of version 8.0.0 is replaced by the one of version 7.0.0.

dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
  Referenced from: /opt/local/libexec/gnubin/find
  Reason: Incompatible library version: find requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
  Referenced from: /opt/local/libexec/gnubin/find
  Reason: Incompatible library version: find requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0

The replace 7.0.0 version file with the 8.0.0 version file. Then I run "sudo port -f install fontconfig". Then I run "sudo port install winetricks" again. The same error still occur. And the 8.0.0 is again replaced by 7.0.0 version file.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

That error message is typically what happens when your libiconv port is installed for the wrong architecture somehow. MacPorts recognizes this if you installed a port after MacPorts 1.9.0; perhaps you installed libiconv with an older MacPorts. Anyway, reinstall libiconv. For wine it's going to need to be universal (unless you're on a 32-bit-only Mac like the original MacBook Pro) so do:

sudo port -f uninstall libiconv
sudo port install libiconv +universal

comment:4 Changed 13 years ago by pengyu.ut@…

sudo port -f uninstall libiconv
sudo port install libiconv +universal

I tried these two commands. But I still get the same error message.

dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
  Referenced from: /opt/local/libexec/gnubin/find
  Reason: Incompatible library version: find requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Remember to use WikiFormatting.

To clarify: Do you get that error message when you manually use the /opt/local/libexec/gnubin/find command, or when you try to install some port? It shouldn't be the latter, because MacPorts shouldn't see anything in /opt/local/libexec/gnubin, because that shouldn't be in its path.

Anyway, this error message suggests again a mismatch between the architecture of libiconv and the architecture of find, which is part of findutils. Can you try rebuilding findutils as well?

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

It might also be interesting to see the output of

port -v installed

comment:7 in reply to:  6 Changed 13 years ago by pengyu.ut@…

Replying to ryandesign@…:

It might also be interesting to see the output of

port -v installed

Here is the output.

$port -v installed
The following ports are currently installed:
  antiword @0.37_1 (active) platform='darwin 10' archs='x86_64'
  aspell @0.60.6_4+nonls (active) platform='darwin 10' archs='x86_64'
  atk @1.32.0_0 (active) platform='darwin 10' archs='x86_64'
  atlas @3.9.37_0+gcc44 (active) platform='darwin 10' archs='x86_64'
  autoconf @2.68_2 (active) platform='darwin 10' archs='noarch'
  automake @1.11.1_0 (active) platform='darwin 10' archs='noarch'
  bzip2 @1.0.6_0 platform='darwin 10' archs='x86_64'
  bzip2 @1.0.6_0+universal (active) platform='darwin 10' archs='i386 ppc'
  cabextract @1.3_0 (active) platform='darwin 10' archs='x86_64'
  cairo @1.10.2_3+x11 (active) platform='darwin 10' archs='x86_64'
  catdoc @0.94.2_0 (active) platform='darwin 10' archs='x86_64'
  cmake @2.8.4_0 (active) platform='darwin 10' archs='x86_64'
  coreutils @8.12_0 (active) platform='darwin 10' archs='x86_64'
  curl @7.21.6_0+ssl platform='darwin 10' archs='x86_64'
  curl @7.21.7_0+ssl (active) platform='darwin 10' archs='x86_64'
  curl-ca-bundle @7.21.6_0 platform='darwin 10' archs='noarch'
  curl-ca-bundle @7.21.7_0 (active) platform='darwin 10' archs='noarch'
  db46 @4.6.21_6 (active) platform='darwin 10' archs='x86_64'
  dbus @1.4.10_1 platform='darwin 10' archs='x86_64'
  dbus @1.4.12_0 (active) platform='darwin 10' archs='x86_64'
  dbus-glib @0.94_0 (active) platform='darwin 10' archs='x86_64'
  desktop-file-utils @0.15_1 (active) platform='darwin 10' archs='x86_64'
  detex @2.8_0 (active) platform='darwin 10' archs='x86_64'
  djvulibre @3.5.24_0 (active) platform='darwin 10' archs='x86_64'
  docbook-xml @5.0_0 (active) platform='darwin 10' archs='noarch'
  docbook-xml-4.1.2 @4.1.2_1 (active) platform='darwin 10' archs='noarch'
  docbook-xml-4.2 @4.2_0 (active) platform='darwin 10' archs='noarch'
  docbook-xml-4.3 @4.3_0 (active) platform='darwin 10' archs='noarch'
  docbook-xml-4.4 @4.4_0 (active) platform='darwin 10' archs='noarch'
  docbook-xml-4.5 @4.5_0 (active) platform='darwin 10' archs='noarch'
  docbook-xml-5.0 @5.0_0 (active) platform='darwin 10' archs='noarch'
  docbook-xsl @1.76.1_0 (active) platform='darwin 10' archs='noarch'
  dot2tex @2.8.7_0+python27 (active) platform='darwin 10' archs='x86_64'
  dtrx @7.0_0 (active) platform='darwin 10' archs='noarch'
  eggdbus @0.6_0 (active) platform='darwin 10' archs='x86_64'
  evince @2.30.3_5 (active) platform='darwin 10' archs='x86_64'
  exempi @2.1.1_0 (active) platform='darwin 10' archs='x86_64'
  expat @2.0.1_1 platform='darwin 10' archs='x86_64'
  expat @2.0.1_1+universal (active) platform='darwin 10' archs='i386 ppc'
  fftw-3 @3.2.2_0 (active) platform='darwin 10' archs='x86_64'
  findutils @4.4.2_1 (active) platform='darwin 10' archs='x86_64'
  flex @2.5.35_0+universal (active) platform='darwin 10' archs='i386 ppc'
  fop @1.0_1 (active) platform='darwin 10' archs='noarch'
  freetype @2.4.4_0 platform='darwin 10' archs='x86_64'
  freetype @2.4.4_0+universal platform='darwin 10' archs='i386 ppc'
  freetype @2.4.5_1 platform='darwin 10' archs='x86_64'
  freetype @2.4.5_1+universal (active) platform='darwin 10' archs='i386 ppc'
  g95 @0.92_1+gcc42 platform='darwin 10' archs='x86_64'
  g95 @0.92_2+gcc42 (active) platform='darwin 10' archs='x86_64'
  gawk @3.1.8_1 platform='darwin 10' archs='x86_64'
  gawk @4.0.0_0 (active) platform='darwin 10' archs='x86_64'
  gcc44 @4.4.6_0 (active) platform='darwin 10' archs='x86_64'
  gcc45 @4.5.3_0 (active) platform='darwin 10' archs='x86_64'
  gcc_select @0.1_5 (active) platform='darwin 10' archs='noarch'
  gconf @2.28.1_2 (active) platform='darwin 10' archs='x86_64'
  gd2 @2.0.35_10 (active) platform='darwin 10' archs='x86_64'
  gdbm @1.8.3_3 (active) platform='darwin 10' archs='x86_64'
  gdk-pixbuf2 @2.22.1_1 (active) platform='darwin 10' archs='x86_64'
  getopt @1.1.4_1 (active) platform='darwin 10' archs='x86_64'
  gettext @0.18.1.1_2 (active) platform='darwin 10' archs='x86_64'
  ghostscript @9.02_0 (active) platform='darwin 10' archs='x86_64'
  git-core @1.7.5.4_0+doc+python27 platform='darwin 10' archs='x86_64'
  git-core @1.7.6_0+doc+python27 (active) platform='darwin 10' archs='x86_64'
  glib2 @2.28.8_0 (active) platform='darwin 10' archs='x86_64'
  gmp @5.0.2_0 platform='darwin 10' archs='x86_64'
  gmp @5.0.2_1 (active) platform='darwin 10' archs='x86_64'
  gnome-common @2.28.0_0 (active) platform='darwin 10' archs='noarch'
  gnome-desktop @2.30.2_3 platform='darwin 10' archs='x86_64'
  gnome-desktop @2.30.2_4+python27 (active) platform='darwin 10' archs='x86_64'
  gnome-doc-utils @0.20.6_0+python27 (active) platform='darwin 10' archs='noarch'
  gnome-icon-theme @2.30.3_0 (active) platform='darwin 10' archs='noarch'
  gnome-keyring @2.30.3_0 (active) platform='darwin 10' archs='x86_64'
  gnome-themes @2.30.2_1 (active) platform='darwin 10' archs='noarch'
  gnutls @2.8.6_1 (active) platform='darwin 10' archs='x86_64'
  gperf @3.0.4_0 platform='darwin 10' archs='x86_64'
  gperf @3.0.4_0+universal platform='darwin 10' archs='i386 ppc'
  gperf @3.0.4_2+universal (active) platform='darwin 10' archs='i386 ppc'
  graphviz @2.28.0_0 platform='darwin 10' archs='x86_64'
  graphviz @2.28.0_1 (active) platform='darwin 10' archs='x86_64'
  groff @1.21_1 (active) platform='darwin 10' archs='x86_64'
  gtk-doc @1.17_0+python27 (active) platform='darwin 10' archs='noarch'
  gtk-engines2 @2.20.2_1 (active) platform='darwin 10' archs='x86_64'
  gtk2 @2.24.4_0+x11 (active) platform='darwin 10' archs='x86_64'
  gts @0.7.6_1 (active) platform='darwin 10' archs='x86_64'
  gzip @1.4_0 (active) platform='darwin 10' archs='x86_64'
  help2man @1.39.3_0 (active) platform='darwin 10' archs='x86_64'
  hicolor-icon-theme @0.12_0 (active) platform='darwin 10' archs='noarch'
  htop @0.8.2.1_0 (active) platform='darwin 10' archs='x86_64'
  icon-naming-utils @0.8.90_0 (active) platform='darwin 10' archs='x86_64'
  ImageMagick @6.7.0-7_0+q16 platform='darwin 10' archs='x86_64'
  ImageMagick @6.7.1-0_0+q16 (active) platform='darwin 10' archs='x86_64'
  intltool @0.40.6_0 (active) platform='darwin 10' archs='noarch'
  iso-codes @3.26_0 platform='darwin 10' archs='noarch'
  iso-codes @3.27_0 (active) platform='darwin 10' archs='noarch'
  jasper @1.900.1_7 (active) platform='darwin 10' archs='x86_64'
  jbigkit @2.0_1 (active) platform='darwin 10' archs='x86_64'
  jpeg @8c_0 (active) platform='darwin 10' archs='x86_64'
  latexdiff @0.5_1 (active) platform='darwin 10' archs='noarch'
  latexmk @4.24_0 platform='darwin 10' archs='noarch'
  latexmk @4.25_0 (active) platform='darwin 10' archs='noarch'
  lcms @1.19_2 (active) platform='darwin 10' archs='x86_64'
  lcms2 @2.1_0 platform='darwin 10' archs='x86_64'
  lcms2 @2.2_0 (active) platform='darwin 10' archs='x86_64'
  libexif @0.6.20_0 (active) platform='darwin 10' archs='x86_64'
  libffi @3.0.9_0 (active) platform='darwin 10' archs='x86_64'
  libgcrypt @1.4.6_0 platform='darwin 10' archs='x86_64'
  libgcrypt @1.5.0_0 (active) platform='darwin 10' archs='x86_64'
  libglade2 @2.6.4_3 (active) platform='darwin 10' archs='x86_64'
  libgnome-keyring @2.30.1_1 (active) platform='darwin 10' archs='x86_64'
  libgpg-error @1.10_0 (active) platform='darwin 10' archs='x86_64'
  libiconv @1.13.1_0+universal (active) platform='darwin 10' archs='i386 ppc'
  libidl @0.8.14_0 (active) platform='darwin 10' archs='x86_64'
  libidn @1.22_0 (active) platform='darwin 10' archs='x86_64'
  libLASi @1.1.0_0 (active) platform='darwin 10' archs='x86_64'
  liblzma @5.0.3_0 (active) platform='darwin 10' archs='x86_64'
  libmng @1.0.10_2 (active) platform='darwin 10' archs='x86_64'
  libmpc @0.9_0 (active) platform='darwin 10' archs='x86_64'
  libpaper @1.1.24_0 (active) platform='darwin 10' archs='x86_64'
  libpixman @0.22.0_0 platform='darwin 10' archs='x86_64'
  libpixman @0.22.2_0 (active) platform='darwin 10' archs='x86_64'
  libpng @1.4.7_0 platform='darwin 10' archs='x86_64'
  libpng @1.4.8_0 (active) platform='darwin 10' archs='x86_64'
  libspectre @0.2.6_3 (active) platform='darwin 10' archs='x86_64'
  libtasn1 @2.9_0 (active) platform='darwin 10' archs='x86_64'
  libtool @2.4_0 platform='darwin 10' archs='x86_64'
  libtool @2.4_1 (active) platform='darwin 10' archs='x86_64'
  libunique @1.1.6_2 (active) platform='darwin 10' archs='x86_64'
  libxml2 @2.7.8_0 (active) platform='darwin 10' archs='x86_64'
  libxslt @1.1.26_0 (active) platform='darwin 10' archs='x86_64'
  libzzip @0.13.60_0 (active) platform='darwin 10' archs='x86_64'
  lzo2 @2.05_1 (active) platform='darwin 10' archs='x86_64'
  m4 @1.4.16_0 platform='darwin 10' archs='x86_64'
  m4 @1.4.16_0+universal (active) platform='darwin 10' archs='i386 ppc'
  mpfr @3.0.1-p3_0 (active) platform='darwin 10' archs='x86_64'
  nautilus @2.30.1_3 (active) platform='darwin 10' archs='x86_64'
  ncurses @5.9_0+universal (active) platform='darwin 10' archs='i386 ppc'
  ncursesw @5.8_0 (active) platform='darwin 10' archs='noarch'
  netpbm @10.47.26_0 (active) platform='darwin 10' archs='x86_64'
  ocaml @3.12.0_0 platform='darwin 10' archs='x86_64'
  ocaml @3.12.1_0 (active) platform='darwin 10' archs='x86_64'
  openjpeg @1.4-r697_1 (active) platform='darwin 10' archs='x86_64'
  openmotif @2.3.2_3 (active) platform='darwin 10' archs='x86_64'
  openssl @1.0.0d_0 (active) platform='darwin 10' archs='x86_64'
  orbit2 @2.14.19_0 (active) platform='darwin 10' archs='x86_64'
  p5-error @0.17016_1 (active) platform='darwin 10' archs='noarch'
  p5-getopt-long @2.38_1 (active) platform='darwin 10' archs='noarch'
  p5-locale-gettext @1.05_5 (active) platform='darwin 10' archs='x86_64'
  p5-pathtools @3.33_1 (active) platform='darwin 10' archs='x86_64'
  p5-scalar-list-utils @1.23_1 (active) platform='darwin 10' archs='x86_64'
  p5-xml-namespacesupport @1.11_2 (active) platform='darwin 10' archs='noarch'
  p5-xml-parser @2.40_1 (active) platform='darwin 10' archs='x86_64'
  p5-xml-sax @0.96_2 (active) platform='darwin 10' archs='noarch'
  p5-xml-sax-expat @0.40_2 (active) platform='darwin 10' archs='noarch'
  p5-xml-simple @2.18_1 (active) platform='darwin 10' archs='noarch'
  p7zip @9.20.1_1 (active) platform='darwin 10' archs='x86_64'
  pango @1.28.4_0+x11 (active) platform='darwin 10' archs='x86_64'
  pdfjam @2.06_1 (active) platform='darwin 10' archs='noarch'
  pdftk @1.44_0+gcc45 (active) platform='darwin 10' archs='x86_64'
  perl5 @5.12.3_1+perl5_12 (active) platform='darwin 10' archs='noarch'
  perl5.12 @5.12.3_1 platform='darwin 10' archs='x86_64'
  perl5.12 @5.12.3_1+universal (active) platform='darwin 10' archs='i386 ppc'
  pgf @2.10_0 (active) platform='darwin 10' archs='x86_64'
  pkgconfig @0.25_2 platform='darwin 10' archs='x86_64'
  pkgconfig @0.26_0 (active) platform='darwin 10' archs='x86_64'
  policykit @0.101_0 (active) platform='darwin 10' archs='x86_64'
  poppler @0.16.6_0 (active) platform='darwin 10' archs='x86_64'
  poppler-data @0.4.4_0 (active) platform='darwin 10' archs='noarch'
  popt @1.16_0 (active) platform='darwin 10' archs='x86_64'
  psutils @p17_1 (active) platform='darwin 10' archs='x86_64'
  py26-cairo @1.8.10_1 (active) platform='darwin 10' archs='x86_64'
  py26-distribute @0.6.19_0 (active) platform='darwin 10' archs='x86_64'
  py26-gobject @2.26.0_1 (active) platform='darwin 10' archs='x86_64'
  py26-gtk @2.22.0_1 (active) platform='darwin 10' archs='x86_64'
  py26-nose @1.0.0_0 (active) platform='darwin 10' archs='noarch'
  py26-numpy @1.6.0_0+atlas+gcc44 platform='darwin 10' archs='x86_64'
  py26-numpy @1.6.1_0+atlas+gcc44 (active) platform='darwin 10' archs='x86_64'
  py26-py @1.1.1_0 (active) platform='darwin 10' archs='x86_64'
  py27-cairo @1.8.10_1 (active) platform='darwin 10' archs='x86_64'
  py27-distribute @0.6.19_0 (active) platform='darwin 10' archs='x86_64'
  py27-gobject @2.26.0_1 (active) platform='darwin 10' archs='x86_64'
  py27-gtk @2.22.0_1 (active) platform='darwin 10' archs='x86_64'
  py27-libxml2 @2.6.21_0 platform='darwin 10' archs='x86_64'
  py27-libxml2 @2.7.8_0 (active) platform='darwin 10' archs='x86_64'
  py27-nose @1.0.0_0 (active) platform='darwin 10' archs='noarch'
  py27-numpy @1.6.1_0+atlas+gcc44 (active) platform='darwin 10' archs='x86_64'
  py27-parsing @1.5.5_0 platform='darwin 10' archs='x86_64'
  py27-parsing @1.5.6_0 (active) platform='darwin 10' archs='x86_64'
  py27-py @1.1.1_0 (active) platform='darwin 10' archs='x86_64'
  python26 @2.6.6_3 platform='darwin 10' archs='x86_64'
  python26 @2.6.7_0 (active) platform='darwin 10' archs='x86_64'
  python27 @2.7.2_0 (active) platform='darwin 10' archs='x86_64'
  python_select @0.3_1 (active) platform='darwin 10' archs='noarch'
  qt4-mac @4.7.3_0+quartz (active) platform='darwin 10' archs='x86_64'
  rarian @0.8.1_0 (active) platform='darwin 10' archs='x86_64'
  readline @6.2.000_0 (active) platform='darwin 10' archs='x86_64'
  recoll @1.15.9_0 (active) platform='darwin 10' archs='x86_64'
  rsync @3.0.7_1 platform='darwin 10' archs='x86_64'
  rsync @3.0.8_0 (active) platform='darwin 10' archs='x86_64'
  shared-mime-info @0.90_0 (active) platform='darwin 10' archs='x86_64'
  sqlite3 @3.7.6_0 platform='darwin 10' archs='x86_64'
  sqlite3 @3.7.7.1_0 (active) platform='darwin 10' archs='x86_64'
  startup-notification @0.12_0 (active) platform='darwin 10' archs='x86_64'
  t1lib @5.1.2_2 (active) platform='darwin 10' archs='x86_64'
  texinfo @4.13_2 (active) platform='darwin 10' archs='x86_64'
  texlive @2010_1+doc+medium (active) platform='darwin 10' archs='noarch'
  texlive-basic @19496_3+doc platform='darwin 10' archs='noarch'
  texlive-basic @19496_4+doc (active) platform='darwin 10' archs='noarch'
  texlive-bin @2010_4+motif (active) platform='darwin 10' archs='x86_64'
  texlive-bin-extra @19536_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-common @2010_1 (active) platform='darwin 10' archs='noarch'
  texlive-context @19477_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-documentation-base @19544_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-documentation-english @19457_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-fonts-recommended @19478_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-fontutils @19534_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-generic-recommended @19515_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-czechslovak @19005_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-dutch @18673_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-english @18673_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-french @18673_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-german @18673_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-italian @19139_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-polish @18835_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-portuguese @18673_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-lang-spanish @18733_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-latex @19536_1+doc (active) platform='darwin 10' archs='noarch'
  texlive-latex-recommended @19443_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-latex3 @19447_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-luatex @19484_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-math-extra @19459_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-metapost @19440_0+doc (active) platform='darwin 10' archs='noarch'
  texlive-xetex @19506_0+doc (active) platform='darwin 10' archs='noarch'
  tiff @3.9.5_0 (active) platform='darwin 10' archs='x86_64'
  unison @2.32.52_1 (active) platform='darwin 10' archs='x86_64'
  unrar @4.0.7_0 (active) platform='darwin 10' archs='x86_64'
  unrtf @0.21.1_0 (active) platform='darwin 10' archs='x86_64'
  unzip @6.0_0 (active) platform='darwin 10' archs='x86_64'
  urw-fonts @1.0.7pre44_0 (active) platform='darwin 10' archs='noarch'
  xapian-core @1.2.5_0 (active) platform='darwin 10' archs='x86_64'
  xbitmaps @1.1.1_0 (active) platform='darwin 10' archs='noarch'
  Xft2 @2.2.0_0 (active) platform='darwin 10' archs='x86_64'
  xmlcatmgr @2.2_1 (active) platform='darwin 10' archs='x86_64'
  xorg-bigreqsproto @1.1.1_0 (active) platform='darwin 10' archs='noarch'
  xorg-compositeproto @0.4.2_0 (active) platform='darwin 10' archs='noarch'
  xorg-damageproto @1.2.1_0 (active) platform='darwin 10' archs='noarch'
  xorg-fixesproto @5.0_0 (active) platform='darwin 10' archs='noarch'
  xorg-inputproto @2.0.1_0 (active) platform='darwin 10' archs='noarch'
  xorg-kbproto @1.0.5_0 (active) platform='darwin 10' archs='noarch'
  xorg-libice @1.0.7_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libpthread-stubs @0.3_0 (active) platform='darwin 10' archs='noarch'
  xorg-libsm @1.2.0_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libX11 @1.4.3_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXau @1.0.6_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXaw @1.0.9_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libxcb @1.7_0+python27 (active) platform='darwin 10' archs='x86_64'
  xorg-libXcomposite @0.4.3_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXcursor @1.1.11_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXdamage @1.1.3_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXdmcp @1.1.0_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXext @1.3.0_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXfixes @5.0_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXi @1.4.1_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXinerama @1.1.1_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXmu @1.1.0_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXp @1.0.1_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXrandr @1.3.1_0 (active) platform='darwin 10' archs='x86_64'
  xorg-libXt @1.1.1_0 (active) platform='darwin 10' archs='x86_64'
  xorg-printproto @1.0.5_0 (active) platform='darwin 10' archs='noarch'
  xorg-randrproto @1.3.2_0 (active) platform='darwin 10' archs='noarch'
  xorg-renderproto @0.11.1_0 (active) platform='darwin 10' archs='noarch'
  xorg-util-macros @1.14.0_0 (active) platform='darwin 10' archs='noarch'
  xorg-xcb-proto @1.6_0+python27 (active) platform='darwin 10' archs='noarch'
  xorg-xcb-util @0.3.8_0 (active) platform='darwin 10' archs='x86_64'
  xorg-xcmiscproto @1.2.1_0 (active) platform='darwin 10' archs='noarch'
  xorg-xextproto @7.2.0_0 (active) platform='darwin 10' archs='noarch'
  xorg-xf86bigfontproto @1.2.0_0 (active) platform='darwin 10' archs='noarch'
  xorg-xineramaproto @1.2.1_0 (active) platform='darwin 10' archs='noarch'
  xorg-xproto @7.0.21_0 platform='darwin 10' archs='noarch'
  xorg-xproto @7.0.22_0 (active) platform='darwin 10' archs='noarch'
  xorg-xtrans @1.2.6_0 (active) platform='darwin 10' archs='noarch'
  xpdf @3.02pl5_1 (active) platform='darwin 10' archs='x86_64'
  xpm @3.5.9_0 (active) platform='darwin 10' archs='x86_64'
  xrender @0.9.6_0 (active) platform='darwin 10' archs='x86_64'
  xz @5.0.2_0 platform='darwin 10' archs='x86_64'
  xz @5.0.3_0 (active) platform='darwin 10' archs='x86_64'
  zlib @1.2.5_0 platform='darwin 10' archs='x86_64'
  zlib @1.2.5_0+universal (active) platform='darwin 10' archs='i386 ppc'

comment:8 in reply to:  5 Changed 13 years ago by pengyu.ut@…

Replying to ryandesign@…:

Remember to use WikiFormatting.

To clarify: Do you get that error message when you manually use the /opt/local/libexec/gnubin/find command, or when you try to install some port? It shouldn't be the latter, because MacPorts shouldn't see anything in /opt/local/libexec/gnubin, because that shouldn't be in its path.

I manually run the find command.

comment:9 Changed 13 years ago by pengyu.ut@…

It seems that there is some conflict between wine and coreutils.

wine use libiconv @1.13.1_0+universal, coreutils libiconv @1.13.1_0. It seems that coreutils is not compatible with libiconv @1.13.1_0+universal.

Also, I export PATH /opt/local/libexec/gnubin/ in my .bashrc file.

$sudo port install wine
Password:
--->  Deactivating libiconv @1.13.1_0
--->  Cleaning libiconv
--->  Activating libiconv @1.13.1_0+universal
--->  Cleaning libiconv
--->  Computing dependencies for gettext
--->  Fetching archive for gettext
--->  Fetching gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext


$sudo port -nR upgrade --force coreutils
--->  Computing dependencies for coreutils
--->  Dependencies to be installed: libiconv
--->  Deactivating libiconv @1.13.1_0+universal
--->  Cleaning libiconv
--->  Activating libiconv @1.13.1_0
--->  Cleaning libiconv
--->  Cleaning coreutils

comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Again, please remember to use WikiFormatting so your posts are legible.

There is no incompatibility between libiconv and coreutils. There is merely an installation problem on your machine. I think I have identified it, based on your list of installed ports. I see you have coreutils installed for x86_64; this is expected on Snow Leopard and later. But you have libiconv installed for i386 ppc; this is expected on Leopard and earlier but not expected on Snow Leopard and later; it should be installed for i386 x86_64. Why did this happen? Presumably universal_archs is set to i386 ppc in macports.conf. And why is this? Perhaps because this macports.conf originated on Leopard or earlier with MacPorts 1.8 or earlier. Or perhaps you manually set universal_archs this way. Either way, at minimum, universal_archs needs to be set to x86_64 i386 in macports.conf. But it sounds like your macports.conf may be out of date, so you should spend some time comparing macports.conf with macports.conf.default, and adopting any other changes in the default file that you don't specifically want to override. Finally, you'll need to rebuild all ports shown in the installed list that have archs i386 ppc so that they get rebuilt as i386 x86_64. They probably need to be rebuilt in a specific order, and it may be easiest to forcibly uninstall these ports, then install them again with the universal variant.

comment:11 Changed 13 years ago by pengyu.ut@…

Thanks. That is indeed the case. macports.conf was from an old installation before my OS was upgraded from 10.5.8 to 10.6.7. Shall I just manually replace macports.conf with macports.conf.default? I probably can make a script to parse the output of 'port -v installed' and 'port -f uninstall' the ones with i386 ppc then reinstall them, but I'm wondering if there is already a way allowing me do so with 'port' or some other tools. Do I also need to uninstall and reinstall the ones with 'noarch'?

  $ll /opt/local/etc/macports/macports.conf.default  /opt/local/etc/macports/macports.conf
-r--r--r-- 1 root admin 5441 2009-10-09 18:08:58 /opt/local/etc/macports/macports.conf
-r--r--r-- 1 root admin 5290 2011-07-23 17:34:44 /opt/local/etc/macports/macports.conf.default

comment:12 in reply to:  11 ; Changed 13 years ago by pengyu.ut@…

Replying to pengyu.ut@…:

Thanks. That is indeed the case. macports.conf was from an old installation before my OS was upgraded from 10.5.8 to 10.6.7. Shall I just manually replace macports.conf with macports.conf.default? I probably can make a script to parse the output of 'port -v installed' and 'port -f uninstall' the ones with i386 ppc then reinstall them, but I'm wondering if there is already a way allowing me do so with 'port' or some other tools. Do I also need to uninstall and reinstall the ones with 'noarch'?

$ll /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf

-r--r--r-- 1 root admin 5441 2009-10-09 18:08:58 /opt/local/etc/macports/macports.conf -r--r--r-- 1 root admin 5290 2011-07-23 17:34:44 /opt/local/etc/macports/macports.conf.default

I didn't correctly formatted this message and I want to reformat it. But I don't find a way to edit the posted messages. Is there a way to do so?

comment:13 in reply to:  12 ; Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to pengyu.ut@…:

Thanks. That is indeed the case. macports.conf was from an old installation before my OS was upgraded from 10.5.8 to 10.6.7. Shall I just manually replace macports.conf with macports.conf.default?

You can do that, if you're sure you've made no changes to macports.conf that you wanted to keep. Otherwise I suggest you compare the two files line by line; for each difference, if you remember a reason for the difference, keep your version, otherwise use the version from the new default file. Repeat this process every time you upgrade MacPorts base.

I probably can make a script to parse the output of 'port -v installed' and 'port -f uninstall' the ones with i386 ppc then reinstall them, but I'm wondering if there is already a way allowing me do so with 'port' or some other tools.

There are some instructions and a script on the Migration page. They're for uninstalling and reinstalling all ports following the migration from Leopard or earlier to Snow Leopard, so you might have to adjust the instructions or how you use the script for your case of only uninstalling and reinstalling a few select ports.

Do I also need to uninstall and reinstall the ones with 'noarch'?

No need. "noarch" means "no architecture"; these ports build the same on every type of Mac so there would be no benefit to rebuilding them.

Replying to pengyu.ut@…:

I didn't correctly formatted this message and I want to reformat it. But I don't find a way to edit the posted messages. Is there a way to do so?

You cannot edit comments after you've submitted them (only administrators can). Use the Preview button before posting to ensure formatting is correct.

Changed 13 years ago by pengyu.ut@…

Attachment: port_installed.txt added

Changed 13 years ago by pengyu.ut@…

Attachment: wine_main.log added

comment:14 in reply to:  13 Changed 13 years ago by pengyu.ut@…

Replying to ryandesign@…:

Replying to pengyu.ut@…:

Thanks. That is indeed the case. macports.conf was from an old installation before my OS was upgraded from 10.5.8 to 10.6.7. Shall I just manually replace macports.conf with macports.conf.default?

You can do that, if you're sure you've made no changes to macports.conf that you wanted to keep. Otherwise I suggest you compare the two files line by line; for each difference, if you remember a reason for the difference, keep your version, otherwise use the version from the new default file. Repeat this process every time you upgrade MacPorts base.

I have make sure that there is no package with ppc. See the output of port -d installed (attached).

But when I run 'sudo port install wine', I still get errors. See the attached log. Could you please let me what is wrong?

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

The log you attached says:

:error:configure You cannot install wine for the architecture(s) i386 because
:error:configure its dependency fontconfig only contains the architecture(s) x86_64.
:error:configure
:error:configure Try rebuilding fontconfig (and all its dependencies) with
:error:configure the +universal variant by running
:error:configure
:error:configure     sudo port upgrade --enforce-variants fontconfig +universal

This is odd since the list of installed ports you attached shows:

  fontconfig @2.8.0_0+universal (active) platform='darwin 10' archs='i386 x86_64'

These two facts seem to indicate that MacPorts has recorded in its registry that fontconfig is installed universally, but actually it's not. (I'm not sure how that's possible, but that's what these facts suggest.) What do you get when you run:

lipo -info /opt/local/lib/libfontconfig.dylib

Presumably it will say it is installed for x86_64 only. (That's what the archcheck portgroup uses to check ports' dependencies and print out instructions like those above.) But we want it to say that it is installed for i386 and x86_64. So you could try rebuilding fontconfig with:

sudo port -n upgrade --force fontconfig +universal

comment:16 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Are you still experiencing this problem? If so, can you answer the questions I posed above?

comment:17 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.