Netbeans: optional language package is not installed

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值