Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 !
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.
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.
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..?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.