[gentoo-user] installing ffi gem

2011-04-21 Thread Matt Harrison
I've just tried setting up a new development machine and I'm stuck installing 
the ffi
gem for ruby.

According to a bug I found (can't find it now I'm afraid) the gentoo devs do not
support installing gems via the gem command and directed the user to use the
dev-ruby/ffi package. Unfortnately, that package is absolutely ancient and 
unusable.

Anyway, I've got the ffi library install from portage, but when I try to `gem 
install
ffi`, I get the output seen in the attachement.

The same gem installs just fine on an ubuntu box, but...well it's ubuntu and I 
don't
want to use that (besides it's just a VM).

I'd really like to get this fixed so I can get started on a new project.

Grateful for any help

Matt
ERROR:  Error installing ffi:
ERROR: Failed to build gem native extension.

/usr/bin/ruby18 extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for rb_thread_blocking_region()... no
checking for ruby_thread_has_gvl_p()... no
checking for ruby_native_thread_p()... no
checking for rb_thread_call_with_gvl()... no
creating extconf.h
creating Makefile

make
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c DynamicLibrary.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c Buffer.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c MemoryPointer.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c StructByReference.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c StructByValue.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c StructLayout.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c Thread.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c DataConverter.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c Types.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c AbstractMemory.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c Platform.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c ArrayType.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c ffi.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 
-DRUBY_EXTCONF_H=\extconf.h\  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=i686 
-pipe -fno-strict-aliasing  -fPIC  -I/usr/lib/libffi-3.0.9/include   
-Wno-declaration-after-statement   -c LastError.c
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. 

Re: [gentoo-user] installing ffi gem

2011-04-21 Thread Alan McKinnon
Apparently, though unproven, at 01:57 on Friday 22 April 2011, Matt Harrison 
did opine thusly:

 I've just tried setting up a new development machine and I'm stuck
 installing the ffi gem for ruby.


The gentoo dev most active with ruby gems is flameeyes. He's a prolific 
blogger and documents everything he is going through in full painful detail 
here:

http://blog.flameeyes.eu

The most current info on how to deal with gems on gentoo will be found there 
IMHO




 
 According to a bug I found (can't find it now I'm afraid) the gentoo devs
 do not support installing gems via the gem command and directed the user
 to use the dev-ruby/ffi package. Unfortnately, that package is absolutely
 ancient and unusable.
 
 Anyway, I've got the ffi library install from portage, but when I try to
 `gem install ffi`, I get the output seen in the attachement.
 
 The same gem installs just fine on an ubuntu box, but...well it's ubuntu
 and I don't want to use that (besides it's just a VM).
 
 I'd really like to get this fixed so I can get started on a new project.
 
 Grateful for any help
 
 Matt

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] installing ffi gem

2011-04-21 Thread kashani

On 4/21/2011 4:57 PM, Matt Harrison wrote:

I've just tried setting up a new development machine and I'm stuck installing 
the ffi
gem for ruby.

According to a bug I found (can't find it now I'm afraid) the gentoo devs do not
support installing gems via the gem command and directed the user to use the
dev-ruby/ffi package. Unfortnately, that package is absolutely ancient and 
unusable.

Anyway, I've got the ffi library install from portage, but when I try to `gem 
install
ffi`, I get the output seen in the attachement.

The same gem installs just fine on an ubuntu box, but...well it's ubuntu and I 
don't
want to use that (besides it's just a VM).

I'd really like to get this fixed so I can get started on a new project.

Grateful for any help

Matt


Install RVM, make it part of your shell, then install the ruby and gems 
of your choice. That way you leave the system Ruby alone and can develop 
with the versions you want. You can even do multiple versions of ruby 
and various gems for working on many different projects at once.


https://rvm.beginrescueend.com/rvm/install/

	It really is the simplest way to build a dev environment and maintain 
it for Ruby.


kashani



Re: [gentoo-user] installing ffi gem

2011-04-21 Thread Matt Harrison
On Thu, Apr 21, 2011 at 05:33:05PM -0700, kashani wrote:
 On 4/21/2011 4:57 PM, Matt Harrison wrote:
  I've just tried setting up a new development machine and I'm stuck 
  installing the ffi
  gem for ruby.
 
  According to a bug I found (can't find it now I'm afraid) the gentoo devs 
  do not
  support installing gems via the gem command and directed the user to use the
  dev-ruby/ffi package. Unfortnately, that package is absolutely ancient and 
  unusable.
 
  Anyway, I've got the ffi library install from portage, but when I try to 
  `gem install
  ffi`, I get the output seen in the attachement.
 
  The same gem installs just fine on an ubuntu box, but...well it's ubuntu 
  and I don't
  want to use that (besides it's just a VM).
 
  I'd really like to get this fixed so I can get started on a new project.
 
  Grateful for any help
 
  Matt
 
 Install RVM, make it part of your shell, then install the ruby and gems 
 of your choice. That way you leave the system Ruby alone and can develop 
 with the versions you want. You can even do multiple versions of ruby 
 and various gems for working on many different projects at once.
 
 https://rvm.beginrescueend.com/rvm/install/
 
   It really is the simplest way to build a dev environment and maintain 
 it for Ruby.
 
 kashani

Thanks Alan and kashani,

I'll take a look at both, if I can't find anything on his blog I'll give RVM a 
go :)

Thanks guys


pgpCgGlsLJ4Rk.pgp
Description: PGP signature


Re: [gentoo-user] installing ffi gem

2011-04-21 Thread skiarxon
That one? http://bugs.gentoo.org/327835