You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Frank Scholten (JIRA)" <ji...@apache.org> on 2011/01/30 14:58:44 UTC

[jira] Created: (MAHOUT-601) Syntax error when running build-reuters.sh script

Syntax error when running build-reuters.sh script
-------------------------------------------------

                 Key: MAHOUT-601
                 URL: https://issues.apache.org/jira/browse/MAHOUT-601
             Project: Mahout
          Issue Type: Bug
          Components: Clustering
    Affects Versions: 0.4
            Reporter: Frank Scholten
             Fix For: 0.5
         Attachments: MAHOUT-601.patch

When running examples/bin/build-reuters.sh from the root of the checked out mahout source tree I get the following syntax error:

examples/bin/build-reuters.sh: 28: Syntax error: "(" unexpected (expecting "fi")

This is because the script uses array initialization syntax supported by the bash shell, algorithm=( kmeans lda ), but it's shebang line uses the bourne shell: #!/bin/sh

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MAHOUT-601) Syntax error when running build-reuters.sh script

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated MAHOUT-601:
----------------------------------

    Attachment: MAHOUT-601.patch

> Syntax error when running build-reuters.sh script
> -------------------------------------------------
>
>                 Key: MAHOUT-601
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-601
>             Project: Mahout
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 0.4
>            Reporter: Frank Scholten
>             Fix For: 0.5
>
>         Attachments: MAHOUT-601.patch
>
>
> When running examples/bin/build-reuters.sh from the root of the checked out mahout source tree I get the following syntax error:
> examples/bin/build-reuters.sh: 28: Syntax error: "(" unexpected (expecting "fi")
> This is because the script uses array initialization syntax supported by the bash shell, algorithm=( kmeans lda ), but it's shebang line uses the bourne shell: #!/bin/sh

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MAHOUT-601) Syntax error when running build-reuters.sh script

Posted by "Sean Owen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated MAHOUT-601:
-----------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> Syntax error when running build-reuters.sh script
> -------------------------------------------------
>
>                 Key: MAHOUT-601
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-601
>             Project: Mahout
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 0.4
>            Reporter: Frank Scholten
>             Fix For: 0.5
>
>         Attachments: MAHOUT-601.patch
>
>
> When running examples/bin/build-reuters.sh from the root of the checked out mahout source tree I get the following syntax error:
> examples/bin/build-reuters.sh: 28: Syntax error: "(" unexpected (expecting "fi")
> This is because the script uses array initialization syntax supported by the bash shell, algorithm=( kmeans lda ), but it's shebang line uses the bourne shell: #!/bin/sh

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MAHOUT-601) Syntax error when running build-reuters.sh script

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated MAHOUT-601:
----------------------------------

    Status: Patch Available  (was: Open)

Added patch which changes shebang line to use bash.

> Syntax error when running build-reuters.sh script
> -------------------------------------------------
>
>                 Key: MAHOUT-601
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-601
>             Project: Mahout
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 0.4
>            Reporter: Frank Scholten
>             Fix For: 0.5
>
>         Attachments: MAHOUT-601.patch
>
>
> When running examples/bin/build-reuters.sh from the root of the checked out mahout source tree I get the following syntax error:
> examples/bin/build-reuters.sh: 28: Syntax error: "(" unexpected (expecting "fi")
> This is because the script uses array initialization syntax supported by the bash shell, algorithm=( kmeans lda ), but it's shebang line uses the bourne shell: #!/bin/sh

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MAHOUT-601) Syntax error when running build-reuters.sh script

Posted by "Sebastian Schelter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988599#action_12988599 ] 

Sebastian Schelter commented on MAHOUT-601:
-------------------------------------------

Patch is commited. Thank you.

> Syntax error when running build-reuters.sh script
> -------------------------------------------------
>
>                 Key: MAHOUT-601
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-601
>             Project: Mahout
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 0.4
>            Reporter: Frank Scholten
>             Fix For: 0.5
>
>         Attachments: MAHOUT-601.patch
>
>
> When running examples/bin/build-reuters.sh from the root of the checked out mahout source tree I get the following syntax error:
> examples/bin/build-reuters.sh: 28: Syntax error: "(" unexpected (expecting "fi")
> This is because the script uses array initialization syntax supported by the bash shell, algorithm=( kmeans lda ), but it's shebang line uses the bourne shell: #!/bin/sh

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.