LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
LinkBack Search this Thread
Old 05-19-2004, 04:53 PM   #1
trupillo
LQ Newbie
 
Registered: Apr 2004
Location: Colombia
Distribution: RED HAT 9.0
Posts: 16

Rep: Reputation: 0
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 !
 
Old 05-20-2004, 01:22 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 577

Rep: Reputation: 32
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.
 
Old 05-20-2004, 07:02 PM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
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.
 
Old 05-21-2004, 12:13 PM   #4
trupillo
LQ Newbie
 
Registered: Apr 2004
Location: Colombia
Distribution: RED HAT 9.0
Posts: 16

Original Poster
Rep: Reputation: 0
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..?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What type of programs is needed for linux or unix? Nad0xFF Linux - General 3 04-03-2005 03:08 AM
Running SCO Xenix/Unix Program on Redhat 8.0? DWA007 Linux - Software 4 07-21-2004 12:16 AM
video lan player won`t run tony_stevens Linux - Software 1 05-14-2004 08:42 PM
Can I run Unix software on Linux? njbrain Linux - Software 10 03-17-2004 12:19 AM
unix interactive 4.1.1's programs on linux hquevedo_amaris Linux - General 2 11-17-2001 10:57 AM


All times are GMT -5. The time now is 08:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration