ubuntu下无法编译ruby-2.1.5提示something wrong with CFLAGS -arch x86_64

    在Mac OS X10.10下以下语句运行没有问题:

./configure -prefix=/Users/apple/src/ruby_src/ruby2.1.5_installed --with-arch=x86_64,i386 --enable-pthread --enable-shared --with-tk --with-tcl

但是在ubuntu10.04上出现如下错误:

something wrong with CFLAGS -arch x86_64

开始以为是gcc版本的问题,结果将gcc链接到clang也报同样的错误.将--with-arch换为i386,x86-64,amd64统统不行.灵感一来将--with-arch换为--with-march一切哦鸟...

你可能感兴趣的:(Ruby,UNIX,Like)