LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-24-2002, 08:53 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
why /bin/sh is not found ?


hi every body

I got a very strange error

I am running redhat 7.3

When I try to install an rpm package, the rpm doesn't find /bin/sh and other programs, I am sure the programs are installed.
for instance:

rpm -ivh xforms-0.89-1.i386.rpm
error: failed dependencies:
/bin/sh is needed by xforms-0.89-1
/bin/sh is needed by xforms-0.89-1
ld-linux.so.2 is needed by xforms-0.89-1
libc.so.6 is needed by xforms-0.89-1
libm.so.6 is needed by xforms-0.89-1
libX11.so.6 is needed by xforms-0.89-1
libc.so.6(GLIBC_2.0) is needed by xforms-0.89-1
libc.so.6(GLIBC_2.1) is needed by xforms-0.89-1
libm.so.6(GLIBC_2.0) is needed by xforms-0.89-1
libm.so.6(GLIBC_2.1) is needed by xforms-0.89-1
pub]# ls -l /bin/sh
lrwxrwxrwx 1 root root 9 Dec 24 13:10 /bin/sh -> /bin/bash
pub]# ls -l /bin/bash
-rwxr-xr-x 1 root root 541096 Apr 12 2002 /bin/bash
pub]# echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin
pub]#


where is the error

thanks
 
Old 12-24-2002, 09:33 AM   #2
iocain
LQ Newbie
 
Registered: Dec 2002
Location: Canada
Distribution: Debian, BSD, IRIX, MacOS, Solaris, AIX, HP-UX, other Unix, other Linux, other, windos (declining...)
Posts: 25

Rep: Reputation: 15
The problem is not that you don't have a /bin/sh -- it's that RPM doesn't have /bin/sh in its database. If you reinstall bash from an RPM, it should be happy. Or install 'ash' or 'dash' from RPM, so that there's a light-weight /bin/sh available.
 
Old 12-24-2002, 11:05 AM   #3
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Original Poster
Rep: Reputation: 31
Yes , but the problem how to install the rpm itself

for instance the following comand gives:

rpm -ivh /mnt/cdrom/RedHat/RPMS/rpm-4.0.4-7x.18.i386.rpm

error: failed dependencies:
gawk is needed by rpm-4.0.4-7x.18
fileutils is needed by rpm-4.0.4-7x.18
textutils is needed by rpm-4.0.4-7x.18
mktemp is needed by rpm-4.0.4-7x.18
shadow-utils is needed by rpm-4.0.4-7x.18
popt = 1.6.4 is needed by rpm-4.0.4-7x.18
/bin/sh is needed by rpm-4.0.4-7x.18

but for example, gawk exists , is installed


pub]#gawk
Usage: gawk [POSIX or GNU style options] -f progfile [--] file ...
Usage: gawk [POSIX or GNU style options] [--] 'program' file ...


To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.



thank for help
 
Old 12-24-2002, 11:11 AM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Check that the rpm your trying to install is for the version of redhat that your using.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
not found in $ PATH or /bin Waldorf Linux - Software 2 12-02-2005 07:54 AM
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 03:59 PM
chroot - bin/sh not found Artanicus Slackware 8 05-16-2005 05:26 AM
Upgraded to 2.4.26 now /proc/bin/usb not found GM287 Linux - Networking 2 04-21-2004 06:39 PM
why /bin/sh is not found ? abd_bela Linux - Software 1 12-24-2002 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:19 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