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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-24-2002, 08:53 AM
|
#1
|
Member
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627
Rep:
|
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
|
|
|
12-24-2002, 09:33 AM
|
#2
|
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:
|
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.
|
|
|
12-24-2002, 11:05 AM
|
#3
|
Member
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627
Original Poster
Rep:
|
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
|
|
|
12-24-2002, 11:11 AM
|
#4
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
Check that the rpm your trying to install is for the version of redhat that your using.
|
|
|
All times are GMT -5. The time now is 11:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|