---
title: "Netbeans: optional language package is not install"
author: "RobertLeeJesus"
date: "2008-07-27T17:15:03Z"
tags: []
slug: "netbeans-optional-language-package-is-not-install"
draft: false
lastmod: "2008-07-27T17:15:03Z"
id: 220159
url: "https://hidefromall.iteye.com/blog/220159"
---

Compilers

If you are using netbeans to develop c/c++ program, it has 3 kind compilers availabe to us.

1\. Sun UCB Compatible C Compiler.

    Make command, /usr/ccs/bin/make  
    C compiler, /usr/ucb/cc  
    
2\. GNU Compiler Collection  
   
   Make command, /usr/sfw/bin/gmake  
   C Compiler, /usr/sfw/bin/gcc  
   C++ Compilter, /usr/sfw/bin/g++

3\. Sun Studio 12 Compiler Collection

   Make command, /opt/SUMWspro/bin/dmake  
   C Compiler, /opt/SUMWspro/bin/cc  
   C++ Compilter, /opt/SUMWspro/bin/CC

For the item #1, Sun provides neither a C nor a C++ compiler with Solaris\[TM] 9 and earlier. The /usr/ucb/cc script you are executing is not a real compiler, but the interface to the BSD Compatibility Package C compiler. It is a script that looks for the /usr/ccs/bin/ucbcc link to the acc driver of Sun's C compiler, and ultimately it calls Sun's C compiler with the /usr/ucb includes and libraries. Never use /usr/ucb/cc except if you want to compile for the obsoleted BSD compatibility.

So if you really want to use /opt/ucb/cc to compile the program, you need to make a link

```
ln -s /opt/SUMWspro/bin/cc /usr/ccs/bin/ucbcc

Then it works like 
/usr/ucb/cc --> /usr/ccs/bin/ucbcc -> /opt/SUMWspro/bin/cc



For the difference between Sun Studio and GCC compilers, please refer to 

http://wikis.sun.com/display/SunStudio/Dwarf+Differences+between+Sun+Studio+and+GCC+compilers


Configuration

1. Go to tools --> options. 
2. In the memo of Current Path, add the root dir of your compilers. 
   1). /usr/bin:/usr/sbin
   2). /usr/ucb
   3). /usr/sfw/bin
   4). /opt/SUMWspro/bin
3. The compilers will be identified automatically. 
```

   
Reference

 [http://www.gzsec.com/bbs/dispbbs.asp?boardID=17&ID=226&page=1](http://www.gzsec.com/bbs/dispbbs.asp?boardID=17&amp%3BID=226&amp%3Bpage=1)