You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Jon Anstey <ja...@gmail.com> on 2011/04/01 16:02:07 UTC

Error running Apollo on Ubuntu

Running latest Apollo on Ubuntu gives me this:

janstey@duffman:/opt/fuse/apache-apollo-1.0-SNAPSHOT/bin$ ./apollo
exec: 151: -a: not found

To get it working I found two solutions...

1. Switch script to use bash since "-a" is bash only, or
2. Remove the "-a apollo" bit from the exec line

-- 
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen

Re: Error running Apollo on Ubuntu

Posted by Jon Anstey <ja...@gmail.com>.
Yep, that works for me :)

On Fri, Apr 1, 2011 at 12:31 PM, Hiram Chirino <hi...@hiramchirino.com>wrote:

> Hi Jon
>
> Could you test out the snapshot I just deployed?
>
> http://repository.apache.org/service/local/artifact/maven/redirect?r=snapshots&g=org.apache.activemq&a=apache-apollo&v=1.0-SNAPSHOT&e=tar.gz&c=unix-distro
>
> I've added some detection in the start script to see if 'exec -a' is
> supported.  Should work on linux now.
>
> Regards,
> Hiram
>
> FuseSource
> Web: http://fusesource.com/
>
>
>
>
> On Fri, Apr 1, 2011 at 10:09 AM, Jon Anstey <ja...@gmail.com> wrote:
> > I wonder would it show on the symlink? I've seen sh symlinked to bash
> > before... on Ubuntu it points to "dash"
> >
> > janstey@duffman:~$ ls -la /bin/sh
> > lrwxrwxrwx 1 root root 4 2011-01-05 15:34 /bin/sh -> dash
> >
> > On Fri, Apr 1, 2011 at 11:34 AM, Hiram Chirino <hiram@hiramchirino.com
> >wrote:
> >
> >> Do you know if there is way of detecting if the /bin/sh is bash or
> >> not? Would be nice to use the -a feature if it's available.
> >>
> >> Regards,
> >> Hiram
> >>
> >> FuseSource
> >> Web: http://fusesource.com/
> >>
> >>
> >>
> >>
> >> On Fri, Apr 1, 2011 at 10:02 AM, Jon Anstey <ja...@gmail.com> wrote:
> >> > Running latest Apollo on Ubuntu gives me this:
> >> >
> >> > janstey@duffman:/opt/fuse/apache-apollo-1.0-SNAPSHOT/bin$ ./apollo
> >> > exec: 151: -a: not found
> >> >
> >> > To get it working I found two solutions...
> >> >
> >> > 1. Switch script to use bash since "-a" is bash only, or
> >> > 2. Remove the "-a apollo" bit from the exec line
> >> >
> >> > --
> >> > Cheers,
> >> > Jon
> >> > ---------------
> >> > FuseSource
> >> > Email: jon@fusesource.com
> >> > Web: fusesource.com
> >> > Twitter: jon_anstey
> >> > Blog: http://janstey.blogspot.com
> >> > Author of Camel in Action: http://manning.com/ibsen
> >> >
> >>
> >
> >
> >
> > --
> > Cheers,
> > Jon
> > ---------------
> > FuseSource
> > Email: jon@fusesource.com
> > Web: fusesource.com
> > Twitter: jon_anstey
> > Blog: http://janstey.blogspot.com
> > Author of Camel in Action: http://manning.com/ibsen
> >
>



-- 
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen

Re: Error running Apollo on Ubuntu

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Hi Jon

Could you test out the snapshot I just deployed?
http://repository.apache.org/service/local/artifact/maven/redirect?r=snapshots&g=org.apache.activemq&a=apache-apollo&v=1.0-SNAPSHOT&e=tar.gz&c=unix-distro

I've added some detection in the start script to see if 'exec -a' is
supported.  Should work on linux now.

Regards,
Hiram

FuseSource
Web: http://fusesource.com/




On Fri, Apr 1, 2011 at 10:09 AM, Jon Anstey <ja...@gmail.com> wrote:
> I wonder would it show on the symlink? I've seen sh symlinked to bash
> before... on Ubuntu it points to "dash"
>
> janstey@duffman:~$ ls -la /bin/sh
> lrwxrwxrwx 1 root root 4 2011-01-05 15:34 /bin/sh -> dash
>
> On Fri, Apr 1, 2011 at 11:34 AM, Hiram Chirino <hi...@hiramchirino.com>wrote:
>
>> Do you know if there is way of detecting if the /bin/sh is bash or
>> not? Would be nice to use the -a feature if it's available.
>>
>> Regards,
>> Hiram
>>
>> FuseSource
>> Web: http://fusesource.com/
>>
>>
>>
>>
>> On Fri, Apr 1, 2011 at 10:02 AM, Jon Anstey <ja...@gmail.com> wrote:
>> > Running latest Apollo on Ubuntu gives me this:
>> >
>> > janstey@duffman:/opt/fuse/apache-apollo-1.0-SNAPSHOT/bin$ ./apollo
>> > exec: 151: -a: not found
>> >
>> > To get it working I found two solutions...
>> >
>> > 1. Switch script to use bash since "-a" is bash only, or
>> > 2. Remove the "-a apollo" bit from the exec line
>> >
>> > --
>> > Cheers,
>> > Jon
>> > ---------------
>> > FuseSource
>> > Email: jon@fusesource.com
>> > Web: fusesource.com
>> > Twitter: jon_anstey
>> > Blog: http://janstey.blogspot.com
>> > Author of Camel in Action: http://manning.com/ibsen
>> >
>>
>
>
>
> --
> Cheers,
> Jon
> ---------------
> FuseSource
> Email: jon@fusesource.com
> Web: fusesource.com
> Twitter: jon_anstey
> Blog: http://janstey.blogspot.com
> Author of Camel in Action: http://manning.com/ibsen
>

Re: Error running Apollo on Ubuntu

Posted by Jon Anstey <ja...@gmail.com>.
I wonder would it show on the symlink? I've seen sh symlinked to bash
before... on Ubuntu it points to "dash"

janstey@duffman:~$ ls -la /bin/sh
lrwxrwxrwx 1 root root 4 2011-01-05 15:34 /bin/sh -> dash

On Fri, Apr 1, 2011 at 11:34 AM, Hiram Chirino <hi...@hiramchirino.com>wrote:

> Do you know if there is way of detecting if the /bin/sh is bash or
> not? Would be nice to use the -a feature if it's available.
>
> Regards,
> Hiram
>
> FuseSource
> Web: http://fusesource.com/
>
>
>
>
> On Fri, Apr 1, 2011 at 10:02 AM, Jon Anstey <ja...@gmail.com> wrote:
> > Running latest Apollo on Ubuntu gives me this:
> >
> > janstey@duffman:/opt/fuse/apache-apollo-1.0-SNAPSHOT/bin$ ./apollo
> > exec: 151: -a: not found
> >
> > To get it working I found two solutions...
> >
> > 1. Switch script to use bash since "-a" is bash only, or
> > 2. Remove the "-a apollo" bit from the exec line
> >
> > --
> > Cheers,
> > Jon
> > ---------------
> > FuseSource
> > Email: jon@fusesource.com
> > Web: fusesource.com
> > Twitter: jon_anstey
> > Blog: http://janstey.blogspot.com
> > Author of Camel in Action: http://manning.com/ibsen
> >
>



-- 
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen

Re: Error running Apollo on Ubuntu

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Do you know if there is way of detecting if the /bin/sh is bash or
not? Would be nice to use the -a feature if it's available.

Regards,
Hiram

FuseSource
Web: http://fusesource.com/




On Fri, Apr 1, 2011 at 10:02 AM, Jon Anstey <ja...@gmail.com> wrote:
> Running latest Apollo on Ubuntu gives me this:
>
> janstey@duffman:/opt/fuse/apache-apollo-1.0-SNAPSHOT/bin$ ./apollo
> exec: 151: -a: not found
>
> To get it working I found two solutions...
>
> 1. Switch script to use bash since "-a" is bash only, or
> 2. Remove the "-a apollo" bit from the exec line
>
> --
> Cheers,
> Jon
> ---------------
> FuseSource
> Email: jon@fusesource.com
> Web: fusesource.com
> Twitter: jon_anstey
> Blog: http://janstey.blogspot.com
> Author of Camel in Action: http://manning.com/ibsen
>