It's angry! The file is clearly present, but the hint can not find, what is this ghost?

Source: Internet
Author: User

The file is clearly present, but the hint does not exist. The complete path has also been tried. Depressed in ...

Reply content:

The file is clearly present, but the hint does not exist. The complete path has also been tried. Depressed in ...

The installation script for Phalcon is bash, the first line is #!/bin/bash[LF] , which means to look for this interpreter when executing directly (or sudo) /bin/bash .

If, for reasons like git cloning, the file line break unexpectedly changed [CR][LF] to the Windows style ...
Then, when the script executes, Sudo will still only remove the Unix line break [LF] , and then try to find /bin/bash[CR] the file as an interpreter, which of course is impossible to exist.

Use this command to check whether the first line of the file CR(0x0D) LF(0x0A) ends with:
cat install | head -n 1 | od -t x1

(If the reason is wrong, please find another point of failure)

In fact, you look at the first line of the install file and you know it.
#!/path/to/somewhere
This file doesn't exist, does it?

cat -A install

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.