ruby - No rubies installed with rvm -


i have installed rvm on 10.8.3 osx system, , although appears have installed correctly there no rubies installed. run rvm install , nothing seems happen.

$ rvm install ruby-2.0.0-p0 searching binary rubies, might take time. no binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0. continuing compilation. please read 'rvm mount' more information on binary rubies. installing requirements osx, might require sudo password. up-to-date. certificates in '/users/disaacs/.rvm/etc/openssl/cert.pem' date. $ rvm list  rvm rubies   # no rvm rubies installed yet. try 'rvm install'. 

i tried sudo rvm install, didn't make difference.

any idea on missing?

edit: running rvm requirements suggested tilo has helped. there new problem

ruby-1.9.3-p392 - #configuring........ error running './configure --prefix=/users/disaacs/.rvm/rubies/ruby-1.9.3-p392 --with-opt-dir=/users/disaacs/.rvm/opt/libyaml:/users/disaacs/.rvm/opt/readline:/users/disaacs/.rvm/opt/libxml2:/users/disaacs/.rvm/opt/libxslt:/users/disaacs/.rvm/opt/libksba:/users/disaacs/.rvm/opt/openssl:/users/disaacs/.rvm/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared', please read /users/disaacs/.rvm/log/ruby-1.9.3-p392/1367619493_configure.log there has been error while running configure. halting installation. 

the contents of specified log file are:

[2013-05-03 18:18:13] ./configure configure: warning: unrecognized options: --without-tcl, --without-tk 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 whether c compiler works... no configure: error: in `/users/disaacs/.rvm/src/ruby-1.9.3-p392': configure: error: c compiler cannot create executables see `config.log' more details 

the contents of config.log are

this file contains messages produced compilers while running configure, aid debugging if configure makes mistake.  created configure, generated gnu autoconf 2.69.  invocation command line    $ ./configure --prefix=/users/disaacs/.rvm/rubies/ruby-1.9.3-p392 --with-opt-dir=/users/disaacs/.rvm/opt/libyaml:/users/disaacs/.rvm/opt/readline:/users/disaacs/.rvm/opt/libxml2:/users/disaacs/.rvm/opt/libxslt:/users/disaacs/.rvm/opt/libksba:/users/disaacs/.rvm/opt/openssl:/users/disaacs/.rvm/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared  ## --------- ## ## platform. ## ## --------- ##  hostname = rabbit.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 8 processors. 4 processors physically available. 8 processors logically available. processor type: i486 (intel 80486) processors active: 0 1 2 3 4 5 6 7 primary memory available: 16.00 gigabytes default processor set: 150 tasks, 814 threads, 8 processors load average: 2.92, mach factor: 5.14 /bin/machine           = unknown /usr/bin/oslevel       = unknown /bin/universe          = unknown  path: /usr/bin path: /bin path: /usr/sbin path: /sbin path: /usr/local/bin path: /usr/local/git/bin path: /users/disaacs/.rvm/bin   ## ----------- ## ## core tests. ## ## ----------- ##  configure:2792: checking build system type configure:2806: result: x86_64-apple-darwin12.3.0 configure:2874: checking host system type configure:2887: result: x86_64-apple-darwin12.3.0 configure:2907: checking target system type configure:2920: result: x86_64-apple-darwin12.3.0 configure:3401: checking c compiler version configure:3410: gcc-4.2 --version >&5 i686-apple-darwin11-gcc-4.2.1 (gcc) 4.2.1 (apple inc. build 5666) (dot 3) copyright (c) 2007 free software foundation, inc. free software; see source copying conditions.  there no warranty; not merchantability or fitness particular purpose.  configure:3421: $? = 0 configure:3410: gcc-4.2 -v >&5 using built-in specs. target: i686-apple-darwin11 configured with: /volumes/media/builds/gcc-5666.3/build/obj/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1 thread model: posix gcc version 4.2.1 (apple inc. build 5666) (dot 3) configure:3421: $? = 0 configure:3410: gcc-4.2 -v >&5 gcc-4.2: argument `-v' missing configure:3421: $? = 1 configure:3410: gcc-4.2 -qversion >&5 i686-apple-darwin11-gcc-4.2.1: no input files configure:3421: $? = 1 configure:3441: checking whether c compiler works configure:3463: gcc-4.2    conftest.c  >&5 i686-apple-darwin11-gcc-4.2.1: error trying exec 'as': execvp: no such file or directory configure:3467: $? = 1 configure:3505: 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:3510: error: in `/users/disaacs/.rvm/src/ruby-1.9.3-p392': configure:3512: 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=gcc-4.2 ac_cv_env_cflags_set= ac_cv_env_cflags_value= ac_cv_env_cppflags_set= ac_cv_env_cppflags_value= 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= ac_cv_env_ldflags_value= 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=gcc-4.2 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='gcc-4.2' ccdlflags='' cflags='' chdir='' common_headers='' common_libs='' common_macros='' coutflag='' cp='' cpp='' cppflags='' 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='' extout='' extstatic='' gcc='' gnu_ld='' grep='' installdoc='' install_data='' install_program='' install_script='' ldflags='' 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-02-22' 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=' ${optflags} ${debugflags} ${warnflags}' 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/disaacs/.rvm/rubies/ruby-1.9.3-p392' 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 

please first check if have xcode installed on mac os x

make sure connected network.

go apple app store , download xcode first (it's free). see also: how use/install gcc on mac os x 10.8 / xcode 4.4 , , http://forums.macrumors.com/showthread.php?t=1289543

then try install ruby:

   rvm list known    rvm requirements    # might not have xcode installed on os x     rvm install 1.9.3 

please check instructions here:

https://rvm.io/rubies/installing/

if not work you, try upgrade rvm:

https://rvm.io/rvm/upgrading/


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -