Go to main content

Oracle® Developer Studio 12.6:安装指南

退出打印视图

更新时间: 2017 年 7 月
 
 

安装和更新 Oracle Developer Studio 12.6 必需的 Oracle Solaris 11 系统库

必须确保更新了某些必需的系统库,然后才能在 Oracle Solaris 11 上安装 Oracle Developer Studio 12.6。这些库在 sunpro-incorporation 整合软件包中随 Oracle Solaris 11 操作系统提供,没有随 Oracle Developer Studio 提供。

由于 Oracle Developer Studio 本身也使用这些库,因此必须在 Oracle Solaris 11.3 上安装这些库后才能安装 Oracle Developer Studio。

sunpro-incorporation 软件包的一个更新版本已添加到 Oracle Solaris 11 发行版系统信息库中,以解决自 Oracle Solaris 11.3 发布后在 Oracle Solaris 11.3 SRU20 中修复的问题。

这些说明假设您熟悉 Oracle Solaris 11 映像包管理系统 (Image Packaging System, IPS) 的基础知识。http://download.oracle.com/otndocs/tech/OTN_Demos/IPS/IPS-demo.html 上提供了 IPS 的简短介绍视频。

有关更全面的 IPS 介绍,请参见 Oracle Solaris 11.3 信息库中的在 Oracle Solaris 11.3 中添加和更新软件

根据您是否购买了 Oracle Solaris 的支持合同来获得对支持系统信息库的访问权限,使用以下方法之一更新必需的系统库:

如果您具有 Oracle Solaris 11 支持系统信息库的访问权限:

将您的系统更新至最新的 Oracle Solaris 11.3 支持系统信息库更新 (Support Repository Update, SRU)。访问 Oracle Solaris 11 支持系统信息库需要 Oracle Solaris 11 支持合同。有关详细信息,请参阅文章 How to Update Oracle Solaris 11 Systems from Oracle Support Repositories(如何从 Oracle 支持系统信息库更新 Oracle Solaris 11 系统)。

请参见示例 1, 从 Oracle Solaris 11 支持系统信息库将 Oracle Solaris 11.3 引导映像更新至最新的 SRU中的会话样例。

如果您不具有 Oracle Solaris 11 支持系统信息库的访问权限:

http://pkg.oracle.com/solaris/release 上的 Oracle Solaris 11 发行版系统信息库将系统升级到 Oracle Solaris 11.3,如更新至 Oracle Solaris 11.3中所述。

请参见示例 2, 从 Oracle Solaris 11 发行版系统信息库更新 sunpro-incorporation 软件包 中的样例会话。

Oracle Solaris 11 的示例更新情景

本部分说明了以下 Oracle Solaris 11 示例更新情景。

示例 1  从 Oracle Solaris 11 支持系统信息库将 Oracle Solaris 11.3 引导映像更新至最新的 SRU

此示例显示了在您具有 Oracle Solaris 11 支持合同的情况下从 Oracle Solaris 11 支持系统信息库将系统从 Oracle Solaris 11.3 升级至最新 SRU 的终端会话。系统的缺省发布者已配置为指向 Oracle Solaris 11 支持系统信息库。

终端会话显示了以下内容:

  • 列出当前已安装的 entiresunpro-incorporation 软件包版本。输出反映了在 Oracle Solaris 11.1 中最初提供的版本。

  • 列出 Oracle Solaris 11 支持系统信息库中这两个软件包的所有可用版本。输出显示两个软件包都存在更新的版本,这反映了最新的 Oracle Solaris 11.2 SRU。

  • 将系统更新至 Oracle Solaris 11.3 SRU20。会话显示在新的命名引导环境中更新了系统,当前的引导环境保持不变。

root@sparcbox:~# beadm list
BE                           Flags Mountpoint Space   Policy Created          
--                           ----- ---------- -----   ------ -------          
s11.3_example                NR    /          34.70G  static 2017-06-08 13:20 
root@sparcbox:~# pkg list entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.3.9.0.2.0     i--
root@sparcbox:~# pkg list sunpro-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.9.0.2.0     i--
root@sparcbox:~# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F https://pkg.oracle.com/solaris/support/
root@sparcbox:~# pkg list -af entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.3.20.0.6.0    ---
entire                                            0.5.11-0.175.3.20.0.5.0    ---
entire                                            0.5.11-0.175.3.19.0.5.0    ---
entire                                            0.5.11-0.175.3.18.0.6.0    ---
entire                                            0.5.11-0.175.3.17.0.5.0    ---
...
entire                                            0.5.11-0.175.1.0.0.24.2    ---
...
root@sparcbox:~# pkg list -af sunpro-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.20.0.2.0    ---
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.13.0.1.0    ---
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.9.0.2.0     i--
...
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.1.0.0.19.0    ---
...
root@sparcbox:~# pkg update --accept --be-name s11.3_example_s11.3sru20
            Packages to remove:  28
           Packages to install:   8
            Packages to update: 344
       Create boot environment: Yes
Create backup boot environment:  No

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            380/380   19533/19533  660.8/660.8 27.2M/s

PHASE                                          ITEMS
Removing old actions                       9382/9382
Installing new actions                     9983/9983
Updating modified actions                16533/16533
Updating package state database                 Done 
Updating package cache                       372/372 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           1/1 

A clone of s11.3_example exists and has been updated and activated.
On the next boot the Boot Environment s11.3_example_s11.3sru20 will be
mounted on '/'.  Reboot when ready to switch to this updated BE.

Updating package cache                           1/1 

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

https://support.oracle.com/rs?type=doc&id=2045311.1
---------------------------------------------------------------------------

root@sparcbox:~# beadm list
BE                           Flags Mountpoint Space   Policy Created          
--                           ----- ---------- -----   ------ -------          
s11.3_example                N     /          6.26M   static 2017-06-08 13:20 
s11.3_example_s11.3sru20     R     -          39.27G  static 2017-06-08 13:56 
root@sparcbox:~# reboot
Connection to x86box.example.com closed by remote host.
Connection to x86box.example.com closed.

重新引导系统后,以普通用户身份登录并验证 entiresunpro-incorporation 软件包是否都已更新。

...
Oracle Corporation      SunOS 5.11      11.3    August 2016
(sparcbox)% beadm list
BE                           Flags Mountpoint Space   Policy Created          
--                           ----- ---------- -----   ------ -------          
s11.3_example                -     -          20.82M  static 2017-06-08 13:20 
s11.3_example_s11.3sru20     NR    /          39.37G  static 2017-06-08 13:56 
(sparcbox)% pkg list entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.3.20.0.6.0    i--
(sparcbox)% pkg list sunpro-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.20.0.2.0    i--
(sparcbox)% 
示例 2  从 Oracle Solaris 11 发行版系统信息库更新 sunpro-incorporation 软件包

此示例显示发行版系统信息库中已更新为更高版本的 sunpro-incorporation 软件包 (SRU20),以及如何将当前生成环境更新至该版本的 sunpro-incorporation

终端会话显示了以下任务:

  • 确认当前生成环境的名称。

  • 确认系统缺省发布者指向 Oracle Solaris 11 发行版系统信息库。

  • 确认 Solaris 11 发行版系统信息库中有 SRU20 中的 sunpro-incorporation 软件包。

  • 对更新 sunpro-incorporation 软件包执行试运行。

  • 更新 sunpro-incorporation 软件包,同时备份当前生成环境。

  • 确认 sunpro-incorporation 软件包已更新至 SRU20 版本。

  • 列出当前和备份生成环境。

root@sparcbox:~# beadm list
BE                           Flags Mountpoint Space   Policy Created
--                           ----- ---------- -----   ------ -------
s11.3ga_example              NR    /          25.08G  static 2017-06-08 19:37
root@sparcbox:~# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F https://pkg.oracle.com/solaris/release/
root@sparcbox:~# pkg list sunpro-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.9.0.2.0     i--
root@sparcbox:~# pkg list -af sunpro-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.20.0.2.0    ---
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.9.0.2.0     i--
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.0.0.25.0    ---
...
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.1.0.0.19.0    ---
...
root@sparcbox:~# pkg update -nv --accept
            Packages to update:         5
     Estimated space available: 361.88 GB
Estimated space to be consumed: 110.41 MB
       Create boot environment:        No
Create backup boot environment:       Yes
          Rebuild boot archive:        No

Changed packages:
solaris
  consolidation/sunpro/sunpro-incorporation
    0.5.11,5.11-0.175.3.9.0.2.0:20160528T012705Z -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003815Z
  entire
    0.5.11,5.11-0.175.3.1.0.5.1:20170105T000952Z -> 0.5.11,5.11-0.175.3.1.0.5.2:20170605T210005Z
  system/library/c++-runtime
    0.5.11,5.11-0.175.3.9.0.2.0:20160528T012707Z -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003816Z
  system/library/math
    0.5.11,5.11-0.175.3.8.0.3.0:20160425T173821Z -> 0.5.11,5.11-0.175.3.13.0.1.0:20160909T191342Z
  system/library/openmp
    0.5.11,5.11-0.175.3.6.0.3.0:20160229T234217Z -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003823Z
root@sparcbox:~# pkg update -v --accept --backup-be-name s11.3ga_example_backup
            Packages to update:         5
     Estimated space available: 361.88 GB
Estimated space to be consumed: 110.41 MB
       Create boot environment:        No
Create backup boot environment:       Yes
          Rebuild boot archive:        No

Changed packages:
solaris
  consolidation/sunpro/sunpro-incorporation
    0.5.11,5.11-0.175.3.9.0.2.0:20160528T012705Z -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003815Z
  entire
    0.5.11,5.11-0.175.3.1.0.5.1:20170105T000952Z -> 0.5.11,5.11-0.175.3.1.0.5.2:20170605T210005Z
  system/library/c++-runtime
    0.5.11,5.11-0.175.3.9.0.2.0:20160528T012707Z -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003816Z
  system/library/math
    0.5.11,5.11-0.175.3.8.0.3.0:20160425T173821Z -> 0.5.11,5.11-0.175.3.13.0.1.0:20160909T191342Z
  system/library/openmp
    0.5.11,5.11-0.175.3.6.0.3.0:20160229T234217Z -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003823Z

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                5/5         44/44      4.5/4.5 40.4M/s

PHASE                                          ITEMS
Removing old actions                           13/13
Installing new actions                         13/13
Updating modified actions                      38/38
Updating package state database                 Done
Updating package cache                           5/5
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://www.oracle.com/pls/topic/lookup?ctx=solaris11&id=SERNS
---------------------------------------------------------------------------

root@sparcbox:~# pkg list sunpro-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/sunpro/sunpro-incorporation         0.5.11-0.175.3.20.0.2.0    i--
root@sparcbox:~# beadm list
BE                           Flags Mountpoint Space   Policy Created
--                           ----- ---------- -----   ------ -------
s11.3ga_example              NR    /          25.08G  static 2017-06-08 19:37
s11.3ga_example_backup       -     -          97.77M  static 2017-06-08 20:18
root@sparcbox:~#

安装 developer-studio-utilities 软件包

终端会话显示了以下任务:

  • sunpro-incorporation 软件包下安装新的 developer-studio-utilities 软件包。

  • sunpro-incorporation 软件包下列出已更新软件包的版本 ID。

root@sparcbox:~# pkg info developer-studio-utilities
pkg: info: no packages matching the following patterns you specified are
installed on the system.  Try specifying -r to query remotely:

        developer-studio-utilities
root@sparcbox:~# pkg info -r developer-studio-utilities
          Name: group/feature/developer-studio-utilities
       Summary: Developer Support For Oracle Solaris Studio
   Description: Tools and runtime support libraries for use with Oracle Solaris
                Studio
      Category: Development/C (org.opensolaris.category.2008)
                Development/C++ (org.opensolaris.category.2008)
                Development/Fortran (org.opensolaris.category.2008)
                Meta Packages/Group Packages (org.opensolaris.category.2008)
         State: Not installed
     Publisher: solaris
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.175.3.3.0.2.0
Packaging Date: Tue Nov 17 03:16:25 2015
          Size: 5.56 kB
          FMRI: pkg://solaris/group/feature/developer-studio-utilities@0.5.11,5.11-0.175.3.3.0.2.0:20151117T031625Z
root@sparcbox:~# pkg install -nv sunpro-incorporation developer-studio-utilities
           Packages to install:        11
     Estimated space available: 356.74 GB
Estimated space to be consumed: 471.12 MB
       Create boot environment:        No
Create backup boot environment:        No
          Rebuild boot archive:        No

Changed packages:
solaris
  developer/library/xprofile
    None -> 0.5.11,5.11-0.175.3.6.0.3.0:20160229T234156Z
  developer/openmpi-15
    None -> 0.5.11,5.11-0.175.2.0.0.37.0:20140414T130243Z
  developer/versioning/sccs
    None -> 0.5.11,5.11-0.175.3.0.0.10.0:20141110T022347Z
  developer/xopen/xcu4
    None -> 0.5.11,5.11-0.175.3.0.0.24.0:20150607T193302Z
  group/feature/developer-studio-utilities
    None -> 0.5.11,5.11-0.175.3.3.0.2.0:20151117T031625Z
  system/header
    None -> 0.5.11,5.11-0.175.3.1.0.3.0:20150925T164321Z
  system/library/fortran-runtime
    None -> 0.5.11,5.11-0.175.3.13.0.1.0:20160909T191336Z
  system/library/mmheap
    None -> 0.5.11,5.11-0.175.3.6.0.3.0:20160229T234216Z
  system/library/openmp
    None -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003823Z
  system/library/studio-runtime
    None -> 0.5.11,5.11-0.175.3.3.0.2.0:20151117T031646Z
  system/library/sunperf
    None -> 0.5.11,5.11-0.175.3.13.0.1.0:20160909T191347Z

Editable files to change:
  Install:
    etc/openmpi-1.5/openmpi-default-hostfile
    etc/openmpi-1.5/openmpi-mca-params.conf
    etc/openmpi-1.5/openmpi-totalview.tcl
root@sparcbox:~# pkg install -v sunpro-incorporation developer-studio-utilities
           Packages to install:        11
     Estimated space available: 356.74 GB
Estimated space to be consumed: 471.12 MB
       Create boot environment:        No
Create backup boot environment:        No
          Rebuild boot archive:        No

Changed packages:
solaris
  developer/library/xprofile
    None -> 0.5.11,5.11-0.175.3.6.0.3.0:20160229T234156Z
  developer/openmpi-15
    None -> 0.5.11,5.11-0.175.2.0.0.37.0:20140414T130243Z
  developer/versioning/sccs
    None -> 0.5.11,5.11-0.175.3.0.0.10.0:20141110T022347Z
  developer/xopen/xcu4
    None -> 0.5.11,5.11-0.175.3.0.0.24.0:20150607T193302Z
  group/feature/developer-studio-utilities
    None -> 0.5.11,5.11-0.175.3.3.0.2.0:20151117T031625Z
  system/header
    None -> 0.5.11,5.11-0.175.3.1.0.3.0:20150925T164321Z
  system/library/fortran-runtime
    None -> 0.5.11,5.11-0.175.3.13.0.1.0:20160909T191336Z
  system/library/mmheap
    None -> 0.5.11,5.11-0.175.3.6.0.3.0:20160229T234216Z
  system/library/openmp
    None -> 0.5.11,5.11-0.175.3.20.0.2.0:20170422T003823Z
  system/library/studio-runtime
    None -> 0.5.11,5.11-0.175.3.3.0.2.0:20151117T031646Z
  system/library/sunperf
    None -> 0.5.11,5.11-0.175.3.13.0.1.0:20160909T191347Z

Editable files to change:
  Install:
    etc/openmpi-1.5/openmpi-default-hostfile
    etc/openmpi-1.5/openmpi-mca-params.conf
    etc/openmpi-1.5/openmpi-totalview.tcl

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                              11/11     3228/3228    92.8/92.8  6.4M/s

PHASE                                          ITEMS
Installing new actions                     3699/3699
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1
root@sparcbox:~# pkg contents -m sunpro-incorporation | grep 0.175
set name=pkg.fmri value=pkg://solaris/consolidation/sunpro/sunpro-incorporation@0.5.11,5.11-0.175.3.20.0.2.0:20170422T003815Z
depend fmri=developer/assembler@0.5.11-0.175.3.9.0.2.0 type=incorporate
depend fmri=developer/build/make@0.5.11-0.175.2.0.0.34.0 type=incorporate
depend fmri=developer/library/xprofile@0.5.11-0.175.3.6.0.3.0 type=incorporate
depend fmri=developer/macro/cpp@0.5.11-0.175.2.0.0.6.0 type=incorporate
depend fmri=developer/openmpi-15@0.5.11-0.175.2.0.0.37.0 type=incorporate
depend fmri=developer/versioning/sccs@0.5.11-0.175.3.0.0.10.0 type=incorporate
depend fmri=developer/xopen/xcu4@0.5.11-0.175.3.0.0.24.0 type=incorporate
depend fmri=group/feature/developer-studio-utilities@0.5.11-0.175.3.3.0.2.0 type=incorporate
depend fmri=library/medialib@0.5.11-0.175.2.0.0.6.0 type=incorporate
depend fmri=system/library/c++-runtime@0.5.11-0.175.3.20.0.2.0 type=incorporate
depend fmri=system/library/fortran-runtime@0.5.11-0.175.3.13.0.1.0 type=incorporate
depend fmri=system/library/math@0.5.11-0.175.3.13.0.1.0 type=incorporate
depend fmri=system/library/mmheap@0.5.11-0.175.3.6.0.3.0 type=incorporate
depend fmri=system/library/openmp@0.5.11-0.175.3.20.0.2.0 type=incorporate
depend fmri=system/library/studio-runtime@0.5.11-0.175.3.3.0.2.0 type=incorporate
depend fmri=system/library/sunperf@0.5.11-0.175.3.13.0.1.0 type=incorporate
root@sparcbox:~#

注 -  studio-runtimedeveloper-studio-utilities 软件包是“组”软件包,提供它们是为了在以前安装中未包括它们的计算机上简化 Oracle Developer Studio 运行时库和 UNIX 实用程序(如 makesccs 和汇编程序)的安装。在最初使用标准 Oracle Solaris 服务器配置安装的计算机上,会频繁出现此情况。