/usr/ucb/cc: language optional software package not installed
2015-05-11 10:46
363 查看
0 down vote favoriteI tried to compile some C code to get object file from a shell prompt:$cc a.c But this gives me the following error:/usr/ucb/cc: language optional software package not installedHow can I compile C code?
First, you should probably remove /usr/ucb from your PATH as this directory is quite obsolete now. It was meant to ease people migrating from SunOS 4 to Solaris 2 a couple of decades ago but doesn't make much sense these days. Especially this cc commands
which set specific flags to compile BSDish code.
Second, all current Solaris releases comes with a C compiler out of the box but it is located in a directory which might not be in your PATH, /usr/sfw/bin and is named gcc (Gnu compiler).
use
or
Alternatively, you might have already installed (or you can install) the Solaris Studio compiler. In that case, its path would be <installation-dir>/bin/cc (eg: /opt/SUNWspro/bin/cc or /opt/SolarisStudio11/bin/cc etc ...)
1 down vote | It is unfortunate that sun ever shipped /usr/ucb/cc; you would thinkit was compatible with SunOS 4; instead it compatible with some veryold version of 4.2 but it also required the installation of theSunPro (Now Solaris Studio) compilers. These compilers can be downloaded from http://www.oracle.com/technetwork/server-storage/solarisstudio/downloads/index.html under the following license terms (quoted from the above page) Provides perpetual no-cost license for production use and the development of commercial applications.
|
which set specific flags to compile BSDish code.
Second, all current Solaris releases comes with a C compiler out of the box but it is located in a directory which might not be in your PATH, /usr/sfw/bin and is named gcc (Gnu compiler).
use
/usr/sfw/bin/gcc
or
[code]PATH=$PATH:/usr/sfw/bin gcc
Alternatively, you might have already installed (or you can install) the Solaris Studio compiler. In that case, its path would be <installation-dir>/bin/cc (eg: /opt/SUNWspro/bin/cc or /opt/SolarisStudio11/bin/cc etc ...)
相关文章推荐
- Netbeans: optional language package is not installed
- Netbeans: optional language package is not install
- SharePoint 2013 解决 The language-neutral solution package was not found.
- Office 2010 安装失败,日志报The software protection platform service is not installed
- innobackupex: Error: Failed to connect to MySQL server as DBD::mysql module is not installed at /usr
- android 安装提示 app not installed the package appears to be corrupt
- Package com.awesomeproject sig natures do not match the previously installed version; ignoring!
- Could not extract package's data directory. Are you sure that your installed application is debuggab
- 使用rpm -q mysql 出现 package mysql is not installed
- Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
- Angular 中The “@angular/compiler-cli” package was not properly installed
- Package xresprobe is not installed错误
- How to get rid of - package "1 not fully installed or removed"
- [Centos] mod_wsgi 安装流程以及遇到问题解决办法。apxs: command not found 或 Sorry, Python developer package does not appear to be installed.
- PHP 编译问题PEAR package PHP_Archive not installed的解决
- Angular4.0 启动项目时,报错:The “@angular/compiler-cli” package was not properly installed
- Unable to get package info for com.example.sampletest; is package not installed?
- angular2项目下载后运行以及报错,The "@angular/compiler-cli" package was not properly installed
- 更新node后,pomelo异常 not a package /usr/local/bin/pomelo
- Caused by: java.lang.IllegalStateException: package not installed?