Opened 13 years ago
Closed 13 years ago
#34323 closed defect (invalid)
glib2 fails to install
Reported by: | remix@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | glib2 |
Description
i ran, sudo port selfupdate, then sudo port upgrade outdated
and it fails on glib2
... ---> Computing dependencies for glib2 ---> Building glib2 Error: Target org.macports.build returned: shell command failed (see log for details) Log for glib2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/glib2/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets>
i've attached the glib2 main log for sudo port install glib2
Attachments (1)
Change History (8)
Changed 13 years ago by remix@…
Attachment: | glib2.main.log added |
---|
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
The log says:
:info:build dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib :info:build Referenced from: /opt/local/bin/msgfmt :info:build Reason: no suitable image found. Did find: :info:build /usr/lib/libncurses.5.dylib: no matching architecture in universal wrapper
Sounds like there's a mismatch between the architectures of your ncurses port and your gettext port. For what architectures are they installed? To find out:
lipo -info /opt/local/lib/libncurses.dylib /opt/local/bin/msgfmt
For what architectures does MacPorts think they're installed? To find out:
port -v installed ncurses gettext
What kind of Mac do you have (specifically what processor), and what version of Xcode is installed?
comment:2 Changed 13 years ago by remix@…
$ lipo -info /opt/local/lib/libncursesw.dylib /opt/local/bin/msgfmt Non-fat file: /opt/local/lib/libncursesw.dylib is architecture: x86_64 Non-fat file: /opt/local/bin/msgfmt is architecture: x86_64
$ port -v installed ncurses gettext The following ports are currently installed: gettext @0.18.1.1_2 (active) platform='darwin 10' archs='x86_64' ncurses @5.9_1 platform='darwin 10' archs='x86_64'
Model Name: iMac Model Identifier: iMac11,1 Processor Name: Intel Core i5 Processor Speed: 2.66 GHz
XCode Version 3.2.6 64-bit
Component versions Xcode IDE: 1761.0 Xcode Core: 1809.0 ToolSupport: 1806.0
what would be my next steps?
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
That all looks ok... what about lipo -info /opt/local/lib/libncurses.dylib
? (You showed libncursesw.dylib not libncurses.dylib)
comment:4 Changed 13 years ago by remix@…
oh right,
i had to reactivate ncurses first sudo port -f activate ncurses
$ lipo -info /opt/local/lib/libncurses.dylib Non-fat file: /opt/local/lib/libncurses.dylib is architecture: x86_64
now glib2 works!
thanks for guiding me through
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Oh, I missed in your earlier message that ncurses was not active. How then did you have the file /opt/local/lib/libncursesw.dylib? Have you perhaps not updated your ports in forever and therefore still have the old ncursesw port installed?
comment:7 Changed 13 years ago by mf2k (Frank Schima)
Resolution: | → invalid |
---|---|
Status: | new → closed |
glib2 main.log