Sun Studio 10 x86に関するページ

Sunの開発環境です。60日間評価版ライセンスでインストールしてみました。

入手

入手ファイル

Sun Studio 10のページから評価ソフトウェアの入手をたどってダウンロードします。

パッチ

Sun Studio 10のパッチ

Sun Studio 10 Patchesページからダウンロードします。

2005/04/24現在のSunStudio10パッチ情報
パッチID リビジョン リリース日 備考
117831 02 2005/04/15 C++コンパイラ
117846 03 2005/04/13 コンパイラ共通
117835 02 2005/04/18 Fortran95コンパイラ
117837 03 2005/03/31 Cコンパイラ
117841 02 2005/04/18 Fortarn95ライブラリ
117839 01 2005/03/24 dmakeツール
117845 01 2005/04/01 dbxツール
118679 01 2005/03/24 性能解析ツール

OSのパッチ

2005.4.24現在、Solaris10用のパッチはありません。

SunStudio 10のインストール

インストール実施

まず、studio10-sol-installer.tarを展開します。

# tar xf studio10-sol-installer.tar
# ls
installer                      studio10-sol-x86-src.tar
studio10-sol-installer.tar     studio10-sol-x86-sun_perf_lib.tar
studio10-sol-x86-j2sdk.tar     studio10-sol-x86-tools.tar
#

そして、インストーラをコマンドライン環境用で実行します。

# ./installer -nodisplay
Extracting the tar files...
Do you want to remove the download tar files? [y/n]: y

Welcome to the Install Wizard for Sun Studio 10 developer tools, an integrated
set of tools for the development and deployment of enterprise-class
applications.

   <継続するには Enter キーを押してください。> {"!" 終了} 

[Enter]キーを押すと、ライセンスが表示されます。最後まで表示されると、ライセンスに同意するかどうか聞いてきます。

(ライセンスが表示される)

   Accept this agreement by typing "Accept" 
   at the following prompt.  If you do not accept this agreement, 
   type "Decline", or select "!" to exit. {"<" 戻る, "!" 終了} Accept

"Accept"とタイプするとインストールに移ります。インストールする製品種類を聞いてきます。
"Solaris patches"は、現状はSolaris 8/9用のものだけなので[No Install]にします。(Installでも支障はないと思われます)
"J2SE SDK 1.4.2 Solaris OS"は、Solaris10標準搭載のJ2SE SDK 1.4.2があるので、[No Install]にします。

Select the components you want to install by clicking the radio button in the
Default Install column or Custom Install column. If you choose a Custom
Install, you can select which subcomponents you want to install. To continue,
click Next.

     No Install  Default Install  Custom Install  Product
     ----------  ---------------  --------------  -------
 0.  [ ]         [X]              [ ]             Solaris patches
 1.  [ ]         [X]              [ ]             Sun Studio Software
 2.  [ ]         [X]              [ ]             Documentation
 3.  [ ]         [X]              [ ]             Source Distribution
 4.  [ ]         [X]              [ ]             Sun Performance Library
 5.  [ ]         [X]              [ ]             J2SE SDK 1.4.2 Solaris OS
Patches
 6.                                               Done
   Enter the number next to the product you wish to change.  Select "Done" when
   finished [6] {"<" 戻る, "!" 終了}: 0

Selected: Solaris patches

1. No Install
2. Default Install
3. Custom Install

   Selection for Solaris patches [2] {"<" 戻る, "!" 終了} 1

Select the components you want to install by clicking the radio button in the
Default Install column or Custom Install column. If you choose a Custom
Install, you can select which subcomponents you want to install. To continue,
click Next.

     No Install  Default Install  Custom Install  Product
     ----------  ---------------  --------------  -------
 0.  [X]         [ ]              [ ]             Solaris patches
 1.  [ ]         [X]              [ ]             Sun Studio Software
 2.  [ ]         [X]              [ ]             Documentation
 3.  [ ]         [X]              [ ]             Source Distribution
 4.  [ ]         [X]              [ ]             Sun Performance Library
 5.  [ ]         [X]              [ ]             J2SE SDK 1.4.2 Solaris OS
Patches
 6.                                               Done
   Enter the number next to the product you wish to change.  Select "Done" when
   finished [6] {"<" 戻る, "!" 終了}: 5

Selected: J2SE SDK 1.4.2 Solaris OS Patches

1. No Install
2. Default Install
3. Custom Install

   Selection for J2SE SDK 1.4.2 Solaris OS Patches [2] {"<" 戻る, "!" 終了} 1

Select the components you want to install by clicking the radio button in the
Default Install column or Custom Install column. If you choose a Custom
Install, you can select which subcomponents you want to install. To continue,
click Next.

     No Install  Default Install  Custom Install  Product
     ----------  ---------------  --------------  -------
 0.  [X]         [ ]              [ ]             Solaris patches
 1.  [ ]         [X]              [ ]             Sun Studio Software
 2.  [ ]         [X]              [ ]             Documentation
 3.  [ ]         [X]              [ ]             Source Distribution
 4.  [ ]         [X]              [ ]             Sun Performance Library
 5.  [X]         [ ]              [ ]             J2SE SDK 1.4.2 Solaris OS
Patches
 6.                                               Done
   Enter the number next to the product you wish to change.  Select "Done" when
   finished [6] {"<" 戻る, "!" 終了}: 6

インストールする製品種別を指定したら、"6"をタイプします。

インストール先ディレクトリを聞いてきます。デフォルトの/optのままなので、そのまま[Enter]キーを押します。

Enter the directory name where you want to install the product.

   Studio Software [/opt] {"<" 戻る, "!" 終了} [Enter]

シリアル番号を聞いてきます。60日間評価ライセンスの場合は、"2"をタイプします。

Select "Trial Serial Number" to generate an trial serial number. This serial
number will expire in 60 days. 

Please write down this serial number for later reference.

1. Enter serial number directly
2. Trial Serial Number (Generates trial serial number)

   Serial Number Option [1] {"<" 戻る, "!" 終了} 2

インストール確認が表示されます。

ディスク容量を確認中です。


次の項目がインストールされます:

製品: Sun Studio Software
位置: /opt
サイズ: 630.33 MB
-----------------------
     Standalone Tools: DBX Debugging Tools     15.36 MB
Sun Studio 10 Demos    9 bytes
Standalone Tools: Building Software    2.02 MB
IDE    48.07 MB
External editors    290.43 MB
Compilers C++    182.97 MB
X-designer    34.82 MB
Compilers C    27.89 MB
Garbage Collectors    2.45 MB
Performance Tools    6.67 MB
Demos    385.95 KB
Compilers Fortran 95    65.71 MB

製品: Documentation
位置: /opt
サイズ: 12.58 MB
-----------------
     Documentation Set    12.58 MB

製品: Source Distribution
位置: /opt
サイズ: 2.01 MB
-----------------------
     Sun Studio 10 STLPort    1.83 MB
Exuberant ctags source code    254.88 KB
Red-Black Tree Library 1.1    518.51 KB
DwarfLibrary 20.4    1.26 MB

製品: Sun Performance Library
位置: /opt
サイズ: 145.25 MB
---------------------------
     Sun Performance Library    178.15 MB



インストールの準備完了

1. インストール開始
2. 最初に戻る
3. インストール終了

    次の処理を選択してください。 [1] {"<" 戻る, "!" 終了} 1

"1"を入力すると、インストールが開始されます。

Sun Studio Software をインストール中
|-1%--------------25%-----------------50%-----------------75%--------------100%|

Documentation をインストール中
|-1%--------------25%-----------------50%-----------------75%--------------100%|

Source Distribution をインストール中
|-1%--------------25%-----------------50%-----------------75%--------------100%|

Sun Performance Library をインストール中
|-1%--------------25%-----------------50%-----------------75%--------------100%|


インストールの詳細:

     製品                       結果        詳細
 1.  Sun Studio Software      インストール済み  利用可
 2.  Documentation            インストール済み  利用可
 3.  Source Distribution      インストール済み  利用可
 4.  Sun Performance Library  インストール済み  利用可

 5. 完了

   詳細を表示したい項目を対応する番号で選択してください。継続する場合は 5 を入力
してください [5] {"!" 終了}: 5

"5"を入力します。

The installation and licensing log files are located at /var/sadm/install/logs.
To view a log file, type at the prompt:
% cd /var/sadm/install/logs; more <filename> 


If you installed any component of the Sun Studio 10 developer tools on a
network server, you can use the email template /<install-
directory>/SUNWspro/READMEs/email_template.txt to send getting started
information to the developers who use the network-installed software.


Be sure to register the product using the Registration Wizard available from
the integrated development environment (IDE).


To run the IDE, type at the prompt:
% sunstudio 


   <継続するには Enter キーを押してください。> {"<" 戻る, "!" 終了} [Enter]
#

パッチの適用

# ls
117831-02.zip  117837-03.zip  117841-02.zip  117846-03.zip
117835-02.zip  117839-01.zip  117845-01.zip  118679-01.zip
# find . -name "*.zip" -exec unzip {} \;
   :
# patchadd -d 117846-03
# patchadd -d 117831-02 
# patchadd -d 117835-02
# patchadd -d 117837-03
# patchadd -d 117839-01
# patchadd -d 117841-02
# patchadd -d 117845-01
# patchadd -d 118679-01
#    

利用設定

ユーザ環境

SunStudioとGCCとの設定切り替え