![bash を克服する方法: 予期しないトークン `)' の近くで構文エラーが発生する](https://rvso.com/image/169439/bash%20%E3%82%92%E5%85%8B%E6%9C%8D%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%3A%20%E4%BA%88%E6%9C%9F%E3%81%97%E3%81%AA%E3%81%84%E3%83%88%E3%83%BC%E3%82%AF%E3%83%B3%20%60)'%20%E3%81%AE%E8%BF%91%E3%81%8F%E3%81%A7%E6%A7%8B%E6%96%87%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%99%E3%82%8B.png)
パッケージを使用してrealtek alc665ドライバをインストールしようとしていますrealtek-linux-オーディオパック-4.06aDebian 10を実行しているラップトップ上のLinux用です。(直接見ることもできますこのリンク)
インストールするには、ファイルに含まれている、解凍されたディレクトリでrealtek-linux-audiopack-4.06a/Readme.txt
実行するという指示に従っています。実行すると、bash からの出力は次のようになります (最後の 2 行を確認してください)。./config
alsa-driver-1.0.14-4.06a
./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/dsaki/Downloads/realtek-linux-audiopack-4.06a/alsa- driver-1.0.14-4.06a
checking cross compile...
checking for directory with kernel source... /lib/modules/4.19.0-8-amd64/source
checking for directory with kernel build... /lib/modules/4.19.0-8-amd64/build
checking for kernel linux/version.h... yes
checking for kernel linux/autoconf.h... yes
checking for kernel version... 0.0.0
checking for GCC version... ./configure: eval: line 4836: syntax error near unexpected token `)'
./configure: eval: line 4836: `my_compiler_version=8.3.0-6)'
エラーが発生したファイルは次のとおりですconfigure
。エラーの原因と思われる部分全体を書き留めました: (行 4836 はコメントで示されています)
typevar=my_compiler_type
versionvar=my_compiler_version
ac_compiler_type=""
ac_compiler_version=""
for i in $my_compiler; do
case $i in
gcc-[0-9]*|*-gcc-[0-9]*)
if test -z "$ac_compiler_type"; then
ac_compiler_type=gcc
fi
if test -z "$ac_compiler_version"; then
ac_compiler_version=`echo $i | sed -e 's/^.*gcc-\([0-9.]\+\).*$/\1/'`
fi
;;
*gcc*|*GCC*)
if test -z "$ac_compiler_type"; then
ac_compiler_type=gcc
fi
;;
egcs-*) # LINE 4836 STARTS HERE
ac_compiler_type=egcs
if test -z "$ac_compiler_version"; then
ac_compiler_version=`echo $i | sed -e 's/egcs-\(.\+\)$/\1/'`
fi
;;
*cc*)
if test -z "$ac_compiler_type"; then
ac_compiler_type=cc
fi
;;
[0-9].[0-9]*)
if test -z "$ac_compiler_version"; then
ac_compiler_version="$i"
fi
;;
esac
done
eval $typevar="$ac_compiler_type"
eval $versionvar="$ac_compiler_version"
インストールを続行するにはこれを修正する必要があります。