【问题标题】:dbx command not found in SunOS Solaris 11.2在 SunOS Solaris 11.2 中找不到 dbx 命令
【发布时间】:2015-07-27 16:28:38
【问题描述】:

我是 Unix/Linux 的新手。当我在终端中输入 dbx 时,没有找到任何命令。您能告诉我如何解决吗?谢谢。

我的 Solaris 版本是 11.2

【问题讨论】:

  • 我在vmware 10中安装了Solaris,主机操作系统是windows 8。
  • dbx 是 Solaris Studio 开发集的一部分。 (oracle.com/technetwork/server-storage/solarisstudio/overview/…) 安装了吗?
  • @Shirley Feng - 检查是否安装使用命令whereis dbx
  • @sras - whereis 也找不到:(
  • @AndrewHenle 谢谢!我已经根据您发布的网站安装了 solaris studio 开发集。现在问题已经解决了。谢谢!

标签: unix solaris dbx


【解决方案1】:

由于我们不知道,你也不知道我假设默认安装路径:

ls /opt/sun/*

如果此命令返回错误或不显示任何文件,则说明您没有 sun studio,因此您没有 dbx。

如果上面的命令有效,现在让我们找到命令: 定位 dbx(它应该在 /opt/sun/sunstudio11/bin 但可能在其他地方)

尝试:

find /opt/sun -name dbx

假设它返回/opt/sun/sunstudio11/bin/dbx 这意味着

/opt/sun/sunstudio11/bin/ 是 dbx 所在的目录。将其添加到 PATH 变量中:

PATH=${PATH}:/opt/sun/sunstudio11/bin/
export PATH

现在只需键入dbx,shell 就会运行 dbx

如果您希望它是永久性的,请编辑(在您的主目录中) 您的.profile(或.bash_profile 用于bash)文件,上面有两行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多