delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <1348032215.75798.YahooMailClassic@web111505.mail.gq1.yahoo.com> |
Date: | Tue, 18 Sep 2012 22:23:35 -0700 (PDT) |
From: | Richard Haney <rfhaney AT yahoo DOT com> |
Subject: | bash output: ./configure: line 16: $'\r': command not found |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q8J5O2Tk007335 |
I am trying to get set up to build the Gnu Scientific Library using Cygwin bash for my command-line processor. I eventually plan to use the tdm64-1 copy of MinGW gcc 4.6.1 to do the building: $ gcc --version gcc.exe (tdm64-1) 4.6.1 But I have not gotten to using the gcc tools yet. (I also want to eventually rebuild all or parts of the gcc package optimized for my Intel i5 processor.) So in particular, I wanted to run ./configure --help , to find out what options I need to use to build the Gnu Scientific Library, besides what is said in the INSTALL file. (For example, I am wondering about revising the "make install" defaults.) But first I ran, and got: $ ./configure --version ./configure: line 16: $'\r': command not found ./configure: line 31: syntax error near unexpected token `newline' '/configure: line 31: ` ;; I recall having a similar problem on another laptop (probably Cygwin on Windows XP), and I recall that I fixed the problem (after a terribly long, horrendous search for info and finally realizing that '\r' in C is a carriage return; but the details were a long time ago) Anyway, I believe I copied my Cygwin.bat (with the fix) from my old laptop to my new one, the one I'm now using (with Windows 7 and an Intel i5 processor). Here is the Cygwin.bat file listing: @echo off C: chdir C:\cygwin\bin rem bash --login -i bash --login -i -o igncr Evidently the "igncr" is supposed to tell bash to ignore carriage returns. But on this system, it apparently is not ignoring carriage returns. I even searched the bash.info file for the string "igncr", but I found no such string. Even the old bash.info file seems to lack that info. However, I did find a web page http://sourceware.org/ml/cygwin-announce/2011-02/msg00027.html that discusses the matter, but that does not seem to help in this case. So what's the problem? Has my more recently installed Cygwin dropped the "igncr" option capability from the bash command line? Here is my current bash version: $ bash --version GNU bash, version 4.1.10(4)-release (i686-pc-cygwin) -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |