From: Alberich de megres Date: 2012-12-07T06:52:28+09:00 Subject: Re: Cross compiling --f46d044630d27d0a8704d035fb9f Content-Type: text/plain; charset=ISO-8859-1 Hi Ryan, yes, I run: $ gem install ... I'm trying to crosscompile gitlab: https://github.com/gitlabhq/gitlabhq The install instructions are here: https://github.com/gitlabhq/gitlabhq/blob/stable/doc/install/installation.md I though I should run gem from bash. How should I run it? My goal is to cross compile gems, not to compile them on the target system. Is there any alternative? thanks! On Wed, Dec 5, 2012 at 9:18 PM, Ryan Davis wrote: > > On Dec 5, 2012, at 03:03 , Alberich de megres > wrote: > > > Hi Carlo, > > > > I'm using gem and bundle to install software. And is at this point where > I'm lost. > > There's no extension directory and no extconf.rb file. > > > > I could identify a Rakefile, and a Gemfile. > > Tried setting up somethin like: > > export CC=arm-linux-gcc, and so > > export PATH=/path/to/cross-compiled/ruby/bin:$PATH > > then gem install > > > > But i'm getting something: > > /dest/bin/gem: line 8: require: command not found > > /dest/bin/gem: line 9: require: command not found > > /dest/bin/gem: line 10: require: command not found > > dest/bin/gem: line 12: required_version: command not found > > [...] > > that looks like it is being run by bash, not ruby. > > > --f46d044630d27d0a8704d035fb9f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Ryan,

yes, I run:
$ gem install ...

I'm trying to crosscompile gitlab:
https://github.com/gitlabhq/gitla= bhq

The install instructions are here:
https://github.com/gitlabhq/gitlabhq/blob/stable/doc/install/inst= allation.md


I though I should run gem from bas= h.=A0How should I run it?

My goal is to cross comp= ile gems, not to compile them on the target system.=A0Is there any alternat= ive?

thanks!
=
On Wed, Dec 5, 2012 at 9:18 PM, Ryan Davis <= span dir=3D"ltr"><ryand-ruby@zenspider.com> wrote:

On Dec 5, 2012, at 03:03 , Alberich de megres <alberich2k5@gmail.com> wrote:

> Hi Carlo,
>
> I'm using gem and bundle to install software. And is at this point= where I'm lost.
> There's no extension directory and no extconf.rb file.
>
> I could identify a Rakefile, and a Gemfile.
> Tried setting up somethin like:
> export CC=3Darm-linux-gcc, and so
> export PATH=3D/path/to/cross-compiled/ruby/bin:$PATH
> then gem install
>
> But i'm getting something:
> /dest/bin/gem: line 8: require: command not found
> /dest/bin/gem: line 9: require: command not found
> /dest/bin/gem: line 10: require: command not found
> dest/bin/gem: line 12: required_version: command not found
> [...]

that looks like it is being run by bash, not ruby.



--f46d044630d27d0a8704d035fb9f--