Категорії
Solaris

Правильная установка (и обновление) Solaris Studio

Есть 2 способа: просто скачать с сайта и скачивать через пакетный менеджер pkg. Рассмотрим второй способ, так как он более правильный.

Примечание.

На сайте oracle.com была данная заметка, но спустя время её убрали.

1) Генерация сертификатов.

Зайдите на https://pkg-register.oracle.com/ и нажмите ссылку Request Certificates . В итоге вы получите 1 сертификат (Oracle_Solaris_Studio.certificate.pem) и 1 ключ (Oracle_Solaris_Studio.key.pem).

2) Добавление нового publisher’a.

Полученные сертификаты положите в папку /var/pkg/ssl. Теперь добавьте новый publisher такой командой:

#pkg set-publisher -k /var/pkg/ssl/Oracle_Solaris_Studio.key.pem -c /var/pkg/ssl/Oracle_Solaris_Studio.certificate.pem -g https://pkg.oracle.com/solarisstudio/release/ solarisstudio

3) Поиск и установка Solaris Studio.

Замечу, что по ключевому слову solarisstudio (хотя называется именно так) пакет напрочь не хотел находится. Пришлось искать пакет по слову studio. Далее, выбираете нужную версию и ставите как обычный пакет.

Один коментар до “Правильная установка (и обновление) Solaris Studio”

не убрали а переместили на послевыбора сертификатов 🙂
вот полный вариант
How to Install this Oracle Solaris Studio Support Certificate

Download the provided key and certificate files, called Oracle_Solaris_Studio.key.pem and Oracle_Solaris_Studio.certificate.pem using the buttons above. Don’t worry if you get logged out, or lose the files. You can come back to this site later and re-download them. We’ll assume that you downloaded these files into your Desktop folder, ~/Desktop/.
Use the following commands to make a directory inside of /var/pkg to store the key and certificate, and copy the key and certificate into this directory. The key files are kept by reference, so if the files become inaccessible to the packaging system, you will encounter errors.

$ sudo mkdir -m 0755 -p /var/pkg/ssl
$ sudo cp -i ~/Desktop/Oracle_Solaris_Studio.key.pem /var/pkg/ssl

$ sudo cp -i ~/Desktop/Oracle_Solaris_Studio.certificate.pem /var/pkg/ssl

Add the publisher:

$ sudo pkg set-publisher \
-k /var/pkg/ssl/Oracle_Solaris_Studio.key.pem \
-c /var/pkg/ssl/Oracle_Solaris_Studio.certificate.pem \
-G ‘*’ -g https://pkg.oracle.com/solarisstudio/release solarisstudio

Check your publisher settings, there should be no unrelated mirrors set up. To check for any set up mirrors, type:

$ pkg publisher solarisstudio | grep Mirror

If the output is empty, you have no unrelated mirrors. If not remove unrelated mirrors by typing:

$ sudo pkg set-publisher -M http://mirror1.x.com -M http://mirror2.y.com … solarisstudio

To see the packages supplied by this publisher, type:

$ pkg list -a pkg://solarisstudio/*

If you use the Package Manager graphical application, you will be able to locate the newly discovered packages when you restart the Package Manager.

To install the Oracle Solaris Studio tools, type:

Version

Command
12.3

$ sudo pkg install solarisstudio-123

12.2

$ sudo pkg install solarisstudio-122

Note – Oracle Solaris Studio has dependencies on Solaris packages, which requires the solaris publisher to be configured. You can verify configured publishers with the following command:

$ pkg publisher

To start the Oracle Solaris Studio IDE, if installed, type one of the following commands:

Version

Command
12.3

$ /opt/solarisstudio12.3/bin/solstudio &

12.2

$ /opt/solstudio12.2/bin/solstudio &

Note – Because the Oracle Solaris Studio software product components and man pages are not installed into the system directories /usr/bin/ and /usr/share/man, you might need to change your PATH and MANPATH environment variables to enable use of the Oracle Solaris Studio software. Add the following to your PATH and MANPATH environment variables:

Version

Paths
12.3

Add to PATH: /opt/solarisstudio12.3/bin
Add to MANPATH: /opt/solarisstudio12.3/man

12.2

Add to PATH: /opt/solstudio12.2/bin
Add to MANPATH: /opt/solstudio12.2/man

Залишити коментар до vados Скасувати коментар

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *

Домашняя страничка Andy
Записки молодого админа
Самостоятельная подготовка к Cisco CCNA
Самостоятельная подготовка к Cisco CCNP
Powered by Muff