Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-38680

bad interpreter: No such file or directory

    Details

    • Liferay Contributor's Agreement:
      Accept

      Description

      The Plugin SDK shell scripts generate exceptions: bad interpreter No such file or directory.

      The cause of the problem is due the presence of the ^M characters at the end of the lines. These should be removed for Linux / Mac (i.e. script.sh) based files.

      Please be aware extra character is present on more than just the shell files. For example, they can be seen on XML files.

      The undesirable character can be stripped from source files by using the dos2unix command; however, it should be noted, many distr.'s don't include it so another workaround is needed.

      To be a help to others, an alternative solution can be found using the instructions should from the below link.

      http://alvinalexander.com/blog/post/linux-unix/shell-script-error-bad-interpreter-no-such-file

      This problem is similar to LPS-15284.

      Kind regards and with respect,

      Stephen

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              berean Stephen Davis (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                7 years, 1 week, 5 days ago

                Packages

                Version Package