2017-03-09 2 views
0
내 간단한 팹 파일 내 FreeBSD 시스템에서 실행할 수 없습니다

을 실행할 수 없습니다.파이썬 패브릭 이진

/usr/bin/uname: /usr/bin/uname: cannot execute binary file.

답변

1

그것은 bash는 (1)의 맨 페이지에 따르면처럼 보인다 : 는하지만 난 여전히 오류가 우리가 떠들썩한 파티를 줄 수있는 유일한 입력을 의미

Bash is an sh-compatible command language interpreter that executes commands read from the start input or from a file.

하는 스크립트 나 입력 stdin 파이프를 통해. 그러나 -c 옵션을 사용하여 다음과 같이

-c If the -c option is present, then commands are read from the first non-option argument command_string,...

그래서 솔루션이 -c 옵션과 함께 쉘을 사용하는 것입니다 수 :

env.shell = '/usr/local/bin/bash -c' 

을 그리고 완벽하게 작동, 나는 '돈 패브릭 쉘이 서버에서 작동 할 때 유닉스 시스템에 대해 왜 이상한 지 알 수 없습니다.

+1

[docs/FAQS] (http://docs.fabfile.org/ko/1.6/faq.html#my-remote-system-doesn-t-have-bash-installed-by-default-do -i-need-to-install-bash) : "Fabric은 6bash를 염두에두고 작성되었지만 반드시 필요한 것은 아닙니다." 따라서 기본적으로 bash를 사용하지 않는 FreeBSD를 사용하려면 (Linux 사용자는 Bash가 FreeBSD의 기본 쉘이 아니라는 사실에 놀랐습니다. 실제로 Bash는 기본 설치에 포함되지 않습니다.) (https://www.freebsd.org/doc/en/articles/linux-users/shells.html)). Fabric을 FAQ에서 설명하는대로 적절히 구성해야합니다. – YellowShark