I have a pro-c file which is compiled on UNIX.

The script logins to oracle DB and interacts with DB and update some values there in some tables.

We are migrating from UNIX to Openshift Container Platform where the containers are Docker based. The images are httpd based which inturn is debian:stretch-slim based.

Can we really run the UNIX compiled pro-c file on httpd image which is Debian based?

When I try to run it, I'm getting Not found error though the file is in the same directory.

The name of the file is flp0200

I tried executing it using ./flp0200 and flp0200 . But none of them worked.

Can anyone point me in right direction?

closed as unclear what you're asking by Rui F Ribeiro, roaima, Stephen Harris, Jeff Schaller, G-Man Dec 6 at 6:35

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • How do you try to run it? Where (in the filesystem) is the executable? What's the exact error message? Please edit your question to add this information - don't reply in a comment. – roaima Dec 5 at 16:55
  • 1
    I see your edit. Let's try again. How do you try to run it (full and precise command line)? What's the exact and complete error message? – roaima Dec 5 at 20:18
  • I'm not aware of any error message as terse as Not found. Even on AIX. What is the FULL AND COMPLETE error message? – roaima Dec 5 at 22:23

No, you will not be able to run a program compiled on AIX, on a debian box.

Recompile from source on the target platform.

  • Even with the same architecture? – roaima Dec 6 at 12:58
  • Correct. AIX executables do not use the ELF link binary format, for one thing. Secondly, any program written from a non-AIX system will have system calls defined for libraries the compiler had available to it, not the AIX specific versions of those libraries. Scripting and interpreted languages are much easier to work with cross-platform. – Don Simon Dec 7 at 17:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.