Solaris 11 GCC compiler

Source: Internet
Author: User

GCC is installed on Solaris 10 by default. It is located in/usr/SFW/bin/GCC and needs to be installed manually on port 11. Command is

PKG install gcc-3

After installation

/Usr/SFW/bin/GCC

Then you can use it.

/Usr/SFW/bin/GCC-V/usr/SFW/bin/GCC helloworld. c

After logging on, the user edits the. profile file, and shadow GCC as the installed GCC program.

Path = $ path:/usr/SFW/binexport path

After restart, you can directly use GCC.

Gcc-VGCC helloworld. c

References:

[1] installing GCC on Oracle Solaris 11. http://stackoverflow.com/questions/4664472/installing-gcc-on-oracle-solaris-11

[2] GCC not found. http://blog.csdn.net/yang15225094594/article/details/7922079

[3] GCC environment variables in Solaris 10. http://bbs.csdn.net/topics/240056395

[3] basic usage of VI editing under Solaris. http://blog.sina.com.cn/s/blog_405066070100nlrr.html

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.