Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-16-2012
Registered User
 
Join Date: Jul 2012
Location: Sweden
Posts: 50
Thanks: 24
Thanked 0 Times in 0 Posts
Question Cygwin - cannot execute binary file

Hey all,

I am using Cygwin on a machine running windows 7 64bits. I am about to use the following command:

Code:
$ faToTwoBit in.fa out.2bit

In the manual on sourceforge it mentioned:
"Download blat and faToTwoBit and set the blat_bin and fatotwobit_bin entries in config.txt to the fully qualified paths of the blat and faToTwoBit binaries." SourceForge.net: Comrad 0.1.0 - fusioncomrad

I downloaded blat and faToTwoBit and put them in /Usr/bin
But when I try to run the command I see this error:

Code:
-bash: /usr/bin/faToTwoBit: cannot execute binary file

BTW, I checked the file that I downloaded and it is an ELF 64-bit LSB executable.

Code:
$ file /usr/bin/faToTwoBit
/usr/bin/faToTwoBit: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

Anyone can help me?! :|
Tnx
Sponsored Links
    #2  
Old 07-16-2012
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,146
Thanks: 14
Thanked 401 Times in 369 Posts
Cygwin is not Linux. Quoting Cygwin main page:

Cygwin is not a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
Sponsored Links
    #3  
Old 07-16-2012
Registered User
 
Join Date: Jul 2012
Location: Sweden
Posts: 50
Thanks: 24
Thanked 0 Times in 0 Posts
Thanks jlliagre. What you're saying makes me worried! :\ And well.. it seems it's true! It's bin a while that I am using cygwin to run the unix commands and it worked perfectly so far! So, do you have any suggestion for this problem?

Tnx
    #4  
Old 07-16-2012
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,146
Thanks: 14
Thanked 401 Times in 369 Posts
As already suggested, recompile from source. In that specific case, that would be Comrad - Browse /0.1 at SourceForge.net
Sponsored Links
    #5  
Old 07-16-2012
Registered User
 
Join Date: Jul 2012
Posts: 29
Thanks: 22
Thanked 4 Times in 4 Posts
You need faToTwoBit compiled in Windows exe (PE) format but against cygwin1.dll not the native windows dll. You can't run native ELF binaries on Cygwin.

As fas as I know, the faToTwoBit application hasn't been ported yet to cygwin.

You can take a look here:

samtools installation - SEQanswers
SAMtools installation - SEQanswers

Seems to be problematic to compile under cygwin.
The Following User Says Thank You to Tribe For This Useful Post:
@man (07-18-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot execute binary file SmithJ UNIX for Dummies Questions & Answers 6 09-28-2010 08:09 AM
cannot execute binary file MarieM UNIX for Dummies Questions & Answers 3 06-14-2010 03:50 AM
convert a .tr file to binary in cygwin sparklezilla3 UNIX for Dummies Questions & Answers 0 05-01-2010 09:16 AM
can not execute binary file Anu10 SuSE 1 07-30-2009 02:36 AM
cannot execute binary file bhag281 Shell Programming and Scripting 4 03-23-2009 06:38 AM



All times are GMT -4. The time now is 11:06 PM.