You are not logged in.
Pages: 1
I have cross compiled ruby version - ruby-2.0.0-p481 for ARM.
./configure CC=/opt/atm/bin/armv7l-timesys-linux-gnueabi-gcc LDFLAGS=-L/opt/atm/lib/ --prefix=/home/atmuser/upgrade/cortex_ruby1.8.7 --target=armv7l-timesys-linux-gnueabi --host=x86_64-unknown-linux-gnu CFLAGS='-march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mthumb' ac_cv_func_getpgrp_void=yes ac_cv_func_setpgrp_void=yes --enable-rubygems –with-openssl-dir=/opt/veederroot/lib/
It is cross-compiled properly and I checked ruby with sample program. It is working fine.
I need to install rails on ARM machine. I am trying "gem install rails" and getting following error.
-sh-4.2$ ./gem help install
ERROR: Loading command: install (LoadError)
cannot load such file -- socket
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke' for nil:NilClass
-sh-4.2$ ./gem install rails
ERROR: Loading command: install (LoadError)
cannot load such file -- socket
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
-sh-4.2$
Can anybody help me on this?
Offline
Numerous instances of error: [c]cannot load such file -- socket[/c]
[c]ruby -e 'require "socket"'[/c]
Do you have socket.so on your system?
On i486 5.0 repo:
Package libruby-extras:
/usr/lib/ruby/1.9.1/i486-linux/socket.so
If you don't have socket.so check your build log as to why socket failed to compile.
No socket.so in slitaz-arm repo due to build failure is the cause of the socket error in this thread.
http://forum.slitaz.org/topic/ruby#post-28958
Compile failure of socket.so in Cook log:
http://cook.slitaz.org/cross/arm/cooker.cgi?pkg=ruby
compiling socket
Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature.
But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry,
you cannot compile IPv6 socket classes with broken these functions.
You can try --enable-wide-getaddrinfo.
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]