LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1296|回复: 1

solaris10怎么装C header

[复制链接]
发表于 2008-11-11 10:59:45 | 显示全部楼层 |阅读模式
solaris 10,安装的时候选了桌面用户

安装了sun studio12, 现在有C,C++,FORTRAN 编译器了,可以正常使用

装了make ,

现在想编译一个程序的时候:
./configure 提示:
configure: warning: Standard C header files not found - may not compile

执行make提示:
"adf_cond.c", 第 21 行: 找不到包含文件: <stdio.h>
"adf_cond.c", 第 22 行: 找不到包含文件: <ctype.h>
"adf_cond.c", 第 23 行: 找不到包含文件: <string.h>
"adf_cond.c", 第 24 行: 找不到包含文件: <stdlib.h>

意思是没有安装C头文件,怎么安装呢?

看了下/usr/include 里面,确实没有这几个文件,
拷贝linux下的同名文件放进去,出错
pkg add 安装了GCC,还是没有头文件
 楼主| 发表于 2008-11-11 17:57:23 | 显示全部楼层
Google到了,放入安装盘,pkgadd安装几个包,详细见下面

http://forums.sun.com/thread.jspa?threadID=5112730
http://www.ayni.com/perldoc/perl5.8.0/README.solaris.html

You need to make sure the following packages are installed (this info is extracted from the Solaris FAQ):

for tools (sccs, lex, yacc, make, nm, truss, ld, as): SUNWbtool, SUNWsprot, SUNWtoo

for libraries & headers: SUNWhea, SUNWarc, SUNWlibm, SUNWlibms, SUNWdfbh, SUNWcg6h, SUNWxwinc, SUNWolinc

for 64 bit development: SUNWarcx, SUNWbtoox, SUNWdplx, SUNWscpux, SUNWsprox, SUNWtoox, SUNWlmsx, SUNWlmx, SUNWlibCx
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表