Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.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
Macos 安装sage时,C编译器无法创建可执行文件_Macos_Gcc_Sage - Fatal编程技术网

Macos 安装sage时,C编译器无法创建可执行文件

Macos 安装sage时,C编译器无法创建可执行文件,macos,gcc,sage,Macos,Gcc,Sage,我试图在我的mac 10.9.5中使用sage,在我键入make之后,我出现了错误C编译器无法创建可执行文件 你知道为什么吗?Xcode和命令行工具已安装 我必须承认,当我看上面的文件时,我有点不知所措。有人能帮我吗 This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created

我试图在我的mac 10.9.5中使用sage,在我键入make之后,我出现了错误C编译器无法创建可执行文件

你知道为什么吗?Xcode和命令行工具已安装

我必须承认,当我看上面的文件时,我有点不知所措。有人能帮我吗

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Sage configure 6.6.rc3, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = dhcp-147-65-172-203.impa.br
uname -m = x86_64
uname -r = 13.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
     Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 171 tasks, 1002 threads, 4 processors
Load average: 3.67, Mach factor: 1.35
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Applications/sage/src/bin
PATH: /Applications/sage/local/bin
PATH: /usr/local/bin
PATH: //anaconda/bin
PATH: /Library/Frameworks/Python.framework/Versions/3.4/bin
PATH: /Library/Frameworks/Python.framework/Versions/3.4/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Users/samuelguerin/usr/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /opt/X11/bin
PATH: /usr/local/CrossPack-AVR/bin
PATH: /usr/texbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2354: checking for a BSD-compatible install
configure:2422: result: /usr/bin/install -c
configure:2433: checking whether build environment is sane
configure:2488: result: yes
configure:2639: checking for a thread-safe mkdir -p
configure:2678: result: config/install-sh -c -d
configure:2685: checking for gawk
configure:2715: result: no
configure:2685: checking for mawk
configure:2715: result: no
configure:2685: checking for nawk
configure:2715: result: no
configure:2685: checking for awk
configure:2701: found /usr/bin/awk
configure:2712: result: awk
configure:2723: checking whether make sets $(MAKE)
configure:2745: result: yes
configure:2774: checking whether make supports nested variables
configure:2791: result: yes
configure:2919: checking whether to enable maintainer-specific portions of Makefiles
configure:2928: result: yes
configure:2945: checking for root user
configure:2954: result: no
configure:2994: checking build system type
configure:3008: result: x86_64-apple-darwin13.4.0
configure:3028: checking host system type
configure:3041: result: x86_64-apple-darwin13.4.0
configure:3172: checking for ar
configure:3188: found /usr/bin/ar
configure:3200: result: yes
configure:3221: checking for m4
configure:3237: found /usr/bin/m4
configure:3249: result: yes
configure:3270: checking for ranlib
configure:3286: found /usr/bin/ranlib
configure:3298: result: yes
configure:3319: checking for strip
configure:3335: found /usr/bin/strip
configure:3347: result: yes
configure:3367: checking for GNU or BSD tar
configure:3415: result: /usr/bin/tar
configure:3482: checking for latex
configure:3498: found /usr/texbin/latex
configure:3510: result: yes
configure:3534: checking for perl
configure:3552: found /usr/bin/perl
configure:3564: result: /usr/bin/perl
configure:3572: checking for Perl version 5.8.0 or later
configure:3583: result: yes
configure:3599: checking for dpkg
configure:3627: result: no
configure:3637: checking for dpkg-architecture
configure:3665: result: no
configure:3744: checking for gcc
configure:3771: result: gcc
configure:4000: checking for C compiler version
configure:4009: gcc --version >&5
gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4020: $? = 0
configure:4009: gcc -v >&5
Using built-in specs.
COLLECT_GCC=/Applications/sage/local/bin/gcc
COLLECT_LTO_WRAPPER=/Applications/sage/local/bin/../libexec/gcc/x86_64-apple-darwin11.4.2/4.9.2/lto-wrapper
Target: x86_64-apple-darwin11.4.2
Configured with: ../src/configure --prefix=/Users/karl.crisman/Downloads/sage-6.6/local --with-local-prefix=/Users/karl.crisman/Downloads/sage-6.6/local --with-gmp=/Users/karl.crisman/Downloads/sage-6.6/local --with-mpfr=/Users/karl.crisman/Downloads/sage-6.6/local --with-mpc=/Users/karl.crisman/Downloads/sage-6.6/local --with-system-zlib --disable-multilib --disable-nls --enable-languages=c,c++,fortran --disable-libitm --without-isl --without-cloog  
Thread model: posix
gcc version 4.9.2 (GCC) 
configure:4020: $? = 0
configure:4009: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4020: $? = 1
configure:4009: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4020: $? = 1
configure:4040: checking whether the C compiler works
configure:4062: gcc    conftest.c  >&5
sh: line 1:  1471 Trace/BPT trap: 5       /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find as 2> /dev/null
as: error: unable to find utility "as", not a developer tool or in PATH
configure:4066: $? = 1
configure:4104: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Sage"
| #define PACKAGE_TARNAME "sage"
| #define PACKAGE_VERSION "6.6.rc3"
| #define PACKAGE_STRING "Sage 6.6.rc3"
| #define PACKAGE_BUGREPORT "sage-devel@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "sage"
| #define VERSION "6.6.rc3"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4109: error: in `/Applications/sage':
configure:4111: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin13.4.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=
ac_cv_env_FC_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin13.4.0
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_TAR=/usr/bin/tar
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_found_ar=yes
ac_cv_prog_found_dpkg=no
ac_cv_prog_found_dpkg_arch=no
ac_cv_prog_found_latex=yes
ac_cv_prog_found_m4=yes
ac_cv_prog_found_ranlib=yes
ac_cv_prog_found_strip=yes
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
ax_cv_prog_perl_version=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Applications/sage/config/missing aclocal-1.14'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /Applications/sage/config/missing autoconf'
AUTOHEADER='${SHELL} /Applications/sage/config/missing autoheader'
AUTOMAKE='${SHELL} /Applications/sage/config/missing automake-1.14'
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP='cpp'
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FC='gfortran'
FCFLAGS=''
GCC_VERSION=''
GREP=''
GXX_VERSION=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /Applications/sage/config/missing makeinfo'
MKDIR_P='config/install-sh -c -d'
OBJEXT=''
PACKAGE='sage'
PACKAGE_BUGREPORT='sage-devel@googlegroups.com'
PACKAGE_NAME='Sage'
PACKAGE_STRING='Sage 6.6.rc3'
PACKAGE_TARNAME='sage'
PACKAGE_URL=''
PACKAGE_VERSION='6.6.rc3'
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='6.6.rc3'
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_FC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin13.4.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin13.4.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
found_ar='yes'
found_dpkg='no'
found_dpkg_arch='no'
found_latex='yes'
found_m4='yes'
found_ranlib='yes'
found_strip='yes'
host='x86_64-apple-darwin13.4.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin13.4.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Applications/sage/config/install-sh'
libdir='/Applications/sage/local/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "Sage"
#define PACKAGE_TARNAME "sage"
#define PACKAGE_VERSION "6.6.rc3"
#define PACKAGE_STRING "Sage 6.6.rc3"
#define PACKAGE_BUGREPORT "sage-devel@googlegroups.com"
#define PACKAGE_URL ""
#define PACKAGE "sage"
#define VERSION "6.6.rc3"

configure: exit 77

关键部分似乎是:
configure:4062:gcc conftest.c>&5 sh:line 1:1471 Trace/BPT trap:5/Applications/Xcode.app/Contents/Developer/usr/bin/Xcode-build-sdk/-find-as 2>/dev/null-as:error:找不到实用程序“as”,不是开发人员工具或在路径配置中:4066:$?=1
。您似乎没有安装命令行工具,或者无法使用汇编程序汇编代码。我已经下载并安装了它。我在xcode的首选项中做了这件事,并键入了
xcode选择--install
。我应该如何检查我的装配是否正常工作?谢谢你的回答用C语言创建一个“hello world”程序,并检查你是否可以编译它。你可以用
intmain(void){puts(“helloworld!”);返回0;}
——你应该在它的前面加上
#include
。将其保存在
hello.c
;编译它:
gcc hello.c
,然后(如果没有编译错误),运行它:
/a.out
。你应该看到一条众所周知的消息。如果失败,那么GCC的安装就有问题。如果“hello world”测试正常,我们可能需要深入研究输出中这些行的含义:
configure:4009:GCC-v>&5使用内置规范。COLLECT_GCC=/Applications/sage/local/bin/GCC COLLECT_LTO_WRAPPER=/Applications/sage/local/bin/。/libexec/GCC/x86_64-apple-darwin11.4.2/4.9.2/LTO-WRAPPER目标:x86_64-apple-darwin11.4.2配置为:../src/configure--使用系统ZLIB——禁用多个LIB——禁用NLS——使能语言= C、C++、FORTRAN——禁用ILL——没有ISLL——没有CULG线程模型:POSIX GCC版本4.92(GCC)< /C>。看来这不是在使用XCode。你好,世界!是的,它正在打印Hello world。关键部分似乎是:
configure:4062:gcc conftest.c>&5 sh:line 1:1471 Trace/BPT trap:5/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild-sdk/-find-as 2>/dev/null-as:error:找不到实用程序“as”,不是开发工具或路径配置:4066:$?=1
。您似乎没有安装命令行工具,或者无法使用汇编程序汇编代码。我已经下载并安装了它。我在xcode的首选项中做了这件事,并键入了
xcode选择--install
。我应该如何检查我的装配是否正常工作?谢谢你的回答用C语言创建一个“hello world”程序,并检查你是否可以编译它。你可以用
intmain(void){puts(“helloworld!”);返回0;}
——你应该在它的前面加上
#include
。将其保存在
hello.c
;编译它:
gcc hello.c
,然后(如果没有编译错误),运行它:
/a.out
。你应该看到一条众所周知的消息。如果失败,那么GCC的安装就有问题。如果“hello world”测试正常,我们可能需要深入研究输出中这些行的含义:
configure:4009:GCC-v>&5使用内置规范。COLLECT_GCC=/Applications/sage/local/bin/GCC COLLECT_LTO_WRAPPER=/Applications/sage/local/bin/。/libexec/GCC/x86_64-apple-darwin11.4.2/4.9.2/LTO-WRAPPER目标:x86_64-apple-darwin11.4.2配置为:../src/configure--使用系统ZLIB——禁用多个LIB——禁用NLS——使能语言= C、C++、FORTRAN——禁用ILL——没有ISLL——没有CULG线程模型:POSIX GCC版本4.92(GCC)< /C>。看来这不是在使用XCode。你好,世界!是的,它正在打印Hello world。关键部分似乎是:
configure:4062:gcc conftest.c>&5 sh:line 1:1471 Trace/BPT trap:5/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild-sdk/-find-as 2>/dev/null-as:error:找不到实用程序“as”,不是开发工具或路径配置:4066:$?=1
。您似乎没有安装命令行工具,或者无法使用汇编程序汇编代码。我已经下载并安装了它。我在xcode的首选项中做了这件事,并键入了
xcode选择--install
。我应该如何检查我的装配是否正常工作?谢谢你的回答用C语言创建一个“hello world”程序,并检查你是否可以编译它。你可以用
intmain(void){puts(“helloworld!”);返回0;}
——你应该在它的前面加上
#include
。将其保存在
hello.c
;编译它:
gcc hello.c
,然后(如果没有编译错误),运行它:
/a.out
。你应该看到一条众所周知的消息。如果失败,那么GCC的安装就有问题。如果“hello world”测试正常,我们可能需要深入研究输出中这些行的含义:
configure:4009:GCC-v>&5使用内置规范。COLLECT_GCC=/Applications/sage/local/bin/GCC COLLECT_LTO_WRAPPER=/Applications/sage/local/bin/。/libexec/GCC/x86_64-apple-darwin11.4.2/4.9.2/LTO-WRAPPER目标:x86_64-apple-darwin11.4.2配置为:../src/configure--使用系统ZLIB——禁用多个LIB——禁用NLS——使能语言= C、C++、FORTRAN——禁用ILL——没有ISLL——没有CULG线程模型:POSIX GCC版本4.92(GCC)< /C>。看来这不是在使用XCode。你好,世界!是的,它正在打印Hello world。