yep, that works

On Sun, Oct 17, 2010 at 9:28 PM, Martin Logan <[email protected]> wrote:
> Googling it appears to be a problem with ubuntu using dash instead of
> bash... Below is what I found.
>
> m...@atlantis:~/code/mpeg4ip-1.5.0.1$ ./bootstrap
> dir: .
> SDL appears to be installed
> ./bootstrap: 76: Syntax error: Bad fd number
>
> This “Bad fd number” error occurs because Ubuntu Edgy uses dash as /bin/sh.
> In Ubuntu 6.06 “Dapper Drake” and earlier versions used bash instead, which
> ran scripts in a special backwards-compatibility mode that wasn’t truly
> backwards compatible (i.e. some bash-specific code was still accepted, even
> though it wasn’t part of the POSIX 1003.2 and 1003.2a specifications for
> shells). Ubuntu Edgy is the first version of Ubuntu that symlinks /bin/sh to
> /bin/dash instead of /bin/bash. The packages in the repositories have been
> checked for compatibility, but this may still cause problems with
> improperly-written third-party shell scripts.
>
> Confused yet? There’s a simple solution: run the script through bash
> yourself.
>
> m...@atlantis:~/code/mpeg4ip-1.5.0.1$ bash bootstrap
>
> On Sun, Oct 17, 2010 at 9:31 PM, Dave Peticolas <[email protected]> wrote:
>>
>> Here's what I'm getting on the latest Ubuntu:
>>
>> sh faxien-piggyback-launcher-V2.sh /tmp/erlware /home/dave/otp/lib/erlang
>> faxien-piggyback-launcher-V2.sh: 25: Syntax error: Bad fd number
>>
>> On Sun, Oct 17, 2010 at 5:54 PM, Martin Logan <[email protected]>
>> wrote:
>> > I have updated and placed a new version up on the google code site. Here
>> > is
>> > the link:
>> > http://faxien.googlecode.com/files/faxien-piggyback-launcher-V2.sh
>> >
>> > This launcher wants either 1 or 2 arguments. If one argument it is the
>> > location you wish to install faxien, this location must contain the
>> > appropriate erts runtime. For example after having installed erlang into
>> > /usr/local/lib/erlang you could run
>> >
>> > sh faxien-piggyback-launcher-V2.sh /usr/local/lib/erlang
>> >
>> > The two argument for is for when you want to install faxien into a
>> > location
>> > other than where you have previously installed Erlang. So, after having
>> > installed Erlang into /usr/local/lib/erlang but desiring to install
>> > faxien
>> > and all subsequent packages into $HOME/erlware you could run
>> >
>> > sh faxien-piggyback-launcher-V2.sh   $HOME/erlware
>> > /usr/local/lib/erlang
>> >
>> > Where the second argument is the place the launcher uses to find the
>> > appropriate pre-built erlang runtime on your machine.
>> >
>> > Please let me know if there are problems. I have tested on Mac and i686
>> > Linux and all seems to work well for the basic use cases.
>> >
>> > Cheers,
>> > Martin
>> >
>> > On Sat, Oct 16, 2010 at 9:40 PM, Martin Logan <[email protected]>
>> > wrote:
>> >>
>> >> Thanks - I see the issue - one in code and one in the way your are
>> >> using
>> >> it - which is valid. I will update and add a much better usage. I will
>> >> release a new version tomorrow.
>> >>
>> >> Thanks.
>> >>
>> >> Cheers,
>> >> Martin
>> >>
>> >> On Sat, Oct 16, 2010 at 8:30 PM, Dave Peticolas <[email protected]>
>> >> wrote:
>> >>>
>> >>> Here's what I am getting:
>> >>>
>> >>> [/tmp/fx] sh faxien-piggyback-launcher-V1.sh
>> >>> /home/dave/otp/bin/erl
>> >>> [: 20: 0: unexpected operator
>> >>> Usage: faxien-piggyback-launcher-V1.sh [erlang_install_root_dir]
>> >>> [/tmp/fx] sh faxien-piggyback-launcher-V1.sh /tmp/fx/faxien
>> >>> /home/dave/otp/bin/erl
>> >>> [: 20: 1: unexpected operator
>> >>> Usage: faxien-piggyback-launcher-V1.sh [erlang_install_root_dir]
>> >>>
>> >>> I have to run but I can test a little more later tonight.
>> >>>
>> >>> dave
>> >>>
>> >>> On Sat, Oct 16, 2010 at 6:05 PM, Martin Logan <[email protected]>
>> >>> wrote:
>> >>> > Please test this for me. I am using it for the conference. Just make
>> >>> > sure
>> >>> > that it installs correctly.
>> >>> >
>> >>> > This launcher is not a full target system. It expects that you
>> >>> > already
>> >>> > have
>> >>> > erlang installed and that erl and erlc are present on your path.
>> >>> > This
>> >>> > way we
>> >>> > don't have to worry about people with OS versions we don't support.
>> >>> > Please
>> >>> > try it out by downloading faxien-piggyback-launcher-V1.sh from
>> >>> > code.google.com/p/faxien and let me know if it works for you.
>> >>> >
>> >>> > Cheers,
>> >>> > Martin
>> >>> >
>> >>> > P.S if you already have faxien installed please delete it before
>> >>> > trying
>> >>> > this
>> >>> > out by using faxien rr faxien.
>> >>> >
>> >>> > --
>> >>> > You received this message because you are subscribed to the Google
>> >>> > Groups
>> >>> > "erlware-dev" group.
>> >>> > To post to this group, send email to [email protected].
>> >>> > To unsubscribe from this group, send email to
>> >>> > [email protected].
>> >>> > For more options, visit this group at
>> >>> > http://groups.google.com/group/erlware-dev?hl=en.
>> >>> >
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> >>> Groups
>> >>> "erlware-dev" group.
>> >>> To post to this group, send email to [email protected].
>> >>> To unsubscribe from this group, send email to
>> >>> [email protected].
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/erlware-dev?hl=en.
>> >>>
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "erlware-dev" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/erlware-dev?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "erlware-dev" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/erlware-dev?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "erlware-dev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/erlware-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"erlware-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/erlware-dev?hl=en.

Reply via email to