1

我正在尝试在 Solaris 11.4 系统中安装 solaris studio 12.6。我设置了发布者密钥和证书,如下所示:


 pkg set-publisher -c ./oracle/pkg.oracle.com.certificate.pem -k ./oracle/pkg.oracle.com.key.pem -G "*" -g https://pkg.oracle.com/solarisstudio/release solarisstudio

然后 sudo pkg install --accept developerstudio-126 命令给了我打击错误:


root@Wenge:/export/home/preethi# pkg install --accept developerstudio-126
Creating Plan (Running solver): |
pkg install: No matching version of developer/developerstudio-126 can be installed:
  Reject:  pkg://solarisstudio/developer/developerstudio-126@12.6-1.0.0.0
  Reason:  No version matching 'require' dependency developer/developerstudio-126/c++@12.6-1.0.0.0 can be installed
    ----------------------------------------
    Reject:  pkg://solarisstudio/developer/developerstudio-126/c++@12.6-1.0.0.0
             pkg://solarisstudio/developer/developerstudio-126/c++@12.6-1.0.0.1
    Reason:  No version for 'require' dependency on library/c++/stdcxx can be found
    ----------------------------------------
  Reject:  pkg://solarisstudio/developer/developerstudio-126@12.6-1.0.0.1
  Reason:  No version matching 'require' dependency developer/developerstudio-126/c++@12.6-1.0.0.1 can be installed
root@Wenge:/export/home/preethi# pkg install --accept developerstudio-125
Creating Plan (Running solver): -
pkg install: No matching version of developer/developerstudio-125 can be installed:
  Reject:  pkg://solarisstudio/developer/developerstudio-125@12.5-1.0.0.0
  Reason:  No version matching 'require' dependency developer/developerstudio-125/cc@12.5-1.0.0.0 can be installed
    ----------------------------------------
    Reject:  pkg://solarisstudio/developer/developerstudio-125/cc@12.5-1.0.0.0
    Reason:  No version for 'require' dependency on developer/library/lint can be found
    ----------------------------------------

Solaris unname -a

SunOS sys1 5.11 11.4.16.4.0 i86pc i386 i86pc

有人可以帮我解决这个问题吗?

仅将密钥和证书放置在本地系统中。我已经验证了这个命令并列出了所有可用的包:


NAME (PUBLISHER)                                  VERSION                    IFO
developer/developerstudio-125                     12.5-1.0.0.0               ---
developer/developerstudio-125/backend             12.5-1.0.0.0               ---
developer/developerstudio-125/c++                 12.5-1.0.0.0               ---
developer/developerstudio-125/cc                  12.5-1.0.0.0               ---
developer/developerstudio-125/code-analyzer       12.5-1.0.0.0               ---
developer/developerstudio-125/dbx                 12.5-1.0.0.0               ---
developer/developerstudio-125/dbxtool             12.5-1.0.0.0               ---
developer/developerstudio-125/dmake               12.5-1.0.0.0               ---
developer/developerstudio-125/fortran             12.5-1.0.0.0               ---
developer/developerstudio-125/library/c++-libs    12.5-1.0.0.0               ---
developer/developerstudio-125/library/c-libs      12.5-1.0.0.0               ---
developer/developerstudio-125/library/f90-libs    12.5-1.0.0.0               ---
developer/developerstudio-125/library/math-libs   12.5-1.0.0.0               ---
developer/developerstudio-125/library/oic-libs    12.5-1.0.0.0               ---
developer/developerstudio-125/library/perflib     12.5-1.0.0.0               ---
developer/developerstudio-125/library/studio-gccrt 12.5-1.0.0.0               ---
............................
...........................

我可以看到 c++ 可用:

root@Wenge:/export/home/preethi# pkg list -a pkg://solarisstudio/* | grep pkg://solarisstudio/developer/developerstudio-126/c++
root@Wenge:/export/home/preethi# pkg list -a pkg://solarisstudio/* | grep c++
developer/developerstudio-125/c++                 12.5-1.0.0.0               ---
developer/developerstudio-125/library/c++-libs    12.5-1.0.0.0               ---
developer/developerstudio-126/c++                 12.6-1.0.0.1               ---
developer/developerstudio-126/library/c++-libs    12.6-1.0.0.1               ---
developer/solarisstudio-122/c++                   12.2-1.0.0.0               ---
developer/solarisstudio-122/library/c++-libs      12.2-1.0.0.0               ---
developer/solarisstudio-123/c++                   12.3-1.0.0.0               ---
developer/solarisstudio-123/library/c++-libs      12.3-1.0.0.0               ---
developer/solarisstudio-124/c++                   12.4-1.0.0.0               ---
developer/solarisstudio-124/library/c++-libs      12.4-1.0.0.0               ---

在安装这个 solaris studio 之前,我需要安装任何其他依赖包吗?

4

2 回答 2

1

很可能您的证书和密钥由于某种原因已过期或未注册。尝试下载新的密钥和证书

root@Solaris:~/Desktop# sudo pkg set-publisher \
> -k ~/Desktop/pkg.oracle.com.key.pem \
> -c ~/Desktop/pkg.oracle.com.certificate.pem \
> -G "*" -g https://pkg.oracle.com/solarisstudio/release solarisstudio

验证发布者

  root@Solaris:~# pkg publisher
    PUBLISHER                   TYPE     STATUS P LOCATION
    solaris                     origin   online F http://pkg.oracle.com/solaris/release/
    solarisstudio               origin   online F https://pkg.oracle.com/solarisstudio/release/
  

 root@Solaris:~/Desktop# pkg publisher solarisstudio | grep Mirror   
    
    root@Solaris:~/Desktop# pkg list -a pkg://solarisstudio/(asterisk)
    NAME (PUBLISHER)                                  VERSION                    IFO
    developer/developerstudio-125 (solarisstudio)     12.5-1.0.0.0               ---
    developer/developerstudio-125/backend (solarisstudio) 12.5-1.0.0.0               ---
    ------------  snipped more than 100 lines ---------------
    
    root@Solaris:~/Desktop# pkg install --accept developerstudio-126
    ------------------------------------------------------------
    Package: pkg://solarisstudio/developer/developerstudio-126/studio-legal@12.6-1.0.0.1:20170815T160721Z
    License: devpro.OTN.license
    
    You acknowledge that your use of Oracle Developer Studio is subject to the Oracle Developer Studio OTN License Agreement.  The OTN License Agreement is located at : http://www.oracle.com/technetwork/licenses/studio-license-2980206.html
    
    
    
    
               Packages to install: 29
           Create boot environment: No
    Create backup boot environment: No
    
    DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
    Completed                              29/29   11083/11083  505.6/505.6  1.7M/s
    
    PHASE                                          ITEMS
    Installing new actions                   19396/19396
    Updating package state database                 Done 
    Updating package cache                           0/0 
    Updating image state                            Done 
    Creating fast lookup database                   Done 
    Updating package cache                           2/2 
    
    
    Set Path in your profile

    export PATH=$PATH:/opt/developerstudio12.6/bin
    export MANPATH=/opt/developerstudio12.6/man
于 2020-06-23T13:06:39.173 回答
0

谢谢你。已安装Solaris 11.4.20.4.0 版本,我可以成功安装Developerstudio12.6。

于 2020-06-29T10:01:56.220 回答