X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o-
Date: Mon, 28 Mar 2011 21:33:43 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Bash: Cannot execute binary file
Message-ID: <20110329013343.GD12793@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <31263793.post@talk.nabble.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <31263793.post@talk.nabble.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, Mar 28, 2011 at 06:27:57PM -0700, independentt wrote:
>
>Ok here is my problem I used to be able to run bIRCD on a shell before. But
>now first time I try cygwin, I WGET
>http://ircd.bircd.org/bewareircd-linux.tar.gz and unzip it, edit the config
>files. And now I try to execute it using (.) ./BIRCD and it says BASH:
>Cannot execute binary file. I have full access to the file and when I type
>file bircd it says ELF 32-bit LSB executable, Intel 80386, version 1
>(GNU/Linux), statically linked, stripped.

If you go to http://cygwin.com/ and look under "...isn't it?"  you'll see:

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.

If file says "ELF 32-bit LSB executable, Intel 80386 version 1
(GNU/Linux)", it means it's a Linux file.  That means that you have to
build a Cygwin/Windows version of bircd.  What you have is not a Cygwin
version.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

