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 6036685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:57:40+00:00 2026-05-23T05:57:40+00:00

I’ve produced a C++ program in Eclipse running on Redhat, which compiles and runs

  • 0

I’ve produced a C++ program in Eclipse running on Redhat, which compiles and runs fine through Eclipse.

I thought that to run it separately to Eclipse you use the build artifact which is in the directory set via the project’s properties.

However this executable doesn’t run (I know it’s an executable as I’ve set it to be an executable via the project’s properties and it shows up as such via the ls command and the file explorer).

When attempting to run it using the executable’s name, I get the error:

bash: <filename>: command not found

When attempting to run it as a bash file:

<filename>: <filename>: cannot execute binary file

And when running it with “./” before the file name, nothing happens. Nothing new appears in the running processes and the terminal just goes to the next line as though I’d just pressed enter with no command.

Any help?

  • 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-23T05:57:41+00:00Added an answer on May 23, 2026 at 5:57 am

    You’ve more or less figure out the first error yourself. when you just run <filename> , it is not in your PATH environment variable, so you get “command not found”. You have to give a full or relative path when to the program in order to run it, even if you’re in the same directory as the program – you run it with ./<filename>

    When you do run your program, it appears to just exit as soon as you start it – we can’t help much with that without knowing what the program does or see some code.

    You can do some debugging, e.g. after the program just exits run echo $? to see if it exited with a particular exit value, or run your program using the strace tool to see what it does (or do it the usual way, insert printf debugging, or debug it with gdb)

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

Sidebar

Related Questions

Whenever I run any jython program in Eclipse, I got the following error in
I've created a program in Eclipse / MinGW / C (project type: C) which
My friend produced a small proof-of-concept assembler that worked on x86. I decided to
I think the file that is produced is an .asm file, any idea how
I'm using two commercial libraries that are produced by the same vendor, called VendorLibA
I have a program that works correctly on my development machine but produces an
I am working in Linux, Eclipse CDT, g++, with Boost library. Having existing program
I have 12 .csv files produced by another program. The .csv files contain numeric
I'm writing a program on Linux in C to analyze core files produced from
I have a C# program that uses a production grammar to generate 3D models

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.