[MacPorts] #46953: libexpat.dylib was built for i386 which is not the architecture being linked

MacPorts noreply at macports.org
Sun Apr 12 20:55:57 PDT 2015


#46953: libexpat.dylib was built for i386 which is not the architecture being
linked
-------------------------+--------------------------------
  Reporter:  mhng1580@…  |      Owner:  macports-tickets@…
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.3
Resolution:  invalid     |   Keywords:
      Port:  expat       |
-------------------------+--------------------------------

Comment (by mhng1580@…):

 Replying to [comment:1 ryandesign@…]:


 I uninstalled it and installed again.
 Everything runs well now.
 Thanks!

 > The error in the config.log is:
 >
 > {{{
 > ld: warning: ignoring file /opt/local/lib/libexpat.dylib, file was built
 for i386 which is not the architecture being linked (x86_64):
 /opt/local/lib/libexpat.dylib
 > }}}
 >
 > Why is this the case? How did this happen? Did you install some third-
 party software that overwrote some of your MacPorts-installed software?
 >
 > The solution to this particular error is to rebuild expat, which you can
 do by running:
 >
 > {{{
 > sudo port clean expat
 > sudo port -n upgrade --force expat
 > }}}
 >
 > However, if your expat was overwritten, who knows how many of your other
 ports have been overwritten. It might be safest and easiest to uninstall
 all ports, and MacPorts itself, and remove the /opt/local directory
 entirely, as per our
 [https://guide.macports.org/chunked/installing.macports.uninstalling.html
 uninstall instructions], then reinstall MacPorts and the ports you want.

-- 
Ticket URL: <https://trac.macports.org/ticket/46953#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list