[Ipopt-tickets] Re: [Ipopt] #44: ./configure errors under cygwin

Ipopt coin-trac at coin-or.org
Sat Sep 29 15:58:36 EDT 2007


#44: ./configure errors under cygwin
--------------------------------+-------------------------------------------
  Reporter:  ylebbah            |       Owner:  andreasw         
      Type:  defect             |      Status:  assigned         
  Priority:  normal             |   Component:  Ipopt            
   Version:  3.3 (C++ Version)  |    Severity:  normal           
Resolution:                     |    Keywords:  cygwin, configure
--------------------------------+-------------------------------------------
Changes (by andreasw):

  * status:  new => assigned
  * owner:  ipopt-team => andreasw

Old description:

> Hi Ipopt community,
>
> I am trying to install Ipopt under cygwin. After downloading third party
> packages and installing the required compilers, ./configure declares
> immediately errors without doing anything. Here is the messages :
>
> Administrateur at PC1 ~/COIN/Coin-Ipopt
> $ ./configure
> ./configure: line 20: $'\r': command not found
> ./configure: line 28: syntax error near unexpected token `elif'
> '/configure: line 28: `elif test -n "${BASH_VERSION+set}" && (set -o
> posix) >/dev/null 2>&1; then
>
> Administrateur at PC1 ~/COIN/Coin-Ipopt
>
> Any help is welcome.
>
> Best regards,
>
> ---
> Yahia Lebbah
> http://www.polytech.unice.fr/~lebbah/

New description:

 Hi Ipopt community,

 I am trying to install Ipopt under cygwin. After downloading third party
 packages and installing the required compilers, ./configure declares
 immediately errors without doing anything. Here is the messages :

 {{{
 Administrateur at PC1 ~/COIN/Coin-Ipopt
 $ ./configure
 ./configure: line 20: $'\r': command not found
 ./configure: line 28: syntax error near unexpected token `elif'
 '/configure: line 28: `elif test -n "${BASH_VERSION+set}" && (set -o
 posix) >/dev/null 2>&1; then

 Administrateur at PC1 ~/COIN/Coin-Ipopt
 }}}

 Any help is welcome.

 Best regards,

 ---
 Yahia Lebbah
 http://www.polytech.unice.fr/~lebbah/

Comment:

 Hi Yahia,

 It seems that your configure file is corrupted.  Please have a look into
 this file (e.g., with "{{{less configure}}}") and check if you see
 something like the following:

 {{{
 #! /bin/sh
 # From configure.ac 0.9.
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for Ipopt 3.3dev.
 #
 # Report bugs to <http://projects.coin-or.org/Ipopt/newticket>.
 #
 # Copyright (C) 2003 Free Software Foundation, Inc.
 # This configure script is free software; the Free Software Foundation
 # gives unlimited permission to copy, distribute and modify it.
 #
 #
 # Copyright 2006, 2007 International Business Machines and others.
 # All Rights Reserved.
 # This file is part of the open source package Coin which is distributed
 # under the Common Public License.
 ## --------------------- ##
 ## M4sh Initialization.  ##
 ## --------------------- ##

 # Be Bourne compatible
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   emulate sh
   NULLCMD=:
   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   # is contrary to our usage.  Disable this feature.
   alias -g '${1+"$@"}'='"$@"'
 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   set -o posix
 fi
 DUALCASE=1; export DUALCASE # for MKS sh
 }}}

 It is also possible, that there is confusion between the UNIX and the DOS
 text format, depending on how you obtained the code.  I recommend to use
 subversion ({{{svn}}}), this will usually give you all files in the
 correct format.

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/44#comment:1>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list