LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1814|回复: 5

安装软件的时候需要/bin/sh,发现/bin/sh就是/bin/bash的连接,我需要真正的/bin/sh该

[复制链接]
发表于 2008-7-5 15:28:41 | 显示全部楼层 |阅读模式
如题如题如题如题如题如题
 楼主| 发表于 2008-7-5 15:29:22 | 显示全部楼层
debian:/home/ediusr/software/mqc# rpm -i MQSeriesClient-6.0.2-4.i386.rpm   
error: Failed dependencies:
        MQSeriesRuntime = 6.0.2-4 is needed by MQSeriesClient-6.0.2-4.i386
        /bin/sh is needed by MQSeriesClient-6.0.2-4.i386


debian:~# ll /bin/sh
lrwxrwxrwx 1 root root 4 Jul  3 21:16 /bin/sh -> bash
debian:~#
回复 支持 反对

使用道具 举报

发表于 2008-7-5 18:48:25 | 显示全部楼层
rpm?

兄弟真的是用 Debian 者乎?

这种现像未遇过,但软连结不行的话,换硬连结如何?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-5 20:26:02 | 显示全部楼层
debian of cause.

the rpm files were downloaded from ibm, i can not find *.deb for debian.
回复 支持 反对

使用道具 举报

发表于 2008-7-5 22:40:49 | 显示全部楼层
Post by tempname;1871271
如题如题如题如题如题如题

以下来自man sh
       如 果 bash 以名称 sh 启动,它试图模仿 (mimic) sh 历史版本的启动过程,尽
       可能地相似,同时也遵循 POSIX 标准。当作为交互式登录 shell 启动时,或者是
       非 交 互 但 使 用 了  --login   选项启动的时候,它首先尝试读取并执行文件
       /etc/profile 和 ~/.profile, 中的命令.  选项 --noprofile 用于避免这种 行
       为.当使用命令 sh 来启动一个交互式的 shell 时, bash 查找环境变量 ENV, 如
       果有定义的话就扩展它的值,然后使用扩展后的值作为要读取和执行的文件 的 名
       称. 由 于 使 用  sh  启动的 shell 不会读取和执行任何其他的启动文件,选项
       --rcfile 没有意义.使用名称 sh 启动的非交互的 shell 不会读取任何其他启动
       文件.当以 sh 启动时, bash 在读取启动文件之后进入 posix 模式.
回复 支持 反对

使用道具 举报

发表于 2008-7-6 08:10:06 | 显示全部楼层
Post by tempname;1871385
debian of cause.

the rpm files were downloaded from ibm, i can not find *.deb for debian.
If a package is only available in rpm, do not use rpm to install that package, try converting it with alien into deb and then install it with dpkg -i.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表