SliTaz SliTaz Forum

You are not logged in.

#1 2014-07-18 07:04:29

Sonali
Member
Registered: 2014-07-18
Posts: 1

Cross Compiling Ruby for ARM.

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

#2 2014-07-19 01:53:59

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Cross Compiling Ruby for ARM.

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]