Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th September 2010, 12:58 AM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
windows_xp_2003firefox
How to execute .x86 binary file?

I found a Linux .x86 binary file that I've been looking for, but not sure what to do with it. Does this (*.x86) binary file format seem like something that could simply be run by command, or something that would need to be compiled first? There is not much information that I could find regarding the particularly file.
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory
Reply With Quote
  #2  
Old 24th September 2010, 01:24 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxkonqueror
Re: How to execute .x86 binary file?

Please state exact name of file.

Most binary executables (*.bin, *.run) can be run from CLI from folder where located so:
$ cd Downloads
$ su
# sh ./VirtualBox-3.2.8-64453-Linux_x86.run

Sometimes you must make the file executable first:
# chmod +x VirtualBox-3.2.8-64453-Linux_x86.run

This all assumes a 32-bit OS for a 32-bit executable.

V
Reply With Quote
  #3  
Old 24th September 2010, 01:47 AM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
windows_xp_2003firefox
Re: How to execute .x86 binary file?

Yes, I too am familiar with those binary file types. This one, as is, was "rq-sssp-client.x86". I have never seen a binary file with .x86 extension.
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory
Reply With Quote
  #4  
Old 24th September 2010, 02:01 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxkonqueror
Re: How to execute .x86 binary file?

I would simply [attempt to] execute it as shown above. Chances are it will fly. You could find out more by:
$ file rq-sssp-client.x86

I would expect the result to be: 'Bourne shell script text executable'

If instead it's an actual ELF binary, then double-click in file manager will open it.
Quote:
I have never seen a binary file with .x86 extension.
They do seem to be rare, but I have seen them:
$ locate .x86
/usr/local/games/Loki_Demos/demos/civctp_demo/civctp_demo.x86
/usr/local/games/Loki_Demos/demos/heretic2_demo/heretic2_demo.x86
/usr/local/games/Loki_Demos/demos/heroes3_demo/heroes3_demo.x86
/usr/local/games/Loki_Demos/demos/myth2_demo/myth2_demo.x86
/usr/local/games/Loki_Demos/demos/rune_demo/rune_demo.x86

The above are mostly ELF compiled binary executables; one is an executable shell script; all can be opened from file manager (or from CLI as stated if a shell script).

V
Reply With Quote
  #5  
Old 24th September 2010, 02:32 AM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
linuxfedorafirefox
Re: How to execute .x86 binary file?

Results:
Code:
$ file rq-sssp-client.x86
rq-sssp-client.x86: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.1, stripped
It does nothing when executing from double-click in file manager. From command returns:
Code:
$ rq-sssp-client.x86
bash: rq-sssp-client.x86: command not found
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory
Reply With Quote
  #6  
Old 24th September 2010, 02:35 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxkonqueror
Re: How to execute .x86 binary file?

Since it's an ELF binary, omit 'sh' and use full PATH or PATH locator as shown above:
$ ./rq-sssp-client.x86

This assumes that you are in the folder where the target file resides. This app may also require elevated privileges.
Quote:
It does nothing when executing from double-click in file manager.
Hmm... it should run. Perhaps it's not flagged as executable (see 'chmod' above), or requires elevated privileges.

V
Reply With Quote
  #7  
Old 24th September 2010, 02:53 AM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
linuxfedorafirefox
Re: How to execute .x86 binary file?

Yes,

./rq-sssp-client.x86

appears to work, as for the program.

Now, how to find out the Linux port name for "Com1" Windows equivalent?

Thanks
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory

Last edited by bg3075; 24th September 2010 at 03:00 AM.
Reply With Quote
  #8  
Old 24th September 2010, 03:05 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxkonqueror
Re: How to execute .x86 binary file?

I would recommend that you start a new thread to ask that question: I have no idea, and those members who do may overlook the question since it's buried at the end of a thread with unrelated title.

Glad it worked.

Good Luck,
V
Reply With Quote
  #9  
Old 24th September 2010, 03:08 AM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
linuxfedorafirefox
Re: How to execute .x86 binary file?

Right... thanks, Hlingler!

OK, got that...COM1 = ttyS0

But, now it is giving a segmentation fault.
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory

Last edited by bg3075; 24th September 2010 at 03:34 AM.
Reply With Quote
  #10  
Old 24th September 2010, 06:58 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
linuxfirefox
Re: How to execute .x86 binary file?

Quote:
Originally Posted by bg3075 View Post
Right... thanks, Hlingler!

OK, got that...COM1 = ttyS0

But, now it is giving a segmentation fault.
Is it third party software not obtained from Fedora repositories? I'm guessing if you're seeing third-party software segfault, the first place to ask would be the vendor of that software or any forums for that software. Not so sure that's a specifically Fedora-related issue, unless for some reason it doesn't like the device node you'e giving it (and /dev/ttyS0 is generally the first serial device).

You could try
Code:
ls /dev/ttyS*
and try any outputted device nodes instead of ttyS0. You'll probably see at least a few -perhaps 4 - even on a box without serial ports.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #11  
Old 24th September 2010, 08:24 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: How to execute .x86 binary file?

It's a really bad idea for the software distributor to ship a dynamically linked binary - like yours - without also shipping all the libraries. Libraries change revisions all the time and become incompatible,

Try the command
ldd ./rq-sssp-client.x86
and post the results. The "ldd" command will list the libraies requires and *if present* their location.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #12  
Old 25th September 2010, 10:22 PM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
linuxfedorafirefox
Re: How to execute .x86 binary file?

Quote:
Originally Posted by stevea View Post
It's a really bad idea for the software distributor to ship a dynamically linked binary - like yours - without also shipping all the libraries. Libraries change revisions all the time and become incompatible,

Try the command
ldd ./rq-sssp-client.x86
and post the results. The "ldd" command will list the libraies requires and *if present* their location.
Here are the results:
Code:
# ldd ./rq-sssp-client.x86
	linux-gate.so.1 =>  (0x00da9000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00b0b000)
	libm.so.6 => /lib/libm.so.6 (0x004c8000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00876000)
	libc.so.6 => /lib/libc.so.6 (0x00350000)
	/lib/ld-linux.so.2 (0x0032e000)


---------- Post added at 03:22 PM CDT ---------- Previous post was at 03:07 PM CDT ----------

The program I have, "rq-sssp-client.x86" is supposed to sit idle, waiting for a request from the serial device. Is there a Linux command to have it wait for device request?
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory

Last edited by bg3075; 25th September 2010 at 10:20 PM.
Reply With Quote
Reply

Tags
binary, execute, file, x86

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot execute binary file GregoryM Using Fedora 1 20th September 2010 06:13 AM
NFS cannot execute binary file error kingquattro Using Fedora 0 17th March 2009 03:32 AM
can't execute binary file benjie1 Using Fedora 2 12th April 2008 03:58 PM
how to execute binary file on fc6 Idongnz EOL (End Of Life) Versions 3 22nd December 2006 02:31 AM


Current GMT-time: 01:45 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat