Linux running run file shows cannot execute binary files

Source: Internet
Author: User
It is necessary to check if this file is a shell script, and if it is a shell script, it can be  executed in the form of "sh ***.run". If itself is an executable command program, do not need to use SH, directly plus execute permissions, execute this application can (similar to Windows. EXE file) if it is not a shell script
1. The file file name can be viewed in the files type; 2. Or:  more  filename to see if the contents of the file are readable text 3. Modify permissions chmod 777 file name or: chmod a+x file name if you do not have permission, you need the file owner or administrator user (root) to perform 4. Take note of the program path if the program is in the current directory, you can use  the./File name  form

The problem of cannot execute binary file encountered under Linux system is generally caused by the following conditions:
1. Non-root user or no Execute permission 2. The compilation environment is different (the program is copied from the other operating environment) for the first case, you can chmod +x program with the additional execution permission. For the second case, it is recommended to copy the binary package and recompile the program. 3. Hardware platform and software inconsistent, such as: 32-bit system, downloaded a 64-bit software, the results can not be executed if the result of using the file command check is data, not the executable file, then this file cannot be run directly on this system platform

Linux running run file shows cannot execute binary files

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.