C++ C编译器无法创建可执行文件,OpenSolaris Erlang/OTP./configure错误
正在OpenSolaris上运行OTP14B03的C++ C编译器无法创建可执行文件,OpenSolaris Erlang/OTP./configure错误,c++,c,gcc,erlang,solaris,C++,C,Gcc,Erlang,Solaris,正在OpenSolaris上运行OTP14B03的/configure脚本,并获得以下输出 Ignoring the --cache-file argument since it can cause the system to be erroneously configured Disabling caching checking build system type... i386-pc-solaris2.11 checking host system type... i386-pc-solar
/configure
脚本,并获得以下输出
Ignoring the --cache-file argument since it can cause the system to be erroneously configured
Disabling caching
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
链接器找不到
值Xa.o
对象文件
根据,这要么意味着您的系统缺少编译器所需的包,要么意味着已安装所需的包,但您的默认库路径没有反映它
作为快速检查,您可以尝试将/usr/ccs/lib
添加到库路径:
./configure LDFLAGS="-L/usr/ccs/lib"
请发布
config.log
的相关部分,否则无法判断问题所在。如果这样做,请您投票表决我的问题,solaris2.11表示Solaris 11 Express或OpenSolaris发行版pkg搜索值Xa.o
应显示要安装的软件包的名称。不幸的是,S11 Express将它放在了名为developer/library/lint
的软件包中,不使用lint的人通常认为不需要安装该软件包。
./configure LDFLAGS="-L/usr/ccs/lib"