LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with ./configure (https://www.linuxquestions.org/questions/linux-software-2/problem-with-configure-271788/)

Chtiman 12-30-2004 01:10 AM

Problem with ./configure
 
Hi All,
I am trying to install a module. for that I tried ./Configure and got the following error

: bad interpreter: No such file or directory


When I try sh configure I get the following error

: command not found
: command not found
: command not found
: command not found
: command not found
'onfigure: line 58: syntax error near unexpected token `do
'onfigure: line 58: `do


The first like of configure file contains #! /bin/sh and this file exists ...
I am able to run configure for other modules....
Can Anyone point out hat could be the problem?

Thanks in Advance
Chitman

alitrix 12-30-2004 02:37 AM

Can you show the a list of the files they have put in this package?

And can you show us the content of configure please?

Chtiman 12-30-2004 03:01 AM

Hi...
These are the files and folders under this package
Files
build.xml, configure, configure.in, , doxygen.cfg, install-sh, LICENSE.HTML, makefile, makefile.am, makefile.in, missing, mkinstalldirs, setcpath.sh, stamp-h.in

Folders
docs, test, source, ipdr, libs, example, include

The cofig file is huge so i am copying only till the line it gives error
----------------
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

ac_prev=
for ac_option
do
--------------------------GIVES ERROR AT THIS LINE---------------
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi

----------------
Thanks...

Chtiman 12-30-2004 03:09 AM

Sorry missed the most imp line...
Configure file starts with

#! /bin/sh

:)

JZL240I-U 12-30-2004 04:11 AM

I'm not sure, but I think the blank between exclamation mark and slash is a problem, try deleting it so "#! /bin/sh" becomes "#!/bin/sh" -- just an idea, I'm not at a Linux box right now...

Chtiman 12-30-2004 04:18 AM

Nopes... Dosent help... :(

Even a small file like below is giving error :(
But simple "Hello World" sh file work....
--------------------------------------
#! /bin/sh
IPDRROOTPATH=`pwd`
export IPDRROOTPATH
OS=`uname`
export OS
# Updating the Environment Variable LD_LIBRARY_PATH
if test $OS = "SunOS" -o $OS = "sunOS"
then LD_LIBRARY_PATH=/usr/local/lib:$IPDRROOTPATH/libs:;
export LD_LIBRARY_PATH
elif test $OS = "Linux" -o $OS = "linux"
then LD_LIBRARY_PATH=/usr/local/lib:$IPDRROOTPATH/libs:;
export LD_LIBRARY_PATH
elif test $OS = "HP-UX" -o $OS = "hp-ux"
then SH_LIBRARY_PATH=/usr/local/lib:$IPDRROOTPATH/libs:;
export SH_LIBRARY_PATH
else
echo "Wrong option. Execute script again."
fi

export OS
# End of Shell Script File setcpath.sh

--------------------------------------

Error
--------------------------------------
: command not found
: command not found
: command not found
': not a valid identifierRROOTPATH
': not a valid identifier
setcpath.sh: line 45: syntax error: unexpected end of file
--------------------------------------

JZL240I-U 12-30-2004 04:30 AM

Quote:

Originally posted by Chtiman
Nopes... Dosent help... :(

Even a small file like below is giving error :(
But simple "Hello World" sh file work....
Pity. Next try: in "#! /bin/sh" the sh is a placeholder. Maybe you somehow managed to mangle it. Try "#!/bin/bash" (or whatever shell you use). What is a "simple "Hello World" sh file", can you post an example?

Chtiman 12-30-2004 04:46 AM

Nops...didnt work

This is the small hello world example that worked...
#!/bin/sh
# This is a comment!
echo Hello World


One more thing... The package I am using was a zip file... and i did unzip <filename.zip>
Now none of the files are executing giving the same problem... So i coped the code from windows and pasted into a new shell file (say test.sh) and when i tried sh test.sh... it worked without any errors...
Could this problem be created because of not being unzipped properly....???
Thanks...

JZL240I-U 12-30-2004 04:53 AM

Well, I remember something about Unix / Linux using <CR> at the end of a line in files while Win uses <CR><LF> (CR = Carriage Return, LF = Line Feed; 0x10 and 0x13 in hex). There is a utility to convert files, though I don't remember the name. Mabe this is the reason, dunno...

Did you unzip under Windows or Linux? Anyway, try it again under the other system, maybe that will correct the problem as well...

Chtiman 12-30-2004 05:01 AM

I downloded this file in windows.... ftp it to linux... use unzip command to unzip it....
I dont have another system to try this one... :(

Chtiman 12-30-2004 05:26 AM

WORKED
I used the utility fromdos

Thanks a lot :)


All times are GMT -5. The time now is 07:01 PM.