ruby - rbenv install 1.9.3-p429 BUILD FAILED -


i trying install ruby 1.9.3-p429 keep getting compiling error. i've sought few people around shop , no 1 able figure out. able install ruby 2.0.0 without errors.

the following text have copied terminal after entering command rbenv install ruby-1.9.3-p429

any appreciated.

here error msg getting in it's entirety:

installing ruby-1.9.3-p429...  build failed  inspect or clean working tree @ /var/folders/64/sclwxt551_5b50b9m0s1j6z00000gn/t/ruby-build.20130521144442.70391 results logged /var/folders/64/sclwxt551_5b50b9m0s1j6z00000gn/t/ruby-build.20130521144442.70391.log  last 10 log lines: x ruby-1.9.3-p429/golf_prelude.c /var/folders/64/sclwxt551_5b50b9m0s1j6z00000gn/t/ruby-build.20130521144442.70391/ruby-1.9.3-p429 /var/folders/64/sclwxt551_5b50b9m0s1j6z00000gn/t/ruby-build.20130521144442.70391 ~/desktop checking build system type... x86_64-apple-darwin12.3.0 checking host system type... x86_64-apple-darwin12.3.0 checking target system type... x86_64-apple-darwin12.3.0 checking gcc... gcc checking whether c compiler works... no configure: error: in `/var/folders/64/sclwxt551_5b50b9m0s1j6z00000gn/t/ruby-build.20130521144442.70391/ruby-1.9.3-p429': configure: error: c compiler cannot create executables see `config.log' more details 

this copied directly config.log

this file contains messages produced compilers while running configure, aid debugging if configure makes mistake.

it created configure, was

generated gnu autoconf 2.69.  invocation command line  $ ./configure --prefix=/users/thomasberry/.rbenv/versions/1.9.3-p429  ## --------- ## ## platform. ## ## --------- ##  hostname = thomass-macbook-pro.local uname -m = x86_64 uname -r = 12.3.0 uname -s = darwin uname -v = darwin kernel version 12.3.0: sun jan  6 22:37:10 pst 2013; root:xnu-2050.22.13~1/release_x86_64  /usr/bin/uname -p = i386 /bin/uname -x     = unknown  /bin/arch              = unknown /usr/bin/arch -k       = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo      = mach kernel version:      darwin kernel version 12.3.0: sun jan  6 22:37:10 pst 2013; root:xnu-2050.22.13~1/release_x86_64 kernel configured 4 processors. 2 processors physically available. 4 processors logically available. processor type: i486 (intel 80486) processors active: 0 1 2 3 primary memory available: 4.00 gigabytes default processor set: 134 tasks, 682 threads, 4 processors load average: 1.40, mach factor: 2.80 /bin/machine           = unknown /usr/bin/oslevel       = unknown /bin/universe          = unknown  path: /users/thomasberry/.rbenv/libexec path: /users/thomasberry/.rbenv/plugins/ruby-build/bin path: /users/thomasberry/.rbenv/bin path: /users/thomasberry/.rbenv/shims path: /users/thomasberry/.rbenv/bin path: /usr/local/bin path: /usr/bin path: /bin path: /usr/sbin path: /sbin path: /usr/local/bin   ## ----------- ## ## core tests. ## ## ----------- ##  configure:2798: checking build system type configure:2812: result: x86_64-apple-darwin12.3.0 configure:2880: checking host system type configure:2893: result: x86_64-apple-darwin12.3.0 configure:2913: checking target system type configure:2926: result: x86_64-apple-darwin12.3.0 configure:3407: checking c compiler version configure:3416: /usr/bin/gcc --version >&5 i686-apple-darwin11-llvm-gcc-4.2 (gcc) 4.2.1 (based on apple inc. build 5658) (llvm build 2336.11.00) copyright (c) 2007 free software foundation, inc. free software; see source copying conditions.  there no warranty; not merchantability or fitness particular purpose.  configure:3427: $? = 0 configure:3416: /usr/bin/gcc -v >&5 using built-in specs. target: i686-apple-darwin11 configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/applications/xcode.app/contents/developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmcore/developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 thread model: posix gcc version 4.2.1 (based on apple inc. build 5658) (llvm build 2336.11.00) configure:3427: $? = 0 configure:3416: /usr/bin/gcc -v >&5 llvm-gcc-4.2: argument `-v' missing configure:3427: $? = 1 configure:3416: /usr/bin/gcc -qversion >&5 i686-apple-darwin11-llvm-gcc-4.2: no input files configure:3427: $? = 1 configure:3447: checking whether c compiler works configure:3469: /usr/bin/gcc  -o3 -wno-error=shorten-64-to-32 -march=native -o3 -i'/users/thomasberry/.rbenv/versions/1.9.3-p429/include'  -l'/users/thomasberry/.rbenv/versions/1.9.3-p429/lib'  conftest.c  >&5 conftest.c:1: error: bad value (native) -march= switch conftest.c:1: error: bad value (native) -mtune= switch configure:3473: $? = 1 configure:3511: result: no configure: failed program was: | /* confdefs.h */ | #define package_name "" | #define package_tarname "" | #define package_version "" | #define package_string "" | #define package_bugreport "" | #define package_url "" | #define canonicalization_for_mathn 1 | /* end confdefs.h.  */ |  | int | main () | { |  |   ; |   return 0; | } configure:3516: error: in `/var/folders/64/sclwxt551_5b50b9m0s1j6z00000gn/t/ruby-build.20130522093258.3452/ruby-1.9.3-p429': configure:3518: error: c compiler cannot create executables see `config.log' more details  ## ---------------- ## ## cache variables. ## ## ---------------- ##  ac_cv_build=x86_64-apple-darwin12.3.0 ac_cv_env_ccc_set= ac_cv_env_ccc_value= ac_cv_env_cc_set=set ac_cv_env_cc_value=/usr/bin/gcc ac_cv_env_cflags_set=set ac_cv_env_cflags_value=' -o3 -wno-error=shorten-64-to-32 -march=native -o3' ac_cv_env_cppflags_set=set ac_cv_env_cppflags_value='-i'\''/users/thomasberry/.rbenv/versions/1.9.3-p429/include'\'' ' ac_cv_env_cpp_set= ac_cv_env_cpp_value= ac_cv_env_cxxflags_set= ac_cv_env_cxxflags_value= ac_cv_env_cxx_set= ac_cv_env_cxx_value= ac_cv_env_ldflags_set=set ac_cv_env_ldflags_value='-l'\''/users/thomasberry/.rbenv/versions/1.9.3-p429/lib'\'' ' ac_cv_env_libs_set= ac_cv_env_libs_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=x86_64-apple-darwin12.3.0 ac_cv_prog_cc=/usr/bin/gcc ac_cv_target=x86_64-apple-darwin12.3.0  ## ----------------- ## ## output variables. ## ## ----------------- ##  alloca='' ar='' archfile='' arch_flag='' as='' asflags='' baseruby='ruby' builtin_encobjs='' builtin_transobjs='' builtin_transsrcs='' capitarget='' cc='/usr/bin/gcc' ccdlflags='' cflags=' -o3 -wno-error=shorten-64-to-32 -march=native -o3' chdir='' common_headers='' common_libs='' common_macros='' coutflag='' cp='' cpp='' cppflags='-i'\''/users/thomasberry/.rbenv/versions/1.9.3-p429/include'\'' ' cppoutfile='' cxx='' cxxflags='' defs='' dldflags='' dldlibs='' dlext2='' dlext='' dllwrap='' dot='' doxygen='' echo_c='\c' echo_n='' echo_t='' egrep='' enable_shared='' executable_exts='' exeext='' export_prefix='' extdldflags='' extout='' extstatic='' gcc='' gnu_ld='' grep='' installdoc='' install_data='' install_program='' install_script='' ldflags='-l'\''/users/thomasberry/.rbenv/versions/1.9.3-p429/lib'\'' ' ldshared='' ldsharedxx='' libext='' libobjs='' libpathenv='' libpathflag='' libruby='' librubyarg='' librubyarg_shared='' librubyarg_static='' libruby_a='' libruby_aliases='' libruby_dldflags='' libruby_ldshared='' libruby_relative='' libruby_so='' libs='' link_so='' ln_s='' ltlibobjs='' mainlibs='' major='1' makedirs='' makefiles='' mantype='' miniobjs='' miniruby='' minor='9' mkdir_p='' nm='' nroff='' nullcmd='' objcopy='' objdump='' objext='' outflag='' package='' package_bugreport='' package_name='' package_string='' package_tarname='' package_url='' package_version='' path_separator=':' pkg_config='' platform_dir='' prep='' ranlib='' rdoctarget='' ri_base_name='' rm='' rmall='' rmdir='' rmdirs='' rpathflag='' rubyw_base_name='rubyw' rubyw_install_name='' ruby_base_name='ruby' ruby_install_name='' ruby_program_version='1.9.3' ruby_release_date='2013-05-15' ruby_so_name='' runruby='' set_make='' shell='/bin/sh' solibs='' static='' strip='' symbol_prefix='' teeny='1' test_runnable='' thread_model='' try_link='' universal_archnames='' universal_ints='' use_rubygems='' werrorflag='' windres='' xcflags='' xldflags='' xruby='' xruby_libdir='' xruby_rubyhdrdir='' xruby_rubylibdir='' ac_ct_cc='' ac_ct_cxx='' ac_ct_objcopy='' ac_ct_objdump='' arch='' bindir='${exec_prefix}/bin' build='x86_64-apple-darwin12.3.0' build_alias='' build_cpu='x86_64' build_os='darwin12.3.0' build_vendor='apple' cflags='' configure_args='' cppflags='' cxxflags=' ${optflags} ${debugflags} ${warnflags}' datadir='${datarootdir}' datarootdir='${prefix}/share' debugflags='' docdir='${datarootdir}/doc/${package}' dvidir='${docdir}' exec='' exec_prefix='none' host='x86_64-apple-darwin12.3.0' host_alias='' host_cpu='x86_64' host_os='darwin12.3.0' host_vendor='apple' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' optflags='' pdfdir='${docdir}' prefix='/users/thomasberry/.rbenv/versions/1.9.3-p429' program_transform_name='s&^&&' psdir='${docdir}' ridir='' ruby_pc='' ruby_version='' rubyhdrdir='' rubylibprefix='' rubyw_install_name='' sbindir='${exec_prefix}/sbin' setup='' sharedstatedir='${prefix}/com' sitearch='' sitedir='' sitehdrdir='' sysconfdir='${prefix}/etc' target='x86_64-apple-darwin12.3.0' target_alias='' target_cpu='x86_64' target_os='darwin12.3.0' target_vendor='apple' try_header='' vendordir='' vendorhdrdir='' warnflags=''  ## ----------- ## ## confdefs.h. ## ## ----------- ##  /* confdefs.h */ #define package_name "" #define package_tarname "" #define package_version "" #define package_string "" #define package_bugreport "" #define package_url "" #define canonicalization_for_mathn 1  configure: exit 77 

i had problem.

in case tried use ruby_cflags variable provided in article, warns not being safe.

after trying , failing, removed corresponding line ~/.bash_profile failed again. reason variable still defined in current bash environment, had unset ruby_cflags able install ruby version.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -