Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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...
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
--------------------------------------
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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?
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...
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.