LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unix/Xenix programs wonīt run in Linux (https://www.linuxquestions.org/questions/linux-software-2/unix-xenix-programs-won%B4t-run-in-linux-183434/)

trupillo 05-19-2004 04:53 PM

Unix/Xenix programs wonīt run in Linux
 
I have software that was running under Xenix-386...for example Msbasic compiler.....when I install it in Linux I get an error " ..canīt run binary files..."

Under Linux what is meant by a "binary" file....everyting in a computer is interpreted in binary format !
:tisk:

dorian33 05-20-2004 01:22 PM

Have you compiled this program?
If not, if you just install it as binary code its quite obvious that it can't be run (different incompatible kernel)
This time 'binary' means not readable with text editor (not shell script). I don't know Xenix executable format but looks like it is not ELF one.

Thymox 05-20-2004 07:02 PM

Programmes are rarely written for specific hardware, they are written for the OS. Just because the architechtures are compatible (in that they both have the same instruction sets) doesn't mean that applications will work natively. If that were the case, we could all run Linux apps on Windows, and vice versa. The programmes are written to a specific kernel, and so will either need recompiling for another kernel, or will need an "emulation" package to run them semi-natively.

If you look at a programme, such as, /bin/echo you will notice that it contains the characters ELF near the beginning - this is an ELF binary. Many OSs use ELF binaries, but they are not necessarily compatible - for example, a binary executable programme written for AROS on x86 hardware will not work natively under Linux even though they are both x86 and they are both ELF binaries. It was written for AROS, not Linux. As mentioned above, shell scripts are different. Since these are simply text files, they should be executable by any OS that runs the correct interpreter (for want of a better way to explain it), such as BASH or CSH.

trupillo 05-21-2004 12:13 PM

Thanks for the explanation....In other words I should compile them under RED HAT 9.0 which is what I have....Sshould I use a c compiler ? gcc ? c++?
If I donīt have the source then Iīm stuck !

What would be the best solution for a bunch of applications I have written in Basic that run under Windows, Dos and Xenix using various compilers and interpreters for Basic such as Qbasic, Msbasic, Gwbasic, Basica..?


All times are GMT -5. The time now is 09:51 AM.