Cygwin - cannot execute binary file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cygwin - cannot execute binary file
# 1  
Old 07-16-2012
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
# 2  
Old 07-16-2012
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.
# 3  
Old 07-16-2012
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
As already suggested, recompile from source. In that specific case, that would be Comrad - Browse /0.1 at SourceForge.net
# 5  
Old 07-16-2012
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.
This User Gave Thanks to Tribe For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Xterm logging on Cygwin/X - binary data in log file.

I have Cygwin/X installed on Windows 7. In an xterm, I turned on logging via Main Options > Log to File. When I open my log file with Vim I get a warning that it might be binary. Looking through the file I see what I think are VT datastream escape characters. It makes it hard to use the... (1 Reply)
Discussion started by: gctaylor
1 Replies

2. Red Hat

Cannot execute binary file

Hi, When i was trying to execute binary file i am getting the below " cannot execute binary file " error message." My Unix Version is : Red Hat Enterprise Linux Server release 5.1 (Tikanga) Logged in as Sudo user and $PATH Value is below ... (1 Reply)
Discussion started by: Nandy
1 Replies

3. Fedora

Cannot execute binary file

Hi all, Probably somewhat of an obvous problem here but i'm no pro. I just bought a PengPod1000 at pengpod.com On it I have an image of Fedora 18. I am trying to run an application I wrote for Fedora 14 32 bit desktop on this tablet. With all permissions setup using chmod but I get... (7 Replies)
Discussion started by: fedora18
7 Replies

4. Linux

Cannot execute binary file

I'm trying to install JasperReports Server 4.1 on Linux Ubuntu (release 11.04) as root and have following message: -bash: ./jasperreports-server-cp-4.1.0-linux-x64-installer.run: cannot execute binary file Is any idea what should I do in order to install Jasper? Previously, I installed... (6 Replies)
Discussion started by: pots06
6 Replies

5. UNIX for Dummies Questions & Answers

Cannot execute binary file

As root, I receive the error message, "cannot execute binary file" when running some commands such as /usr/bin/clear or /usr/sbin/brctl or /usr/sbin/lsof. The system is running RHEL5.5. File permissions are 755. noexec is NOT set on the partitions where these files live. I've spent a... (6 Replies)
Discussion started by: SmithJ
6 Replies

6. UNIX for Dummies Questions & Answers

convert a .tr file to binary in cygwin

I would like to convert a .tr file to a binary file to use for trace purposes. Can anyone provide any insight? (0 Replies)
Discussion started by: sparklezilla3
0 Replies

7. SuSE

can not execute binary file

When I am trying to execute a script created by Perl2exe in Linux SLES 8.1 running with virtual machine on mainframe s/390 ....I am getting "cannot execute binary file".... In the linux server which are not in mainframe the scripts are fine..... Thanks for help (1 Reply)
Discussion started by: Anu10
1 Replies

8. Shell Programming and Scripting

cannot execute binary file

HI, i am trying to execute one .bin file which is a pre-installed (not compiled by me). But I am getting the error "cannot execute binary file".I checked the permissions and everything is ok. also I checked ldd <bin-filename> andit showed a msg "not a dynamic executable" Can anyone help in... (4 Replies)
Discussion started by: bhag281
4 Replies

9. Solaris

How to execute a binary file in solaris?

How to execute a binary file in solaris? I used ./setup.bin . I got the error ./setup.bin not found. (4 Replies)
Discussion started by: agarwal
4 Replies

10. Linux

cannot execute binary file

We are getting one error when we execute the binary file below mentioned, and ownership goes to root:nobody, how to resolve this problem. sh /home/pub/bin/awk: cannot execute binary file :confused: Pls help me out . (2 Replies)
Discussion started by: durgaprasadr13
2 Replies
Login or Register to Ask a Question

Featured Tech Videos