Cant install Ruby Gems...

Sophia's Avatar


11 Jun, 2012 10:37 AM

i have installed almost all the dependency gems. I have installed DevKit as well. But the Watir3.0.0.gem is not getting installed. I Get the error as in the screenshot.Please help me...

I have installed Ruby1.9.3.

  1. 1 Posted by Sophia on 11 Jun, 2012 10:49 AM

    Sophia's Avatar

    C:\Ruby193\bin>gem install watir
    Temporarily enhancing PATH to include DevKit...
    Building native extensions. This could take a while...
    ERROR: Error installing watir:

        ERROR: Failed to build gem native extension.
        C:/Ruby193/bin/ruby.exe extconf.rb

    checking for ffi.h... no
    checking for ffi.h in /usr/local/include... no
    checking for rb_thread_blocking_region()... yes
    checking for ruby_native_thread_p()... yes
    checking for rb_thread_call_with_gvl()... yes
    creating extconf.h
    creating Makefile

    generating ffi_c-i386-mingw32.def
    Configuring libffi
    make -C "/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"
    make[1]: Entering directory /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ ffi_c/libffi' make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLA =" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install - c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKE INFO=/bin/sh /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/mis sing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/b in/sh" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/loc al/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=c:/documents and settings/321106/desktop/mingw/mingw32/bin/ld.exe" "NM=/usr/mingw/bin/nm" "RA NLIB=ranlib" "DESTDIR=" all-recursive make[2]: Entering directory/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
    Making all in include
    make[3]: Entering directory /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ ffi_c/libffi/include' make[3]: Nothing to be done forall'.
    make[3]: Leaving directory /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f fi_c/libffi/include' Making all in testsuite make[3]: Entering directory/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
    make[3]: Nothing to be done for all'. make[3]: Leaving directory/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
    Making all in man
    make[3]: Entering directory /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ ffi_c/libffi/man' make[3]: Nothing to be done forall'.
    make[3]: Leaving directory /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f fi_c/libffi/man' make[3]: Entering directory/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/debug.lo src/debug.c
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
    ll -g -fexceptions -c src/debug.c -DDLL_EXPORT -DPIC -o src/.libs/debug.o
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/prep_cif.lo src/prep_ci
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
    ll -g -fexceptions -c src/prep_cif.c -DDLL_EXPORT -DPIC -o src/.libs/prep_cif.o

    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/types.lo src/types.c
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
    ll -g -fexceptions -c src/types.c -DDLL_EXPORT -DPIC -o src/.libs/types.o
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/raw_api.lo src/raw_api.
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
    ll -g -fexceptions -c src/raw_api.c -DDLL_EXPORT -DPIC -o src/.libs/raw_api.o
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/java_raw_api.lo src/jav
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
    ll -g -fexceptions -c src/java_raw_api.c -DDLL_EXPORT -DPIC -o src/.libs/java_r
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/closures.lo src/closure
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
    ll -g -fexceptions -c src/closures.c -DDLL_EXPORT -DPIC -o src/.libs/closures.o

    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/x86/ffi.lo src/x86/ffi.
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
    ll -g -fexceptions -c src/x86/ffi.c -DDLL_EXPORT -DPIC -o src/x86/.libs/ffi.o
    /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iin clude -I./src -I. -I./include -Iinclude -I./src -c -o src/x86/win32.lo src/x86
    /win32.S libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I.
    -I./include -Iinclude -I./src -c src/x86/win32.S -DDLL_EXPORT -DPIC -o src/x86 /.libs/win32.o /bin/sh ./libtool --tag=CC --mode=link gcc -Wall -g -fexceptions -version-inf o grep -v '^#' ./libtool-version -no-undefined -o -rpath /usr/local
    /lib src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.l o src/closures.lo src/x86/ffi.lo src/x86/win32.lo
    libtool: link: gcc -o .libs/libffi.dll.a src/.libs/debug.o src/.libs/prep_cif.o
    src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closur es.o src/x86/.libs/ffi.o src/x86/.libs/win32.o echo "X" | /usr/bin/sed -e 1 s/^X// -e 's/ -lc$//' -link -dll
    c:/documents and settings/321106/desktop/mingw/bin/../lib/gcc/mingw32/4.5.2/../.
    ./../../mingw32/bin/ld.exe: cannot find -link collect2: ld returned 1 exit status
    make[3]: [] Error 1
    make[3]: Leaving directory /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f fi_c/libffi' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
    [all] Error 2
    make[1]: Leaving directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
    make: *** ["/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"/.li
    bs/libffi_convenience.a] Error 2

    Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.1
    1 for inspection.
    Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/gem_m

  2. Support Staff 2 Posted by Evan Phoenix on 11 Jun, 2012 05:11 PM

    Evan Phoenix's Avatar

    There is an issue with DevKit and your ruby installation. You should contact Luis.

  3. Evan Phoenix closed this discussion on 11 Jun, 2012 05:11 PM.

  4. Luis Lavena re-opened this discussion on 11 Jun, 2012 05:14 PM

  5. 3 Posted by Luis Lavena on 11 Jun, 2012 05:14 PM

    Luis Lavena's Avatar


    Was unable to log here to respond.

    The issue is FFI 1.0.11, you need to install the pre-release version instead:

    gem install ffi --pre

    Then you can install Watir.

  6. Luis Lavena closed this discussion on 11 Jun, 2012 05:15 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac