Unix/linux Environment C Programming Primer Tutorial (1) Solaris 64bit Environment setup

Source: Internet
Author: User

Unix/linux version of the numerous, we recommend Unix/linux beginners to choose several typical unix/linux operating system to learn.

This article will take you to install the Solaris 11 64-bit and configure the C + + development environment.

The software required for this article

F2 Start Installation

34. Press F8 to restart the installation

35. Restart the interface to enter the boot directly

36. Login to switch to the user we just created. We load the synthesized image file Sol-11_1-repo-full.iso

Then we switch to the root user


37. Remove the connected state first

38. Find 7 again. Multi-G image file

39. Reopen the connected state and overwrite the settings

40. In the lower right-hand corner of the virtual machine interface, right-click the icon to locate the virtual drive disconnect and connect again

The disc is found as shown below.


41. We enter the disc image file

42. Setting up local update sources

Set the file for this disc to be updated locally

Note: If you want to restore an online update, you need to
# pkg Set-publisher-pe-o http://pkg.oracle.com/solaris/release Solaris//Recovery online Update

43. Search and install the desktop components

44. Pending command line return indicates that we have installed the end of our input reboot command restart

45. See an updated interface, and backup

46. Login Enter user name and password to enter the desktop

47. Click Add more software on the desktop to install C C + + programming components


48. Click Install and click Continue

49. Downloading the installation

50. Test the C and C + + programming environment for success

In order to take care of beginners to start the unfamiliar sense of command, we use the editor to create a C source file

Because C + + is also compatible with the vast majority of C's syntax so we also use C + + compiler to compile this source file test C + + development environment is also possible

Name is 1.c

Type the following code in the 1.c file

#include <stdio.h>int main () {      printf ("Hello World of Solaris\n");      return 0;      }
Right-click on the desktop to open the terminal

Type the command in the terminal sequence


Then type the following command

All right, for the space, some of the common settings for the Unix/linux operating system we're not here to talk about.

Do you have any questions welcome everyone in the following message, we will be the first time for you to solve.


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.