予期しないトークン改行の近くでconfigureコマンドが見つかりません構文エラーを実行します
Execute Configure Command Not Found Syntax Error Near Unexpected Token Newline
sudo bash ./configure --prefix /home/xiaopeng18/Desktop/module/jpeg-9b/tmp --host=arm-linux --enable-shared
Ubuntuが./configureを実行すると、次のエラーが表示されます。
./configure: line 14: $' ': command not found ./configure: line 29: syntax error near unexpected token `newline' '/configure: line 29: `
その理由は、ソースファイルがウィンドウの下でコンパイルされているためである可能性があります。
cat-構成
You can see this character is displayed as ^M
解決策は次のとおりです。
sed -i 's/ $//' ./*