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.