Re: [shoes] is there a way to install gems manually
- From:
- Martin Evans
- Date:
- 2010-03-14 @ 22:28
I tried that but get the following am I doing something wrong, are there
any other ways to
install gems
/Applications/Shoes.app/Contents/MacOS/shoes -g serialport
/Applications/Shoes.app/Contents/MacOS/shoes: illegal option -- g
open: invalid option --
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle
identifier>] [-a <application>] [filenames] [--args arguments]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.
Options:
-a Opens with the specified application.
-b Opens with the specified application bundle identifier.
-e Opens with TextEdit.
-t Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.
-R, --reveal Selects in the Finder instead of opening.
-W, --wait-apps Blocks until the used applications are closed
(even if they were already running).
--args All remaining arguments are passed in argv to the
application's main() function instead of opened.
-n, --new Open a new instance of the application even if one
is already running.
-g, --background Does not bring the application to the foreground.
On 14 Mar 2010, at 20:35, Cecil Coupe wrote:
> --gems doesn't work but -g does
>
> ccoupe@twb:~/Projects/shoes$ dist/shoes -g list
>
> On Sun, 2010-03-14 at 19:51 +0000, Martin Evans wrote:
>> I tried that but the --gem command wasn't recognised
>> any ideas?
>>
>> On 14 Mar 2010, at 19:48, Cecil Coupe wrote:
>>
>>>> From the command line, if I remember correctly:
>>> $ shoes --gem install xxxxx
>>>
>>> That should help with a better error message about the failure.
>>>
>>> On Sun, 2010-03-14 at 17:18 +0000, Martin Evans wrote:
>>>> Is there a way to install gems manually for example by copying them
to a particular folder, I'm on
>>>> mac os x snow leopard, the gem I'm trying to use comes up with an
error when trying shoes setup
>>>> method.
>>>>
>>>
>>>
>>
>
>
Re: [shoes] is there a way to install gems manually
- From:
- Cecil Coupe
- Date:
- 2010-03-14 @ 22:57
you wanted 'shoes -g install serialport'
On Sun, 2010-03-14 at 22:28 +0000, Martin Evans wrote:
> shoes -g serialport
Re: [shoes] is there a way to install gems manually
- From:
- Devyn Cairns
- Date:
- 2010-03-14 @ 23:08
try
open /Applications/Shoes.app --args -g install serialport
On Sun, Mar 14, 2010 at 3:57 PM, Cecil Coupe <ccoupe@cableone.net> wrote:
> you wanted 'shoes -g install serialport'
>
> On Sun, 2010-03-14 at 22:28 +0000, Martin Evans wrote:
> > shoes -g serialport
>
>
--
~devyn
Re: [shoes] is there a way to install gems manually
- From:
- Martin Evans
- Date:
- 2010-03-15 @ 18:50
this partially worked as the gem was installed with no errors
but on loading the app
Shoes.setup do
gem 'serialport'
end
I get the error
Failed to load /.shoes/+gem/gems/serialport-1.0.1/lib/serialport.bundle
any ideas anyone?
On 14 Mar 2010, at 23:08, Devyn Cairns wrote:
> open /Applications/Shoes.app --args -g install serialport
Re: [shoes] is there a way to install gems manually
- From:
- Cecil Coupe
- Date:
- 2010-03-15 @ 19:19
On Mon, 2010-03-15 at 18:50 +0000, Martin Evans wrote:
> this partially worked as the gem was installed with no errors
> but on loading the app
>
> Shoes.setup do
> gem 'serialport'
> end
>
> I get the error
> Failed to load /.shoes/+gem/gems/serialport-1.0.1/lib/serialport.bundle
>
> any ideas anyone?
Suggestions:
1. Remove the "gem 'serialport' from the setup. Just use a simple
'require' like other builtin gems
2. That's a reasonable place for the gem to be installed. That gem
install requires compiling (in Linux) and that's a potential problem
with snow leopard. I'd install serialport gem in the Systems Ruby and
compare the two to make sure they are the same (starting with
the .bundle). I'd write a tiny, non shoes script to test that it works
in plain Ruby (there are several serialport gems that claim to work
better than that one).
Re: [shoes] is there a way to install gems manually
- From:
- Martin Evans
- Date:
- 2010-03-15 @ 20:10
I did a compare and they were different so copied the files over from the
system gem, but shoes just crashes
when loading the file, the ruby gem loads fine from a simple ruby script.
On 15 Mar 2010, at 19:19, Cecil Coupe wrote:
> On Mon, 2010-03-15 at 18:50 +0000, Martin Evans wrote:
>> this partially worked as the gem was installed with no errors
>> but on loading the app
>>
>> Shoes.setup do
>> gem 'serialport'
>> end
>>
>> I get the error
>> Failed to load /.shoes/+gem/gems/serialport-1.0.1/lib/serialport.bundle
>>
>> any ideas anyone?
> Suggestions:
>
> 1. Remove the "gem 'serialport' from the setup. Just use a simple
> 'require' like other builtin gems
>
> 2. That's a reasonable place for the gem to be installed. That gem
> install requires compiling (in Linux) and that's a potential problem
> with snow leopard. I'd install serialport gem in the Systems Ruby and
> compare the two to make sure they are the same (starting with
> the .bundle). I'd write a tiny, non shoes script to test that it works
> in plain Ruby (there are several serialport gems that claim to work
> better than that one).
>
Re: [shoes] is there a way to install gems manually
- From:
- Cecil Coupe
- Date:
- 2010-03-15 @ 20:49
If you still have the Shoes installed gem/files I'd check to the .so
(.dyld) to if they were compile (32 vs 64) versus the Shoes.app you're
running. the 'file' command will do that. I think there is a Finder way
too. If they mismatch then your out luck until someone fixes the snow
leopard compile problems.
On Mon, 2010-03-15 at 20:10 +0000, Martin Evans wrote:
> I did a compare and they were different so copied the files over from
the system gem, but shoes just crashes
> when loading the file, the ruby gem loads fine from a simple ruby script.
>
> On 15 Mar 2010, at 19:19, Cecil Coupe wrote:
>
> > On Mon, 2010-03-15 at 18:50 +0000, Martin Evans wrote:
> >> this partially worked as the gem was installed with no errors
> >> but on loading the app
> >>
> >> Shoes.setup do
> >> gem 'serialport'
> >> end
> >>
> >> I get the error
> >> Failed to load /.shoes/+gem/gems/serialport-1.0.1/lib/serialport.bundle
> >>
> >> any ideas anyone?
> > Suggestions:
> >
> > 1. Remove the "gem 'serialport' from the setup. Just use a simple
> > 'require' like other builtin gems
> >
> > 2. That's a reasonable place for the gem to be installed. That gem
> > install requires compiling (in Linux) and that's a potential problem
> > with snow leopard. I'd install serialport gem in the Systems Ruby and
> > compare the two to make sure they are the same (starting with
> > the .bundle). I'd write a tiny, non shoes script to test that it works
> > in plain Ruby (there are several serialport gems that claim to work
> > better than that one).
> >
>
Re: [shoes] is there a way to install gems manually
- From:
- Devyn Cairns
- Date:
- 2010-03-14 @ 22:01
huh. that's another thing we need to fix lol
On Sun, Mar 14, 2010 at 1:35 PM, Cecil Coupe <ccoupe@cableone.net> wrote:
> --gems doesn't work but -g does
>
> ccoupe@twb:~/Projects/shoes$ dist/shoes -g list
>
> On Sun, 2010-03-14 at 19:51 +0000, Martin Evans wrote:
> > I tried that but the --gem command wasn't recognised
> > any ideas?
> >
> > On 14 Mar 2010, at 19:48, Cecil Coupe wrote:
> >
> > >> From the command line, if I remember correctly:
> > > $ shoes --gem install xxxxx
> > >
> > > That should help with a better error message about the failure.
> > >
> > > On Sun, 2010-03-14 at 17:18 +0000, Martin Evans wrote:
> > >> Is there a way to install gems manually for example by copying them to
> a particular folder, I'm on
> > >> mac os x snow leopard, the gem I'm trying to use comes up with an
> error when trying shoes setup
> > >> method.
> > >>
> > >
> > >
> >
>
>
>
--
~devyn
Re: [shoes] is there a way to install gems manually
- From:
- Cecil Coupe
- Date:
- 2010-03-15 @ 00:00
It's be fixed in the current git (r1314), I was using r1157 (I was very
out of date)
On Sun, 2010-03-14 at 15:01 -0700, Devyn Cairns wrote:
> huh. that's another thing we need to fix lol
>
> On Sun, Mar 14, 2010 at 1:35 PM, Cecil Coupe <ccoupe@cableone.net>
> wrote:
> --gems doesn't work but -g does
>
> ccoupe@twb:~/Projects/shoes$ dist/shoes -g list
>
> On Sun, 2010-03-14 at 19:51 +0000, Martin Evans wrote:
>
>
> > I tried that but the --gem command wasn't recognised
> > any ideas?
> >
> > On 14 Mar 2010, at 19:48, Cecil Coupe wrote:
> >
> > >> From the command line, if I remember correctly:
> > > $ shoes --gem install xxxxx
> > >
> > > That should help with a better error message about the
> failure.
> > >
> > > On Sun, 2010-03-14 at 17:18 +0000, Martin Evans wrote:
> > >> Is there a way to install gems manually for example by
> copying them to a particular folder, I'm on
> > >> mac os x snow leopard, the gem I'm trying to use comes up
> with an error when trying shoes setup
> > >> method.
> > >>
> > >
> > >
> >
>
>
>
>
>
>
> --
> ~devyn