2011-10-17 2 views
1

나는 에있다. Mac OS Snow Leopard 10.6.8. sudo port install yum을했을 때 다음 오류가 나타납니다. 어떤 생각을 어떻게 수정하고 제대로 yum을 설치할 수 있습니까?MacOS에서 YUM을 설치할 수 없습니다. 에서 빌드 스크립트를 실행하려고하는데 YUM을 설치해야합니다.

---> Computing dependencies for py24-nose 
---> Dependencies to be installed: py24-distribute 
---> Activating py24-distribute @0.6.24_0 Error: Target org.macports.activate returned: Image error: 
/opt/local/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg-info 
already exists and does not belong to a registered port. Unable to 
activate port py24-distribute. Use 'port -f activate py24-distribute' 
to force the activation. Error: Failed to install py24-distribute Log 
for py24-distribute is at: 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-distribute/py24-distribute/main.log 
Error: The following dependencies were not installed: py24-distribute 
Error: Unable to upgrade port: 1 Error: Unable to execute port: 
upgrade py24-nose failed To report a bug, see 
<http://guide.macports.org/#project.tickets> 

는 이전에 YUM을 설치 한 후, 나는 내가 제거하고 위의 오류를 얻을 수 MacPorts의를 사용하여 다시 설치 Segmentation Fault을 얻고 있었다.

+0

'port -f activate py24-distribute' 명령을 실행 해 보셨습니까? – bdares

+0

나는 그것을했고 YUM을 설치했다. 그러나 그 후 "yum install ant-contrib'을 실행했을 때 첫 번째 오류와 동일한 'Segmentation Fault'가 발생했습니다. 어떤 생각? 감사! – Sayanee

답변

5

나는 여기에 막대기가 잘못 붙어 있다고 생각합니다. 은 Mac에 YUM을 설치해야합니다. 사실 MacPorts의 형태로 패키지 관리자가 이미 완벽하게 갖추어져 있기 때문에 사실은 그야말로 광기입니다!

은 당신이 Mac 또는 Linux의 경우

... 의존성이 가능성이 사전 설치된 모든 가지고있어

을 말씀을 다시 읽어보십시오. ant-contrib 또는 yum을 설치해야 할 수도 있습니다.

키 비트가 "또는 무엇이 있습니까?" 이는 "또는 귀하의 패키지 관리자에 해당하는 명령"을 말하는 지루한 방법입니다. Red Hat 기반 시스템에서 패키지 관리자는 실제로 YUM입니다. 데비안 시스템에서는 APT입니다. Mac에서는 MacPorts입니다.

그래서, 당신의 YUM 설치를 제거하고 간단 할 : 이제 실제로 개미를 실행 진행할 수 있습니다

port install ant-contrib 

.

+0

설명을 위해 Tom에게 감사드립니다. Macport 설치를 통해 작업하는 Ant가 있습니다. – Sayanee

+0

10.6.8의 터미널에서이 명령을 실행하려고하면'port : command not found'가 표시됩니다. – supertrue

+1

@supertrue : [MacPorts 설치] (http://www.macports.org/install.php)가 있습니까? –