Steps for installing gcc on solaris9

Source: Internet
Author: User
Install gcc in solaris9-Linux general technology-Linux programming and kernel information. For more information, see. (1): Operating System
Solaris9
# Uname-
SunOS XADOMAIN 5.9 Generic_118559-11 i86pc i386 i86pc

(2) gcc and lib Libraries
Use
Gcc-3.4.1-sol9-intel-local.gz
And libiconv-1.8-sol9-intel-local.gz, the actual gcc-3.4.0-sol9-intel-local.gz
Gcc-3.4.0-sol9-intel-local.gz. You can also try it.
The automakesystem has been installed. Therefore, only make-3.80-sol9-intel-local.gz has been installed.

(3) Installation Process
You can use ssh to log on to the Solaris system as root (with the permission to modify files). If root cannot log on, you can
# Cd/etc/ssh
# Vi sshd_config.conf
Change PermitRootLogin no to PermitRootLogin yes
Then
# Cd/etc/init. d
#./Ssh restart
Or you can log on to the root user through reboot.
After login, drag the three .gz files to the/directory.
Then
# Gzip-d gcc-3.4.1-sol9-intel-local.gz
# Pkgadd-d gcc-3.4.1-sol9-intel-local
# Gzip-d libiconv-1.8-sol9-intel-local.gz
# Pkgadd-d libiconv-1.8-sol9-intel-local
# Gzip-d make-3.80-sol9-intel-local.gz
# Pkgadd-d make-3.80-sol9-intel-local
If you do not have automakeinstallation, you can install automake-1.7.2-sol9-intel-local.gz

(4) Configuration
PATH = $ PATH:/usr/local/bin
LD_LIBRARY_PATH =/usr/local/lib
MANPATH = $ MANPATH:/usr/local/man
CC = gcc
Export PATH
Export LD_LIBRARY_PATH
Export CC
Export MANPATH
Or directly add these to/etc/profile, and reboot will work, so you do not need to set them once every restart.

(5) Pay attention to the prompt when installing gcc. If I fail to install gcc, it is because there is not enough space to install gcc. To install gcc, at least 800 mb is required, leave 800 mb in/usr. I have stayed for more than 1 GB.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.