LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2004, 01:10 AM   #1
Chtiman
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Rep: Reputation: 0
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
 
Old 12-30-2004, 02:37 AM   #2
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Rep: Reputation: 30
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?
 
Old 12-30-2004, 03:01 AM   #3
Chtiman
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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...
 
Old 12-30-2004, 03:09 AM   #4
Chtiman
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry missed the most imp line...
Configure file starts with

#! /bin/sh

 
Old 12-30-2004, 04:11 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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...
 
Old 12-30-2004, 04:18 AM   #6
Chtiman
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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
--------------------------------------
 
Old 12-30-2004, 04:30 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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?
 
Old 12-30-2004, 04:46 AM   #8
Chtiman
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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...
 
Old 12-30-2004, 04:53 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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...
 
Old 12-30-2004, 05:01 AM   #10
Chtiman
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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...
 
Old 12-30-2004, 05:26 AM   #11
Chtiman
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Original Poster
Rep: Reputation: 0
WORKED
I used the utility fromdos

Thanks a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with ./configure Chtiman Linux - Software 1 01-04-2005 09:53 AM
./configure problem :( moskal Mandriva 23 08-15-2004 10:33 PM
problem with ./configure vijay_souri Linux - Software 0 06-07-2004 12:04 PM
.\configure PROBLEM mla Linux - Software 13 10-13-2003 04:01 PM
configure problem. qanopus Linux - General 9 12-17-2002 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration