tag:help.rubygems.org,2010-01-19:/discussions/problems/1174-cant-install-ruby-gems
RubyGems.org: Discussion
2012-06-11T17:15:33Z
tag:help.rubygems.org,2010-01-19:Comment/16572402
2012-06-11T10:49:18Z
2012-06-11T10:49:44Z
Cant install Ruby Gems...
<div><p>C:\Ruby193\bin>gem install watir<br>
Temporarily enhancing PATH to include DevKit...<br>
Building native extensions. This could take a while...<br>
ERROR: Error installing watir:</p>
<pre>
<code> ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb</code>
</pre>
<p>checking for ffi.h... no<br>
checking for ffi.h in /usr/local/include... no<br>
checking for rb_thread_blocking_region()... yes<br>
checking for ruby_native_thread_p()... yes<br>
checking for rb_thread_call_with_gvl()... yes<br>
creating extconf.h<br>
creating Makefile</p>
<p>make<br>
generating ffi_c-i386-mingw32.def<br>
Configuring libffi<br>
make -C
"/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"<br>
make[1]: Entering directory
<code>/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</code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/<br>
ffi_c/libffi'<br>
Making all in include<br>
make[3]: Entering directory
<code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi/include' make[3]: Nothing to be done
for</code>all'.<br>
make[3]: Leaving directory
<code>/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</code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/<br>
ffi_c/libffi/testsuite'<br>
make[3]: Nothing to be done for <code>all'. make[3]: Leaving
directory</code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f<br>
fi_c/libffi/testsuite'<br>
Making all in man<br>
make[3]: Entering directory
<code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi/man' make[3]: Nothing to be done for</code>all'.<br>
make[3]: Leaving directory
<code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
fi_c/libffi/man' make[3]: Entering
directory</code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/<br>
ffi_c/libffi'<br>
/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<br>
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -Wa<br>
ll -g -fexceptions -c src/debug.c -DDLL_EXPORT -DPIC -o
src/.libs/debug.o<br>
/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<br>
f.c<br>
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -Wa<br>
ll -g -fexceptions -c src/prep_cif.c -DDLL_EXPORT -DPIC -o
src/.libs/prep_cif.o</p>
<p>/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<br>
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -Wa<br>
ll -g -fexceptions -c src/types.c -DDLL_EXPORT -DPIC -o
src/.libs/types.o<br>
/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.<br>
c<br>
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -Wa<br>
ll -g -fexceptions -c src/raw_api.c -DDLL_EXPORT -DPIC -o
src/.libs/raw_api.o<br>
/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<br>
a_raw_api.c<br>
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -Wa<br>
ll -g -fexceptions -c src/java_raw_api.c -DDLL_EXPORT -DPIC -o
src/.libs/java_r<br>
aw_api.o<br>
/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<br>
s.c<br>
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -Wa<br>
ll -g -fexceptions -c src/closures.c -DDLL_EXPORT -DPIC -o
src/.libs/closures.o</p>
<p>/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.<br>
c<br>
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -Wa<br>
ll -g -fexceptions -c src/x86/ffi.c -DDLL_EXPORT -DPIC -o
src/x86/.libs/ffi.o<br>
/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<br>
/win32.S libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include
-Iinclude -I./src -I.<br>
-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 <code>grep -v '^#'
./libtool-version</code> -no-undefined -o libffi.la -rpath
/usr/local<br>
/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<br>
libtool: link: gcc -o .libs/libffi.dll.a src/.libs/debug.o
src/.libs/prep_cif.o<br>
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
<code>echo "X" | /usr/bin/sed -e 1 s/^X// -e 's/ -lc$//'</code>
-link -dll<br>
c:/documents and
settings/321106/desktop/mingw/bin/../lib/gcc/mingw32/4.5.2/../.<br>
./../../mingw32/bin/ld.exe: cannot find -link collect2: ld returned
1 exit status<br>
make[3]: <strong><em>[libffi.la] Error 1<br>
make[3]: Leaving directory
<code>/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</code>/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f<br>
fi_c/libffi'<br>
make[1]:</em></strong> [all] Error 2<br>
make[1]: Leaving directory
`/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f<br>
fi_c/libffi'<br>
make: ***
["/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"/.li<br>
bs/libffi_convenience.a] Error 2</p>
<p>Gem files will remain installed in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.1<br>
1 for inspection.<br>
Results logged to
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/gem_m<br>
ake.out</p></div>
Sophia
tag:help.rubygems.org,2010-01-19:Comment/16572402
2012-06-11T17:11:09Z
2012-06-11T17:11:09Z
Cant install Ruby Gems...
<div><p>There is an issue with DevKit and your ruby installation. You
should contact Luis.</p></div>
Evan Phoenix
tag:help.rubygems.org,2010-01-19:Comment/16572402
2012-06-11T17:14:57Z
2012-06-11T17:14:57Z
Cant install Ruby Gems...
<div><p>Hello,</p>
<p>Was unable to log here to respond.</p>
<p>The issue is FFI 1.0.11, you need to install the pre-release
version instead:</p>
<p>gem install ffi --pre</p>
<p>Then you can install Watir.</p></div>
Luis Lavena