F16 how to install "less" ruby gem?

Vít Ondruch vondruch at redhat.com
Tue Feb 21 21:55:43 UTC 2012


Dne 21.2.2012 18:30, Michał Piotrowski napsal(a):
> Hi,
>
> I want to install "less" gem. I switched to root account, and typed
>
> # gem install less
> Fetching: therubyracer-0.9.10.gem (100%)
> Building native extensions.  This could take a while...
>
> ...
>
> And it's all - install process stops. When I check what is happening
> with ps I get
>
> ps -aux :
> root     18047  0.0  0.1 166076  2164 pts/1    S    18:15   0:00 su
> root     18048  0.0  0.1 116496  2144 pts/1    S    18:15   0:00 bash
> root     18062  6.1  3.7 129296 77444 pts/1    S+   18:15   0:16
> /usr/bin/ruby /usr/bin/gem install less
> root     18408  0.0  0.0 107084  1000 pts/1    S+   18:16   0:00 make
> root     18409  0.0  0.0 107124   816 pts/1    S+   18:16   0:00 g++
> -I. -I/usr/lib/ruby/1.8/libv8/v8/include
> -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux
> -I. -Wall -g -rdynamic -fPIC -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing
> -fPIC -c v8_value.cpp
> root     18410  0.3  1.0 147628 21780 pts/1    S+   18:16   0:00
> /usr/libexec/gcc/x86_64-redhat-linux/4.6.2/cc1plus -quiet -I . -I
> /usr/lib/ruby/1.8/libv8/v8/include -I /usr/lib64/ruby/1.8/x86_64-linux
> -I /usr/lib64/ruby/1.8/x86_64-linux -I . -D_GNU_SOURCE
> -D_FORTIFY_SOURCE=2 v8_value.cpp -quiet -dumpbase v8_value.cpp -m64
> -mtune=generic -march=x86-64 -auxbase v8_value -g -g -O2 -Wall
> -fexceptions -fstack-protector -fno-strict-aliasing -fPIC --param
> ssp-buffer-size=4 -o -
> root     18411  0.0  0.0      0     0 pts/1    Z+   18:16   0:00 [as]<defunct>
>
> It seems that as is in zombie state. Could anyone advise where to
> start looking for the solution to this problem?
> Where it can be a problem? Gem itself or toolchain?
>

The problem will be the gem and its dependencies probably. Since the 
therubyracer gem bundles v8 javascript engine, it may take some time to 
compile. The /ext directory of the therubyracer gem might be of interest 
to you.

However, since this is nice example of bundling, I would suggest you to 
take a look for some alternative to less gem.


Vit


More information about the devel mailing list