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 |
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? |
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... |
Sorry missed the most imp line...
Configure file starts with #! /bin/sh :) |
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...
|
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 -------------------------------------- |
Quote:
|
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... |
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... |
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... :( |
WORKED
I used the utility fromdos Thanks a lot :) |
All times are GMT -5. The time now is 07:01 PM. |