Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux executable file prompts what to do with No such file or directory

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you the Linux executable file tips No such file or directory how to do, the content is easy to understand, I hope you can learn, after learning there will be gains, the following let the editor to take a look at it.

Recently, I was executing an executable file using the Linux operating system, and the result was prompted by No such file or directory, indicating that I was confused.

. / tshrfbash:. / tshref: No such file or directory

Looking at the file information, you can see that the file exists and can be executed.

-rwxr-xr-x 1 yuan yuan 20581 April 29 2004 tshref

After consulting the data, the reason is that the number of system bits does not match the number of lib library bits required by the executable.

Printing system information with uname command, it is found that the system is a 64-bit system.

Uname-aLinux yuan-vm 3.13.0-32-generic # 57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86 "64 GNU/Linux

Use the file command to view the file information and find that it is a 32-bit executable file.

File. / tshref./tshref: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

To run 32-bit programs on 64-bit systems, you need to install the 32-bit lib library.

For Ubuntu users, you can use the following command to install.

Sudo apt-get install ia32-libsReading package lists... DoneBuilding dependency tree Reading state information... DonePackage ia32-libs is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceHowever the following packages replace it: lib32z1 lib32ncurses5 lib32bz2-1.0

The required libraries may not be found during the process, but there will be several alternative packages, so choose to install one of them.

Sudo apt-get install lib32bz2-1.0lib32bz2-1.0

Then you can run the previous executable file normally.

The above is about Linux executable file prompting No such file or directory what to do, if you have learned knowledge or skills, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report