Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-908

Example shell scripts don't run properly on Ubuntu

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: None
    • Labels:
      None

      Description

      There is some funkiness on Ubuntu when running example/bin/ shell scripts such as classify-newsgroups.sh. It has to do w/ the use of /bin/sh at the top you get odd syntax errors:

      ./classify-20newsgroups.sh: 35: Syntax error: "(" unexpected (expecting "fi")

      If you switch it to /bin/bash or invoke it as "bash classify-newsgroups.sh" then it all works.

      I assume we can make the assumption that bash exists everywhere this is going to run?

        Attachments

          Activity

            People

            • Assignee:
              gsingers Grant Ingersoll
              Reporter:
              gsingers Grant Ingersoll
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: