Reg :: Configure error in scilab-5.1.1 source version

classic Classic list List threaded Threaded
9 messages Options
Sumit Adhikari Sumit Adhikari
Reply | Threaded
Open this post in threaded view
|

Reg :: Configure error in scilab-5.1.1 source version

Hello All,
  While configuring scilab-5.1.1, I am facing some problems.
Following is the run script :

./configure --prefix=/fshy01/uxhyu/sa1/tools/scilab-5.1.1/ \
            --with-gcc --x-includes=/usr/X11R6/include/  --x-libraries=/usr/X11R6/lib64/ \
            --with-fftw-include=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/include/ \
            --with-fftw-library=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/lib/ \
            --with-tcl-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/ \
            --with-tcl-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/ \
            --with-tk-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/  \
            --with-tk-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/  \
            --with-x               \
            --enable-build-swig --enable-build-giws --enable-static
         
Following is the error message :

checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: error: cannot run /bin/sh config/config.sub

following is the message I am getting when I am running ./config/config.sub

./config/config.sub: line 6:  : command not found
./config/config.sub: line 8:  : command not found
./config/config.sub: line 32:  : command not found
./config/config.sub: line 33:  : command not found
./config/config.sub: line 41:  : command not found
./config/config.sub: line 49:  : command not found
./config/config.sub: line 56:  : command not found
./config/config.sub: line 58:  : command not found
./config/config.sub: line 71:  : command not found
./config/config.sub: line 80:  : command not found
./config/config.sub: line 83:  : command not found
./config/config.sub: line 86: syntax error near unexpected token `in '
./config/config.sub: line 86: `  case $1 in '

Please let me know the fix


--

--------------------------------------------
Sumit Adhikari
System Design Engineer
austriamicrosystems AG
Business Unit : Automotive
Mob : 00-91-9885271710/00-91-9000161710
sylvestre sylvestre
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version

Le mercredi 14 octobre 2009 à 16:24 +0530, Sumit Adhikari a écrit :

> Hello All,
>   While configuring scilab-5.1.1, I am facing some problems.
> Following is the run script :
>
> ./configure --prefix=/fshy01/uxhyu/sa1/tools/scilab-5.1.1/ \
>             --with-gcc --x-includes=/usr/X11R6/include/
> --x-libraries=/usr/X11R6/lib64/ \
>
> --with-fftw-include=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/include/ \
>
> --with-fftw-library=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/lib/ \
>             --with-tcl-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/ \
>
> --with-tcl-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/ \
>             --with-tk-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/  \
>
> --with-tk-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/  \
>             --with-x               \
As a matter of simplicity, you should install these dependencies through
your packaging system!

>             --enable-build-swig --enable-build-giws --enable-static
--enable-static will probably not work

And
--enable-build-swig
--enable-build-giws
are probably useless for you.
(it is used to regenerate some code)

> Following is the error message :
>
> checking whether ln -s works... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for a BSD-compatible install... /usr/bin/install -c
> configure: error: cannot run /bin/sh config/config.sub
>
> following is the message I am getting when I am
> running ./config/config.sub
>
> ./config/config.sub: line 6:  : command not found
> ./config/config.sub: line 8:  : command not found
> ./config/config.sub: line 32:  : command not found
> ./config/config.sub: line 33:  : command not found
> ./config/config.sub: line 41:  : command not found
> ./config/config.sub: line 49:  : command not found
> ./config/config.sub: line 56:  : command not found
> ./config/config.sub: line 58:  : command not found
> ./config/config.sub: line 71:  : command not found
> ./config/config.sub: line 80:  : command not found
> ./config/config.sub: line 83:  : command not found
> ./config/config.sub: line 86: syntax error near unexpected token `in '
> ./config/config.sub: line 86: `  case $1 in '
What is you shell ? bash ?
(and your operating system)

Sylvestre

>
> --
>
> --------------------------------------------
> Sumit Adhikari
> System Design Engineer
> austriamicrosystems AG
> Business Unit : Automotive
> Mob : 00-91-9885271710/00-91-9000161710
--
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France




Sumit Adhikari Sumit Adhikari
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version

Simply typing ./configure is giving same problem.
shell : tcsh
uname -a : Linux wshy08.amsint.com 2.6.9-78.EL #1 Wed Jul 9 15:26:38 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Regards,
Sumit

On Wed, Oct 14, 2009 at 4:29 PM, Sylvestre Ledru <[hidden email]> wrote:
Le mercredi 14 octobre 2009 à 16:24 +0530, Sumit Adhikari a écrit :
> Hello All,
>   While configuring scilab-5.1.1, I am facing some problems.
> Following is the run script :
>
> ./configure --prefix=/fshy01/uxhyu/sa1/tools/scilab-5.1.1/ \
>             --with-gcc --x-includes=/usr/X11R6/include/
> --x-libraries=/usr/X11R6/lib64/ \
>
> --with-fftw-include=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/include/ \
>
> --with-fftw-library=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/lib/ \
>             --with-tcl-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/ \
>
> --with-tcl-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/ \
>             --with-tk-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/  \
>
> --with-tk-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/  \
>             --with-x               \
As a matter of simplicity, you should install these dependencies through
your packaging system!

>             --enable-build-swig --enable-build-giws --enable-static
--enable-static will probably not work

And
--enable-build-swig
--enable-build-giws
are probably useless for you.
(it is used to regenerate some code)

> Following is the error message :
>
> checking whether ln -s works... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for a BSD-compatible install... /usr/bin/install -c
> configure: error: cannot run /bin/sh config/config.sub
>
> following is the message I am getting when I am
> running ./config/config.sub
>
> ./config/config.sub: line 6:  : command not found
> ./config/config.sub: line 8:  : command not found
> ./config/config.sub: line 32:  : command not found
> ./config/config.sub: line 33:  : command not found
> ./config/config.sub: line 41:  : command not found
> ./config/config.sub: line 49:  : command not found
> ./config/config.sub: line 56:  : command not found
> ./config/config.sub: line 58:  : command not found
> ./config/config.sub: line 71:  : command not found
> ./config/config.sub: line 80:  : command not found
> ./config/config.sub: line 83:  : command not found
> ./config/config.sub: line 86: syntax error near unexpected token `in '
> ./config/config.sub: line 86: `  case $1 in '
What is you shell ? bash ?
(and your operating system)

Sylvestre

>
> --
>
> --------------------------------------------
> Sumit Adhikari
> System Design Engineer
> austriamicrosystems AG
> Business Unit : Automotive
> Mob : 00-91-9885271710/00-91-9000161710
--
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France






--

--------------------------------------------
Sumit Adhikari
System Design Engineer
austriamicrosystems AG
Business Unit : Automotive
Mob : 00-91-9885271710/00-91-9000161710
sylvestre sylvestre
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version


>
> On Wed, Oct 14, 2009 at 4:29 PM, Sylvestre Ledru
> <[hidden email]> wrote:
>         Le mercredi 14 octobre 2009 à 16:24 +0530, Sumit Adhikari a
>         écrit :
>        
>         > ./config/config.sub: line 80:  : command not found
>         > ./config/config.sub: line 83:  : command not found
>         > ./config/config.sub: line 86: syntax error near unexpected
>         token `in '
>         > ./config/config.sub: line 86: `  case $1 in '
>        
>         What is you shell ? bash ?
>         (and your operating system)
> Simply typing ./configure is giving same problem.
> shell : tcsh
It is probably the issue. Could you try with bash, dash or zsh ?

Thanks
Sylvestre



Sumit Adhikari Sumit Adhikari
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version

Same. Following is the result :
sh-3.00$
sh-3.00$ ./configure --prefix=/fshy01/uxhyu/sa1/tools/scilab-5.1.1/ \
>             --with-gcc --x-includes=/usr/X11R6/include/  --x-libraries=/usr/X11R6/lib64/ \
>             --with-fftw-include=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/include/ \
>             --with-fftw-library=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/lib/ \
>             --with-tcl-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/ \
>             --with-tcl-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/ \
>             --with-tk-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/  \
>             --with-tk-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/  \
>             --with-x               \
>             --enable-build-swig --enable-build-giws --enable-static
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: error: cannot run /bin/sh config/config.sub
sh-3.00$    

regards,
sumit


On Wed, Oct 14, 2009 at 4:53 PM, Sylvestre Ledru <[hidden email]> wrote:

>
> On Wed, Oct 14, 2009 at 4:29 PM, Sylvestre Ledru
> <[hidden email]> wrote:
>         Le mercredi 14 octobre 2009 à 16:24 +0530, Sumit Adhikari a
>         écrit :
>
>         > ./config/config.sub: line 80:  : command not found
>         > ./config/config.sub: line 83:  : command not found
>         > ./config/config.sub: line 86: syntax error near unexpected
>         token `in '
>         > ./config/config.sub: line 86: `  case $1 in '
>
>         What is you shell ? bash ?
>         (and your operating system)
> Simply typing ./configure is giving same problem.
> shell : tcsh
It is probably the issue. Could you try with bash, dash or zsh ?

Thanks
Sylvestre





--

--------------------------------------------
Sumit Adhikari
System Design Engineer
austriamicrosystems AG
Business Unit : Automotive
Mob : 00-91-9885271710/00-91-9000161710
Sumit Adhikari Sumit Adhikari
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version

Well one more information, I am able to compile any other gnu source code !

On Wed, Oct 14, 2009 at 4:56 PM, Sumit Adhikari <[hidden email]> wrote:
Same. Following is the result :
sh-3.00$
sh-3.00$ ./configure --prefix=/fshy01/uxhyu/sa1/tools/scilab-5.1.1/ \

>             --with-gcc --x-includes=/usr/X11R6/include/  --x-libraries=/usr/X11R6/lib64/ \
>             --with-fftw-include=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/include/ \
>             --with-fftw-library=/fshy01/uxhyu/sa1/tools/fftw-3.1.2/lib/ \
>             --with-tcl-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/ \
>             --with-tcl-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/ \
>             --with-tk-library=/fshy01/uxhyu/sa1/tools/tcl8.5.7/lib/  \
>             --with-tk-include=/fshy01/uxhyu/sa1/tools/tcl8.5.7/include/  \
>             --with-x               \
>             --enable-build-swig --enable-build-giws --enable-static
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: error: cannot run /bin/sh config/config.sub
sh-3.00$    

regards,
sumit



On Wed, Oct 14, 2009 at 4:53 PM, Sylvestre Ledru <[hidden email]> wrote:

>
> On Wed, Oct 14, 2009 at 4:29 PM, Sylvestre Ledru
> <[hidden email]> wrote:
>         Le mercredi 14 octobre 2009 à 16:24 +0530, Sumit Adhikari a
>         écrit :
>
>         > ./config/config.sub: line 80:  : command not found
>         > ./config/config.sub: line 83:  : command not found
>         > ./config/config.sub: line 86: syntax error near unexpected
>         token `in '
>         > ./config/config.sub: line 86: `  case $1 in '
>
>         What is you shell ? bash ?
>         (and your operating system)
> Simply typing ./configure is giving same problem.
> shell : tcsh
It is probably the issue. Could you try with bash, dash or zsh ?

Thanks
Sylvestre





--

--------------------------------------------
Sumit Adhikari
System Design Engineer
austriamicrosystems AG
Business Unit : Automotive
Mob : 00-91-9885271710/00-91-9000161710



--

--------------------------------------------
Sumit Adhikari
System Design Engineer
austriamicrosystems AG
Business Unit : Automotive
Mob : 00-91-9885271710/00-91-9000161710
sylvestre sylvestre
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version

In reply to this post by Sumit Adhikari


>
>
> On Wed, Oct 14, 2009 at 4:53 PM, Sylvestre Ledru
> <[hidden email]> wrote:
>        
>         >
>         > On Wed, Oct 14, 2009 at 4:29 PM, Sylvestre Ledru
>         > <[hidden email]> wrote:
>         >         Le mercredi 14 octobre 2009 à 16:24 +0530, Sumit
>         Adhikari a
>         >         écrit :
>         >
>        
>         >         > ./config/config.sub: line 80:  : command not found
>         >         > ./config/config.sub: line 83:  : command not found
>         >         > ./config/config.sub: line 86: syntax error near
>         unexpected
>         >         token `in '
>         >         > ./config/config.sub: line 86: `  case $1 in '
>         >
>         >         What is you shell ? bash ?
>         >         (and your operating system)
>        
>         > Simply typing ./configure is giving same problem.
>         > shell : tcsh
>        
>         It is probably the issue. Could you try with bash, dash or
>         zsh ?
>        
>         Thanks
>         Sylvestre
> Same. Following is the result :
> sh-3.00$
> configure: error: cannot run /bin/sh config/config.sub
> sh-3.00$    
What is your operating system ?
(uname does not show this information).

A quick google on this error shows that it is a problem with lib tool
and copying config.{sub,guess} from autotools-dev fixed the issue.

By the way, could you avoid the top reply, it makes things hard to read
in the archive.

Thanks
Sylvestre

>
>
>
> --
>
> --------------------------------------------
> Sumit Adhikari
> System Design Engineer
> austriamicrosystems AG
> Business Unit : Automotive
> Mob : 00-91-9885271710/00-91-9000161710
--
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France




Sumit Adhikari Sumit Adhikari
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version



On Wed, Oct 14, 2009 at 5:02 PM, Sylvestre Ledru <[hidden email]> wrote:


>
>
> On Wed, Oct 14, 2009 at 4:53 PM, Sylvestre Ledru
> <[hidden email]> wrote:
>
>         >
>         > On Wed, Oct 14, 2009 at 4:29 PM, Sylvestre Ledru
>         > <[hidden email]> wrote:
>         >         Le mercredi 14 octobre 2009 à 16:24 +0530, Sumit
>         Adhikari a
>         >         écrit :
>         >
>
>         >         > ./config/config.sub: line 80:  : command not found
>         >         > ./config/config.sub: line 83:  : command not found
>         >         > ./config/config.sub: line 86: syntax error near
>         unexpected
>         >         token `in '
>         >         > ./config/config.sub: line 86: `  case $1 in '
>         >
>         >         What is you shell ? bash ?
>         >         (and your operating system)
>
>         > Simply typing ./configure is giving same problem.
>         > shell : tcsh
>
>         It is probably the issue. Could you try with bash, dash or
>         zsh ?
>
>         Thanks
>         Sylvestre
> Same. Following is the result :
> sh-3.00$
> configure: error: cannot run /bin/sh config/config.sub
> sh-3.00$
What is your operating system ?
(uname does not show this information).

A quick google on this error shows that it is a problem with lib tool
and copying config.{sub,guess} from autotools-dev fixed the issue.

By the way, could you avoid the top reply, it makes things hard to read
in the archive.

Thanks
Sylvestre

>
>
>
> --
>
> --------------------------------------------
> Sumit Adhikari
> System Design Engineer
> austriamicrosystems AG
> Business Unit : Automotive
> Mob : 00-91-9885271710/00-91-9000161710
--
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France




Hello ,
  I just tried with scilab-4.1.2 source version. configure is working fine. I am using RHEL 4.0.
  Just changed my libtool (locally compiled version, compiled by me), the error is same.
  How do I copy config.guess from autotools-dev ?
  I am receiving some errors while i am doing autoconf (after I got errors) and they says about configure.ac syntax errors!
  I have latest version of autoconf.
Regards,
--

--------------------------------------------
Sumit Adhikari
System Design Engineer
austriamicrosystems AG
Business Unit : Automotive
Mob : 00-91-9885271710/00-91-9000161710
sylvestre sylvestre
Reply | Threaded
Open this post in threaded view
|

Re: Reg :: Configure error in scilab-5.1.1 source version

Le mercredi 14 octobre 2009 à 17:10 +0530, Sumit Adhikari a écrit :

> Hello ,
>   I just tried with scilab-4.1.2 source version. configure is working
> fine. I am using RHEL 4.0.
The build system of Scilab 4.X is very different from the 5.0 but I
don't think your problem is related to Scilab build system but more
likely to your system and the software installed on it.

>   Just changed my libtool (locally compiled version, compiled by me),
> the error is same.
You should use the software provided by your distribution. Stuff like
libtool are (heavily) patched by the distribs.

>   How do I copy config.guess from autotools-dev ?
Install autotools are get these files from it.

>   I am receiving some errors while i am doing autoconf (after I got
> errors) and they says about configure.ac syntax errors!
>   I have latest version of autoconf.
If you don't provide the actual errors, it is hard to help ...
If you want to regenerate autotools, you are going to need autoconf
2.64, automake 1.11, aclocal 1.11, gettext 0.17. Files for Libtool are
embedded in the source tree.

Btw, you can use the spec file from fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=472639

If you are rebuilding Scilab because of an old glibc on your system, it
is now fixed in the nightly builds (See bug 3131).

Sylvestre