[MacPorts] #31756: ruby19 @1.9.2-p290

MacPorts noreply at macports.org
Mon Oct 24 14:15:26 PDT 2011


#31756: ruby19 @1.9.2-p290
------------------------------------+---------------------------------------
 Reporter:  joshuajmoody@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  High                    |   Milestone:                                       
Component:  ports                   |     Version:  2.0.3                                
 Keywords:  lion                    |        Port:  ruby19                               
------------------------------------+---------------------------------------
 System Information: Lion 10.7.2 and Xcode 4.2

 I ran into trouble installing ruby19.

 {{{
 :info:configure checking whether the C compiler works... no
 :info:configure configure: error: in
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.2-p290'
 :info:configure configure: error: C compiler cannot create executables
 }}}

 Looking at the Portfile, I found this:

 {{{
 # ruby-1.9.x built with clang or llvm-gcc does not work
 # see list "MacPorts on Lion (common issues, fixes, and workarounds)"
 # http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html
 if {${configure.compiler} == "clang" ||
       ${configure.compiler} == "llvm-gcc-4.2"} {
       configure.compiler gcc-4.2
       if {![file executable ${configure.cc}]} {
               depends_build-append port:apple-gcc42
               configure.compiler apple-gcc-4.2
       }
 }
 }
 }}}

 I read the information in the link provided in the comment and decided to
 try to compile with clang.

 I was able to successful build ruby19 and subsequently rb19-rails by
 commenting out the compiler if conditional.

 {{{
 # ruby-1.9.x built with clang or llvm-gcc does not work
 # see list "MacPorts on Lion (common issues, fixes, and workarounds)"
 # http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html
 # if {${configure.compiler} == "clang" ||
 #       ${configure.compiler} == "llvm-gcc-4.2"} {
 #       configure.compiler gcc-4.2
 #       if {![file executable ${configure.cc}]} {
 #               depends_build-append port:apple-gcc42
 #               configure.compiler apple-gcc-4.2
 #       }
 # }
 }}}

 Can the maintainer please investigate and update the Portfile as
 necessary?

 Thanks!

 Joshua

-- 
Ticket URL: <https://trac.macports.org/ticket/31756>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list