Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

can't ./configure!

Hi

I can't ./configure. Always get following error
" /bin/sh: bad interpreter: Permission denied "

Makes no difference root or user, or changing permissions either for tar.gz file or configure file per se (even with everything allowed in properties)

Have tried this with at least 4 tar.gzs - all the same :((

SuSE 8.1 Pro, KDE 3

Any ideas.

Please!!!

neill

0
babysnake
Asked:
babysnake
  • 8
  • 5
  • 2
  • +2
1 Solution
 
naccadCommented:
does /bin/sh exist
0
 
babysnakeAuthor Commented:
yep

/bin/sh is there
0
 
naccadCommented:
ok, this error is usually due to a missing shell

install "ash", its a nice drop in for /bin/sh (suse has it in rpm
somewhere im sure), and give it another try.

you prolly have /bin/sh symlinked to /bin/bash or some such.

good luck
-nick
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
babysnakeAuthor Commented:
Thanks

I do have /bin/sh symlinked to /bin/bash as u suggest

What is the significance of this please?

(I've only been at this a week now - can u tell ;>) !!)
0
 
babysnakeAuthor Commented:
I tried using ash (already installed)

I simply get
./configure: permission denied (from root, all permissions enabled in configure)
0
 
naccadCommented:
lets try this another way:

type:

bash configure

and see what happens.
this is starting to sound interesting :)

tc
-nick

ps. the significance of using ash vs a symlinked sh is that by
mistake you could have linked sh to csh or tcsh or something
equally horrible, that is why i had to make sure.

0
 
babysnakeAuthor Commented:
# bash configure gives

no such file or directory!!

cd /bin
bash configure

no such file or directory!!

alarming! (or I'm making some simple error!)

neill


0
 
naccadCommented:
i think i did not make myself clear

instead of typing ./configure, run the file thru bash
for for example, if u have foo-1.2.tar.gz

tar zxf foo-1.2.tar.gz
cd foo-1.2
bash configure


0
 
babysnakeAuthor Commented:
it configures......but fails for another reason altogether!

i rebooted anyway in the meanwhile (windoze habit!) and got the file to configure. It fails due to qt 2.2.2 or higher missing. I know i have qt on the system (YaST the SuSE config manager says so) and a higher version (2.3.2) so any ideas what's wrong??

this probably counts either as another problem or more points

At the end i simply want to install some soft!!

thanks

neill
0
 
ahoffmannCommented:
does following list the required packages:

rpm -q -l qt
0
 
babysnakeAuthor Commented:
I get a list:

/etc/qt.fontguess
/usr/lib/libqt-mt.so.2
/usr/lib/libqt.so.2
/usr/lib/libqutil.so.1
/usr/lib/qt-2.3.2
/usr/lib/qt-2.3.2/lib
/usr/lib/qt-2.3.2/lib/libqt-mt.so
/usr/lib/qt-2.3.2/lib/libqt-mt.so.2
/usr/lib/qt-2.3.2/lib/libqt-mt.so.2.3
/usr/lib/qt-2.3.2/lib/libqt-mt.so.2.3.2
/usr/lib/qt-2.3.2/lib/libqt.so
/usr/lib/qt-2.3.2/lib/libqt.so.2
/usr/lib/qt-2.3.2/lib/libqt.so.2.3
/usr/lib/qt-2.3.2/lib/libqt.so.2.3.2
/usr/lib/qt-2.3.2/lib/libqutil.so
/usr/lib/qt-2.3.2/lib/libqutil.so.1
/usr/lib/qt-2.3.2/lib/libqutil.so.1.0
/usr/lib/qt-2.3.2/lib/libqutil.so.1.0.0
/usr/lib/qt2
/usr/share/doc/packages/qt/doc
/usr/share/doc/packages/qt/doc/ANNOUNCE
/usr/share/doc/packages/qt/doc/FAQ
/usr/share/doc/packages/qt/doc/INSTALL
/usr/share/doc/packages/qt/doc/LICENSE.GPL
/usr/share/doc/packages/qt/doc/LICENSE.QPL
/usr/share/doc/packages/qt/doc/MANIFEST
/usr/share/doc/packages/qt/doc/PLATFORMS
/usr/share/doc/packages/qt/doc/PORTING
/usr/share/doc/packages/qt/doc/README
/usr/share/doc/packages/qt/doc/README.QT
/usr/share/doc/packages/qt/doc/README.SuSE
/usr/share/doc/packages/qt/doc/changes-2.3.0
/usr/share/doc/packages/qt/doc/changes-2.3.1
/usr/share/doc/packages/qt/doc/changes-2.3.2

thanks for the continued interest

neill
0
 
naccadCommented:
if you are sure you already have an equal or higher version of
the libraries required, the reason configure fails is prolly becasue
it is looking for the development libraries/headers

let me explain,

there are two sets of any package that you install, for example, qt
comes in two packages, qt.rpm and qt-devel.rpm.
qt.rpm is what we call a runtime package, it provides the libraries
needed to run a software based on qt, the -devel package on the
other hand contains the libraries and source code files needed to
build a software based on that package.

so, in order to develop/compile/build a software based on qt,
you need to install the qt-devel package, which for suse 8.1
can be found at

ftp://ftp.suse.com/pub/suse/i386/8.1/suse/i586/qt-devel-2.3.2-304.i586.rpm 

hope that helps
good luck
-nick
0
 
ahoffmannCommented:
agree with naccad that qt-devel should solve this problem
0
 
TheAmigoCommented:
Sounds like an end-of-line problem.  If you run:
head configure | cat -v
does that show any control chars?
0
 
babysnakeAuthor Commented:
nick

I'll get onto this over the weekend and get back

Thanks

neill
0
 
albayCommented:
hi babysnake,

if you still get this error message "no such file or directory!!", file should be executable. change the file permissions,

  chmod 755 configure

and try again..

good luck,

albay
0
 
babysnakeAuthor Commented:
In the end I did it via a reistall but that's no bad thing as I learnt about a lot of things I had made windows-type assumptions about

thanks

learning is fun!!
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 8
  • 5
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now