Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ C编译器无法创建可执行文件,OpenSolaris Erlang/OTP./configure错误_C++_C_Gcc_Erlang_Solaris - Fatal编程技术网

C++ C编译器无法创建可执行文件,OpenSolaris Erlang/OTP./configure错误

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

正在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-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"