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

Example shell scripts don't run properly on Ubuntu

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.6
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: