Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7558117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:17:33+00:00 2026-05-30T12:17:33+00:00

Linux-based (Ubuntu 11.10) Before my computer crashed I had a binary on my computer:

  • 0

Linux-based (Ubuntu 11.10)

Before my computer crashed I had a binary on my computer: ./program that was given to me without the source. This file executed just fine. When my hard drive failed, I started with a fresh install and tried to run this binary on the same computer. It now fails with:

bash: ./program: cannot execute binary file

Running ldd on the file gives a bit more information:

/usr/bin/ldd: line 161: /lib64/ld-linux-x86-64.so.2: cannot execute binary file
not a dynamic executable

I have a second computer where the binary runs and ldd gives the output:

./program:
    linux-vdso.so.1 =>  (0x00007fffdad5e000)
    libz.so.1 => /lib64/libz.so.1 (0x00000039a1400000)
    libstdc++.so.6 => /usr/local/gcc/gcc-4.5.1/lib64/libstdc++.so.6 (0x00007fce82c7a000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fce829f6000)
    libgcc_s.so.1 => /usr/local/gcc/gcc-4.5.1/lib64/libgcc_s.so.1 (0x00007fce827e1000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fce82452000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fce82f7f000)

Is there a way I can tell what is needed so I can get my program running again? I know that anything installed before the crash was done with apt-get so I don’t think it requires anything unique that’s not in the repository.

Localized question?

I admit that this specific question may be particular to me – but the question still stands in the general sense. Given a binary only, how do you determine which libraries it needs to run?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:17:34+00:00Added an answer on May 30, 2026 at 12:17 pm

    Run file with the program as argument on the computer where ldd works. It will tell you if the binary is built for 32 or 64 bits. You probably have to install the 32 bit compatibility libraries before it will run, on debian/ubuntu this is called ia32-libs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.
Is there any IDE (linux based) for PHP that can be used to debug?
I understand the Android OS is based on Linux. Does that mean the G1
First, context: I'm trying to create a command-line-based tool (Linux) that requires login. Accounts
I'm using an ARM Cortex-A8 based processor called as i.MX515. There is linux Ubuntu
First off I'm on Ubuntu linux if that matters. I have a simple project
I recently refreshed my Linux installation with Mint 9 (based on Ubuntu 10.04) 64-bit,
I have a couple of linux (ubuntu) servers that work together every night to
Do repositories exist for non-GPL-licensed code for Linux, especially Debian-based systems such as Ubuntu?
Context: OS: Linux (Ubuntu), language: C (actually Lua, but this should not matter). I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.