2012-02-21 2 views
0

"성공적으로"마친 내 OS X Leopard (10.5.8) 용 MacPorts 설치 프로그램 (2.0.3)을 실행했습니다. 안타깝게도 port 명령을 사용할 수 없었기 때문에 설치 프로그램이 필요한 환경 변수를 설정하는 소위 "postflight"스크립트를 실행해야한다고 MacPorts Guide에서 살펴 보았습니다. 나는 (내가 here에서 다운로드 한) 수동으로 postflight 스크립트를 실행하려고했으나 실행은 다음과 같은 출력 실패 :MacPorts 설치 - 쉘 명령/Postflight 스크립트

Detected the bash shell. 
    Your shell already has the right PATH environment variable for use with 
    MacPorts! 
    Your shell already has the right MANPATH environment variable for use with 
    MacPorts! 
    Your shell already has the right DISPLAY environment variable for use with 
    MacPorts! 
    Adding [default] tag to sources.conf if needed... 
    couldn't read file "/Contents/Resources/upgrade_sources_conf_default.tcl": no 
    such file or directory 
    Updating port image format... 
    couldn't read file "/Contents/Resources/images_to_archives.tcl": no such file or 
    directory 
    Synchronizing the MacPorts installation with the project's rsync server... 
    -bash: __PREFIX__/bin/port: No such file or directory 
    An attempt to synchronize your recent MacPorts installation with the project's 
    rsync server failed! 
    Please run 'sudo port -d selfupdate' manually to find out the cause of the 
    error. 
    You have succesfully installed the MacPorts system, launch a terminal and try it 
    out! 
    Read the port(1) manual page and http://guide.macports.org for help, 
    http://www.macports.org/contact.php if you need to get in touch with The 
    MacPorts Project. 

어떤 아이디어? 그 (도움말 텍스트 등) 합리적인 뭔가 다시 온다면 그때는 당신의 $PATH가 현재 쉘에서 사용하지 않는 것이 단지

$ /opt/local/bin/port help 

:

답변

1

먼저 직접 port 명령을 호출합니다. (.bashrc를 테스트하지 않음) 로그 오프 시도가 다시 (이것이 당신의 .bashrc 파일이 올바르게 구성되어 있는지 테스트합니다) 단기적으로 그 해결을 위해 아니면 그냥 직접 PATH 환경 변수를 수정할 수 :

$ export PATH=$PATH:/opt/local/bin 
0

postflight 스크립트를 다운로드했지만 설치 패키지에 들어 있기 때문에 Contents /의 액세서리 스크립트에만 액세스 할 수 없습니다.

Tcl 스크립트가 누락 된 경우 이전 설치에서 업그레이드하기위한 것이므로 로그에 PATH가 이미 올바르게 구성되어 있지만 macports bin 디렉토리가 PATH 변수에서 PATH 변수의 위치가 잘못 될 수 있습니다 (예 : PATH 끝).

당신이 수행하는 경우 신선한 그냥 ... - 당신은 시스템의로만 구성된 [1]

[1] http://guide.macports.org/#installing.shell.postflight

에 따라 전에 MacPorts를에서 제공하는 설명서 페이지를 원하는 PATH 및 MANPATH를 필요로 할 수 있습니다 설치