Opened 13 years ago

Closed 13 years ago

#32676 closed defect (invalid)

ruby19 installation problem on mac osx 10.6.8 (architecture mismatch)

Reported by: jnandigam@… Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: ruby19

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

:info:build installing default md5 libraries
:info:build linking shared-object digest/md5.bundle
:info:build ld: in /opt/local/lib/libz.1.dylib, file was built for i386 which is not the architecture being linked (x86_64)
:info:build collect2: ld returned 1 exit status
:info:build linking shared-object dbm.bundle
:info:build make[2]: *** [../../../.ext/x86_64-darwin10/digest/md5.bundle] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/digest/md5'
:info:build make[1]: *** [ext/digest/md5/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build installing default date_core libraries
:info:build installing default bigdecimal libraries
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/dbm'
:info:build linking shared-object -test-/add_suffix/bug.bundle
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/-test-/add_suffix'
:info:build linking shared-object bigdecimal.bundle
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/bigdecimal'
:info:build linking shared-object date_core.bundle
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/date'
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0'
:info:build make: *** [build-ext] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0" && /usr/bin/make -j8 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for ruby19): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for ruby19 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/main.log

Attachments (1)

main.log (67.3 KB) - added by jnandigam@… 13 years ago.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by jnandigam@…

Attachment: main.log added

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

Description: modified (diff)
Owner: changed from macports-tickets@… to kimuraw@…
Port: ruby19 added

Either you upgraded to Snow Leopard, or migrated to this Snow Leopard machine from a different machine, and did not perform the Migration procedure, or you subsequently installed a 3rd-party package that itself was built using MacPorts which overwrote MacPorts-installed files like your zlib library. In any case, the solution to this specific issue is to rebuild your zlib:

sudo port -n upgrade --force zlib

However, in either of the above scenarios, it's likely other libraries are affected as well, so you should probably uninstall and reinstall MacPorts and all ports.

comment:2 Changed 13 years ago by jnandigam@…

Rebuilding zlib did not fix the problem.

How do I "uninstall and reinstall Macports and all pots" as suggested?

Thanks.

comment:3 Changed 13 years ago by jnandigam@…

Uninstalled macports, reinstalled it, and installed ruby19. Everything is fine.

Thanks.

comment:4 Changed 13 years ago by mf2k (Frank Schima)

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