2012-12-15 2 views
1

힘내 내가이 작동하지 않습니다 발견 오늘 내는 Mac OS X에서 잘 작동하는 데 사용됩니다. 이제 다시 시도하면 다음이 발생합니다.

$ sudo port install git-core 
Portfile changed since last build; discarding previous state. 
---> Computing dependencies for git-core 
---> Fetching archive for git-core 
---> Attempting to fetch git-core-1.8.0.2_0+credential_osxkeychain+doc+pcre+python27.darwin_10.x86_64.tbz2 from http://packages.macports.org/git-core 
---> Attempting to fetch git-core-1.8.0.2_0+credential_osxkeychain+doc+pcre+python27.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/git-core 
---> Attempting to fetch git-core-1.8.0.2_0+credential_osxkeychain+doc+pcre+python27.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/git-core 
---> Fetching distfiles for git-core 
---> Attempting to fetch git-1.8.0.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/git-core 
---> Attempting to fetch git-manpages-1.8.0.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/git-core 
---> Attempting to fetch git-htmldocs-1.8.0.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/git-core 
---> Verifying checksum(s) for git-core 
---> Extracting git-core 
---> Applying patches to git-core 
---> Configuring git-core 
---> Building git-core 
---> Staging git-core into destroot 
---> Installing git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27 
---> Activating git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27 
Error: org.macports.activate for port git-core returned: Image error: /opt/local/libexec/git-core/git-subtree already exists and does not belong to a registered port. Unable to activate port git-core. Use 'port -f activate git-core' to force the activation. 
Please see the log file for port git-core for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-core/git-core/main.log 
To report a bug, follow the instructions in the guide: 
    http://guide.macports.org/#project.tickets 
Error: Processing of port git-core failed 
21:51 [email protected]:~$ sudo port -f activate git-core 
---> The following versions of git-core are currently installed: 
--->  git-core @1.7.7.2_0+doc+pcre+python27 
--->  git-core @1.7.7.4_0+doc+pcre+python27 
--->  git-core @1.7.9_0+doc+pcre+python27 
--->  git-core @1.7.9.2_0+doc+pcre+python27 
--->  git-core @1.7.9.2_1+credential_osxkeychain+doc+pcre+python27 
--->  git-core @1.7.9.4_0+credential_osxkeychain+doc+pcre+python27 
--->  git-core @1.7.10_0+credential_osxkeychain+doc+pcre+python27 
--->  git-core @1.7.11.3_0+credential_osxkeychain+doc+pcre+python27 
--->  git-core @1.7.11.5_0+credential_osxkeychain+doc+pcre+python27 
--->  git-core @1.7.12.2_0+credential_osxkeychain+doc+pcre+python27 
--->  git-core @1.8.0.1_0+credential_osxkeychain+doc+pcre+python27 
--->  git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27 
Error: port activate failed: Registry error: Please specify the full version as recorded in the port registry. 

여전히 작동하지 않습니다. 내 사랑하는 자식을 어떻게 복구해야합니까?

+0

왜 오류가 당신과 전체 버전에서 지정할 알려줍니다 무엇을하지? (설치 한 ~ 10 개의 이전 버전을 제거하십시오) –

+0

이전 버전을 모두 함께 제거하는 방법은 무엇입니까? – qazwsx

+0

다음을보십시오 : http://guide.macports.org/#using.common-tasks.removeinactive – aag

답변

2

시스템에 git-core이 여러 개 설치되어있는 것이 문제입니다. 을 더 정확하게 입력해야합니다. 그렇지 않으면 특정 버전을 활성화하십시오.

예를 들어, 당신은 할 수 있습니다 :

sudo port install git-core @1.7.11.3_0+credential_osxkeychain+doc+pcre+python27 

는 버전 언급 한 변종 1.7.11.3_0을 선택합니다. 또는 수행하여 마지막 버전 :

sudo port install git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27