You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Josh Tynjala <jo...@gmail.com> on 2016/06/10 15:07:49 UTC

Cannot run Apache FlexJS from NPM

I tried installing FlexJS from NPM, but when I try to run asjsc, I get the
following error in my terminal.

/usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or directory

I'm on Mac 10.11.5.

Any ideas?

- Josh

Re: Cannot run Apache FlexJS from NPM

Posted by Alex Harui <ah...@adobe.com>.
Oh and I should mention that the clue is in this output:

/usr/local/bin/asjsc: /bin/sh^M: bad interpreter...


The ^M is the CR character.  It is being used as a part of the file name
and not as a line break.

-Alex

On 6/10/16, 10:54 AM, "Alex Harui" <ah...@adobe.com> wrote:

>OK.  Om, I haven't looked at how NPM packaging works but I think you may
>need to change CRLF to LF before placing the non .bat files into a
>package.  Our main Ant build scripts do that with fixcrlf.
>
>-Alex
>
>On 6/10/16, 10:50 AM, "Josh Tynjala" <jo...@gmail.com> wrote:
>
>>I changed the line endings from CRLF to LF (from Windows to Unix) in the
>>copy that NPM installed locally, and it started working correctly. Good
>>call, Alex.
>>
>>- Josh
>>
>>On Fri, Jun 10, 2016 at 8:47 AM, OmPrakash Muppirala
>><bi...@gmail.com>
>>wrote:
>>
>>> I haven't really tested it on a mac.  Can you help figure out a fix for
>>> this?
>>>
>>> Thanks,
>>> Om
>>> On Jun 10, 2016 8:42 AM, "Alex Harui" <ah...@adobe.com> wrote:
>>>
>>>> That sounds like a crlf issue.
>>>>
>>>> Sent from my LG G3, an AT&T 4G LTE smartphone
>>>>
>>>> ------ Original message------
>>>> From: Josh Tynjala
>>>> Date: Fri, Jun 10, 2016 8:08 AM
>>>> To: dev@flex.apache.org;
>>>> Subject:Cannot run Apache FlexJS from NPM
>>>>
>>>> I tried installing FlexJS from NPM, but when I try to run asjsc, I get
>>>>the
>>>> following error in my terminal.
>>>>
>>>> /usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or
>>>> directory
>>>>
>>>> I'm on Mac 10.11.5.
>>>>
>>>> Any ideas?
>>>>
>>>> - Josh
>>>>
>>>
>


Re: Cannot run Apache FlexJS from NPM

Posted by Josh Tynjala <jo...@gmail.com>.
I updated download_dependencies.js to fix the line endings during
installation. If we add more scripts to the NPM version in the future (such
as asnodec), they will need to be added to the array of files that get
fixed.

That should have been enough to get this working on Mac when the NPM module
is built on Windows. However, it seems that this merged pull request broke
some other things too:

https://github.com/apache/flex-utilities/pull/8

Hopefully, pkovac will be able to make a few tweaks.

- Josh

On Fri, Jun 10, 2016 at 10:54 AM, Alex Harui <ah...@adobe.com> wrote:

> OK.  Om, I haven't looked at how NPM packaging works but I think you may
> need to change CRLF to LF before placing the non .bat files into a
> package.  Our main Ant build scripts do that with fixcrlf.
>
> -Alex
>
> On 6/10/16, 10:50 AM, "Josh Tynjala" <jo...@gmail.com> wrote:
>
> >I changed the line endings from CRLF to LF (from Windows to Unix) in the
> >copy that NPM installed locally, and it started working correctly. Good
> >call, Alex.
> >
> >- Josh
> >
> >On Fri, Jun 10, 2016 at 8:47 AM, OmPrakash Muppirala
> ><bi...@gmail.com>
> >wrote:
> >
> >> I haven't really tested it on a mac.  Can you help figure out a fix for
> >> this?
> >>
> >> Thanks,
> >> Om
> >> On Jun 10, 2016 8:42 AM, "Alex Harui" <ah...@adobe.com> wrote:
> >>
> >>> That sounds like a crlf issue.
> >>>
> >>> Sent from my LG G3, an AT&T 4G LTE smartphone
> >>>
> >>> ------ Original message------
> >>> From: Josh Tynjala
> >>> Date: Fri, Jun 10, 2016 8:08 AM
> >>> To: dev@flex.apache.org;
> >>> Subject:Cannot run Apache FlexJS from NPM
> >>>
> >>> I tried installing FlexJS from NPM, but when I try to run asjsc, I get
> >>>the
> >>> following error in my terminal.
> >>>
> >>> /usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or
> >>> directory
> >>>
> >>> I'm on Mac 10.11.5.
> >>>
> >>> Any ideas?
> >>>
> >>> - Josh
> >>>
> >>
>
>

Re: Cannot run Apache FlexJS from NPM

Posted by Alex Harui <ah...@adobe.com>.
OK.  Om, I haven't looked at how NPM packaging works but I think you may
need to change CRLF to LF before placing the non .bat files into a
package.  Our main Ant build scripts do that with fixcrlf.

-Alex

On 6/10/16, 10:50 AM, "Josh Tynjala" <jo...@gmail.com> wrote:

>I changed the line endings from CRLF to LF (from Windows to Unix) in the
>copy that NPM installed locally, and it started working correctly. Good
>call, Alex.
>
>- Josh
>
>On Fri, Jun 10, 2016 at 8:47 AM, OmPrakash Muppirala
><bi...@gmail.com>
>wrote:
>
>> I haven't really tested it on a mac.  Can you help figure out a fix for
>> this?
>>
>> Thanks,
>> Om
>> On Jun 10, 2016 8:42 AM, "Alex Harui" <ah...@adobe.com> wrote:
>>
>>> That sounds like a crlf issue.
>>>
>>> Sent from my LG G3, an AT&T 4G LTE smartphone
>>>
>>> ------ Original message------
>>> From: Josh Tynjala
>>> Date: Fri, Jun 10, 2016 8:08 AM
>>> To: dev@flex.apache.org;
>>> Subject:Cannot run Apache FlexJS from NPM
>>>
>>> I tried installing FlexJS from NPM, but when I try to run asjsc, I get
>>>the
>>> following error in my terminal.
>>>
>>> /usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or
>>> directory
>>>
>>> I'm on Mac 10.11.5.
>>>
>>> Any ideas?
>>>
>>> - Josh
>>>
>>


Re: Cannot run Apache FlexJS from NPM

Posted by Josh Tynjala <jo...@gmail.com>.
I changed the line endings from CRLF to LF (from Windows to Unix) in the
copy that NPM installed locally, and it started working correctly. Good
call, Alex.

- Josh

On Fri, Jun 10, 2016 at 8:47 AM, OmPrakash Muppirala <bi...@gmail.com>
wrote:

> I haven't really tested it on a mac.  Can you help figure out a fix for
> this?
>
> Thanks,
> Om
> On Jun 10, 2016 8:42 AM, "Alex Harui" <ah...@adobe.com> wrote:
>
>> That sounds like a crlf issue.
>>
>> Sent from my LG G3, an AT&T 4G LTE smartphone
>>
>> ------ Original message------
>> From: Josh Tynjala
>> Date: Fri, Jun 10, 2016 8:08 AM
>> To: dev@flex.apache.org;
>> Subject:Cannot run Apache FlexJS from NPM
>>
>> I tried installing FlexJS from NPM, but when I try to run asjsc, I get the
>> following error in my terminal.
>>
>> /usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or
>> directory
>>
>> I'm on Mac 10.11.5.
>>
>> Any ideas?
>>
>> - Josh
>>
>

Re: Cannot run Apache FlexJS from NPM

Posted by OmPrakash Muppirala <bi...@gmail.com>.
I haven't really tested it on a mac.  Can you help figure out a fix for
this?

Thanks,
Om
On Jun 10, 2016 8:42 AM, "Alex Harui" <ah...@adobe.com> wrote:

> That sounds like a crlf issue.
>
> Sent from my LG G3, an AT&T 4G LTE smartphone
>
> ------ Original message------
> From: Josh Tynjala
> Date: Fri, Jun 10, 2016 8:08 AM
> To: dev@flex.apache.org;
> Subject:Cannot run Apache FlexJS from NPM
>
> I tried installing FlexJS from NPM, but when I try to run asjsc, I get the
> following error in my terminal.
>
> /usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or directory
>
> I'm on Mac 10.11.5.
>
> Any ideas?
>
> - Josh
>

Re: Cannot run Apache FlexJS from NPM

Posted by Alex Harui <ah...@adobe.com>.
That sounds like a crlf issue.

Sent from my LG G3, an AT&T 4G LTE smartphone

------ Original message------
From: Josh Tynjala
Date: Fri, Jun 10, 2016 8:08 AM
To: dev@flex.apache.org;
Subject:Cannot run Apache FlexJS from NPM

I tried installing FlexJS from NPM, but when I try to run asjsc, I get the
following error in my terminal.

/usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or directory

I'm on Mac 10.11.5.

Any ideas?

- Josh