2014-12-24 3 views
2

Python 3.4 용 PyCrypto를 설치하려고하는데 C 컴파일 된 프로그램에 문제가 있습니다. "오류 : C 컴파일 된 프로그램을 실행할 수 없습니다"라고 표시됩니다. 누구나 해결 방법을 알고 있습니까?Mac에서 PyCrypto를 설치하는 중 오류가 발생했습니다.

코드 : 나를

brew install pip 
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pycrypto 

당신은 VIRTUALENV에서 실행할 수있는 근무

running build 
running build_py 
running build_ext 
running build_configure 
checking for gcc... gcc 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.out 
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/Users/briansabbath/Desktop/pycrypto-2.6.1': 
configure: error: cannot run C compiled programs. 
If you meant to cross compile, use `--host'. 
See `config.log' for more details 
Traceback (most recent call last): 
    File "setup.py", line 456, in <module> 
    core.setup(**kw) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 148, in setup 
    dist.run_commands() 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands 
    self.run_command(cmd) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command 
    cmd_obj.run() 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/build.py", line 126, in run 
    self.run_command(cmd_name) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/cmd.py", line 313, in run_command 
    self.distribution.run_command(command) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command 
    cmd_obj.run() 
    File "setup.py", line 251, in run 
    self.run_command(cmd_name) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/cmd.py", line 313, in run_command 
    self.distribution.run_command(command) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command 
    cmd_obj.run() 
    File "setup.py", line 278, in run 
    raise RuntimeError("autoconf error") 
RuntimeError: autoconf error 
+0

하지만 사제를 설치하는 동안 오류가 또 다른 문제 얻을 그게 전부 때문에, 그리고 아무튼 다른 제안을 따르십시오 (명령 줄 도구가 Xcode를 설치해야합니다) 도움이 될 다음 명령을 실행 't 일 :( –

답변

0

방법. 더 좋은 방법이 있다면 아래에 의견을 남겨주세요!

0

이것은 gcc가 좋아하는 C 컴파일러를 설치하지 않았 음을 나타냅니다. 내가 사제를 통해 설치하려고

xcode-select --install 
관련 문제