librelist archives

« back to archive

Building Policeman for Linux with VirtualBox

Building Policeman for Linux with VirtualBox

From:
Satoshi Asakawa
Date:
2010-05-08 @ 23:11
Hi all,

I've tried to do Devyn and Cecil's suggestion. ;-)

Look at a tiny note:
http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md

VirtualBox is awesome! Although my build is not so good so far.
Because it can't launch normal Shoes opening window.
It includes Ruby 1.9.0 (not 1.9.1).
etc...

But anyway, I got Shoes for Linux developing environment on my Windows
laptop! ;-)

BTW, a question:
How can I update `ruby1.9-dev` to include Ruby 1.9.1 ?

ashbb

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Cecil Coupe
Date:
2010-05-09 @ 00:20
also verify the gem is installed.

gem --version 
gem list --local


On Sun, 2010-05-09 at 08:11 +0900, Satoshi Asakawa wrote:
> Hi all,
> 
> I've tried to do Devyn and Cecil's suggestion. ;-)
> 
> Look at a tiny note: 
> http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md
> 
> VirtualBox is awesome! Although my build is not so good so far.
> Because it can't launch normal Shoes opening window.
> It includes Ruby 1.9.0 (not 1.9.1).
> etc...
> 
> But anyway, I got Shoes for Linux developing environment on my Windows
> laptop! ;-)
> 
> BTW, a question:
> How can I update `ruby1.9-dev` to include Ruby 1.9.1 ?
> 
> ashbb

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Daniel Heath
Date:
2010-05-09 @ 01:34
Personally I avoid the debian package manager for ruby related packages.
There's been a conflict of opinions between rubygems and debian for
several years now that has meant that the packages are always
troublesome.

Install from source if you only need one version of ruby. If you need
multiple versions of ruby on your machine, install something like RVM
and have it download & compile all the versions you need.

Installing from source also means that you know you have the include files.

On Sun, May 9, 2010 at 10:20 AM, Cecil Coupe <ccoupe@cableone.net> wrote:
> also verify the gem is installed.
>
> gem --version
> gem list --local
>
>
> On Sun, 2010-05-09 at 08:11 +0900, Satoshi Asakawa wrote:
>> Hi all,
>>
>> I've tried to do Devyn and Cecil's suggestion. ;-)
>>
>> Look at a tiny note:
>> http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md
>>
>> VirtualBox is awesome! Although my build is not so good so far.
>> Because it can't launch normal Shoes opening window.
>> It includes Ruby 1.9.0 (not 1.9.1).
>> etc...
>>
>> But anyway, I got Shoes for Linux developing environment on my Windows
>> laptop! ;-)
>>
>> BTW, a question:
>> How can I update `ruby1.9-dev` to include Ruby 1.9.1 ?
>>
>> ashbb
>
>
>

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Devyn Cairns
Date:
2010-05-09 @ 02:50
Well, my favorite package manager is Pacman… but Arch isn't exactly friendly
to people who are new to Linux, or UNIX in general.

On Sat, May 8, 2010 at 6:34 PM, Daniel Heath <daniel.r.heath@gmail.com>wrote:

> Personally I avoid the debian package manager for ruby related packages.
> There's been a conflict of opinions between rubygems and debian for
> several years now that has meant that the packages are always
> troublesome.
>
> Install from source if you only need one version of ruby. If you need
> multiple versions of ruby on your machine, install something like RVM
> and have it download & compile all the versions you need.
>
> Installing from source also means that you know you have the include files.
>
> On Sun, May 9, 2010 at 10:20 AM, Cecil Coupe <ccoupe@cableone.net> wrote:
> > also verify the gem is installed.
> >
> > gem --version
> > gem list --local
> >
> >
> > On Sun, 2010-05-09 at 08:11 +0900, Satoshi Asakawa wrote:
> >> Hi all,
> >>
> >> I've tried to do Devyn and Cecil's suggestion. ;-)
> >>
> >> Look at a tiny note:
> >> http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md
> >>
> >> VirtualBox is awesome! Although my build is not so good so far.
> >> Because it can't launch normal Shoes opening window.
> >> It includes Ruby 1.9.0 (not 1.9.1).
> >> etc...
> >>
> >> But anyway, I got Shoes for Linux developing environment on my Windows
> >> laptop! ;-)
> >>
> >> BTW, a question:
> >> How can I update `ruby1.9-dev` to include Ruby 1.9.1 ?
> >>
> >> ashbb
> >
> >
> >
>



-- 
   ~devyn

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Cecil Coupe
Date:
2010-05-09 @ 04:07
Smiles. I said Ubuntu Linux in VirtualBox on XP would be 99.8% pure
Linux.  I'll not argue the virtues of which package management system or
style is the correct choice. That would be 100% Linux discussion. 

Ashbb used apt-get for the shoes dependencies and he built 1.9.1 and
shoes from source. That's his choice we have to debug. He has a 'cant
load stringio' error message. That suggests to me that when some part of
shoes issues 'require "stringio"' the ruby standard library can't be
found at that time. Shoes dynamically redefines all kinds of things in
the system process context and in the ruby environment. It is possible
to compile and link a shoes that won't run. 

I suspect the rakefile first. Ruby can be installed in /usr[bin|lib]
or /usr/local or /opt depending whose internet instructions you followed
and whether it is 1.8.x vs 1.9.x, a complexity _why didn't get around to
solving. OSX folks have the same problem with macports installed (/opt?)
vs hand installed/built libraries. The rake file doesn't always find the
proper libs and generate the correct paths and the start up env vars
(.sh, .bat/exe, dmg/plist) may not be correct. That's where I'd look to
fix ashbb's issue. 



On Sun, 2010-05-09 at 11:34 +1000, Daniel Heath wrote:
> Personally I avoid the debian package manager for ruby related packages.
> There's been a conflict of opinions between rubygems and debian for
> several years now that has meant that the packages are always
> troublesome.
> 
> Install from source if you only need one version of ruby. If you need
> multiple versions of ruby on your machine, install something like RVM
> and have it download & compile all the versions you need.
> 
> Installing from source also means that you know you have the include files.
> 
> On Sun, May 9, 2010 at 10:20 AM, Cecil Coupe <ccoupe@cableone.net> wrote:
> > also verify the gem is installed.
> >
> > gem --version
> > gem list --local
> >
> >
> > On Sun, 2010-05-09 at 08:11 +0900, Satoshi Asakawa wrote:
> >> Hi all,
> >>
> >> I've tried to do Devyn and Cecil's suggestion. ;-)
> >>
> >> Look at a tiny note:
> >> http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md
> >>
> >> VirtualBox is awesome! Although my build is not so good so far.
> >> Because it can't launch normal Shoes opening window.
> >> It includes Ruby 1.9.0 (not 1.9.1).
> >> etc...
> >>
> >> But anyway, I got Shoes for Linux developing environment on my Windows
> >> laptop! ;-)
> >>
> >> BTW, a question:
> >> How can I update `ruby1.9-dev` to include Ruby 1.9.1 ?
> >>
> >> ashbb
> >
> >
> >

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Satoshi Asakawa
Date:
2010-05-09 @ 14:00
Hi Cecil, Daniel and Devyn,

Thank you for your comments. They are very much helpful for me.
So at last, my build for Linux (0.r1416) could be launched fine!

Look at some pics:
http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md

I'm going to check all built-in samples asap. ;-)

BTW, how can I make `Shoes-0.r1416.run` file?

Cheers,
ashbb

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Cecil Coupe
Date:
2010-05-10 @ 04:11
On Sun, 2010-05-09 at 23:00 +0900, Satoshi Asakawa wrote:
> Hi Cecil, Daniel and Devyn,
> 
> Thank you for your comments. They are very much helpful for me.
> So at last, my build for Linux (0.r1416) could be launched fine!

What was the problem and what was the solution? Please tell us.

> 
> Look at some pics:
> http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md
> 
> I'm going to check all built-in samples asap. ;-)
> 
> BTW, how can I make `Shoes-0.r1416.run` file?

I believe 'rake package' is how to build a news shoes for distribution. 
'rake -T' will list the targets, BTW. How well it works? I don't think
we know. 

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Satoshi Asakawa
Date:
2010-05-10 @ 16:23
Hi Cecil et al,

> What was the problem and what was the solution?
I didn't know to need `configure --enable-shared` option to make Ruby shared
library from source. So, I used libruby.so from ruby1.9-dev. That was the
problem.

I reverted Rakefile a little:
http://github.com/ashbb/shoes/commit/43354c910373d508b43f88843157c6bfc46c1bec

Then worked well. :)

> I believe 'rake package' is how to build a news shoes for distribution.
Oh, thanks!
Good information for me. That's the same command as Windows.
I read Rakefile again and found `rake installer` option for Linux and it
used `makeself` shell script.

At last, I could make the distribution package for Linux: Shoes-0.r1416.run
http://www.rin-shun.com/shoes/index.html

Look at a tiny note added `Package Shoes`:
http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md

Cheers,
ashbb

ps. I didn't use `rake package` in this time. But I guess it works well.

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Devyn Cairns
Date:
2010-05-11 @ 03:27
On Sat, May 8, 2010 at 9:07 PM, Cecil Coupe <ccoupe@cableone.net> wrote:

> Smiles. I said Ubuntu Linux in VirtualBox on XP would be 99.8% pure
> Linux.  I'll not argue the virtues of which package management system or
> style is the correct choice. That would be 100% Linux discussion.
>
>
Haha, well, just putting that out there xD

-- 
   ~devyn

Re: [shoes] Building Policeman for Linux with VirtualBox

From:
Cecil Coupe
Date:
2010-05-09 @ 00:13
On Sun, 2010-05-09 at 08:11 +0900, Satoshi Asakawa wrote:
> Hi all,
> 
> I've tried to do Devyn and Cecil's suggestion. ;-)
> 
> Look at a tiny note: 
> http://github.com/ashbb/shoes_hack_note/blob/master/md/hack026.md
> 
> VirtualBox is awesome! Although my build is not so good so far.
> Because it can't launch normal Shoes opening window.
> It includes Ruby 1.9.0 (not 1.9.1).
> etc...
> 
> But anyway, I got Shoes for Linux developing environment on my Windows
> laptop! ;-)
> 
> BTW, a question:
> How can I update `ruby1.9-dev` to include Ruby 1.9.1 ?

Welcome to debian package management!

sudo apt-get remove ruby1.9.dev 
sudo apt-get install ruby1.9.1.dev
then in the shoes directory
rake clean 
rake

Double check on the name ruby.9.1.dev name first though.
and of course
$ man apt-get

I suspect that the compile/install of ruby went to /usr/local and the
rake file or the shoes-bin script doesn't find/use the right shared
library.