2017-01-02 11 views
0

解決する必要がある問題はほとんどありません。 最初にエラーがあります。 -bash:/Users/jay/.bash_profile:7行目: `fi 'bash_profile open cvとfiエラー

2番目に、opencvをインストールするための.bash_profileの更新中に問題が発生しました。 http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/

以下のコードを参考にしてください。

多くの感謝!

source '/Users/jay/Downloads/google-cloud-sdk/path.bash.inc' 
fi 
    source '/Users/jay/Downloads/google-cloud-sdk/completion.bash.inc' 
fi 

bash syntax for if statementsは、例えば次のとおりです。iffiが '開' ifのための 'クローズ' ステートメントがある)なしで

# added by Anaconda2 4.2.0 installer 
export PATH="/Users/jay/anaconda2/bin:$PATH" 
export PATH=/usr/local/bin:$PATH 

    source '/Users/jay/Downloads/google-cloud-sdk/path.bash.inc' 
fi 
    source '/Users/jay/Downloads/google-cloud-sdk/completion.bash.inc' 
fi 

# The next line updates PATH for the Google Cloud SDK. 
if [ -f /Users/jay/Downloads/google-cloud-sdk/path.bash.inc ]; then 
    source '/Users/jay/Downloads/google-cloud-sdk/path.bash.inc' 
fi 

# The next line enables shell command completion for gcloud. 
if [ -f /Users/jay/Downloads/google-cloud-sdk/completion.bash.inc ]; then 
    source '/Users/jay/Downloads/google-cloud-sdk/completion.bash.inc' 
+1

ご覧ください:http://www.shellcheck.net/ – Cyrus

答えて

0

あなたはfi文を持っています

if [ -f /var/log/messages ]; then 
    echo "/var/log/messages exists." 
fi 

ので、あなたのためにこれは次のようになります。

if [ -f '/Users/jay/Downloads/google-cloud-sdk/path.bash.inc']; then 
    source '/Users/jay/Downloads/google-cloud-sdk/path.bash.inc' 
fi 

し、次の行についても同様。

ファイルの最後に最後のfiがありません。

関連する問題