Я использую Ubuntu 20.04. Я хочу обновить драйверы, так как есть некоторые проблемы с выходом HDMI. Я попытался скомпилировать пакет alsa-driver, который я скачал с здесь. Вот результат, когда я запускаю ./configure
:
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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/dnaik/Miscellaneous/alsa-driver-1.0.25+dfsg
checking cross compile...
checking for directory with ALSA kernel sources... /home/dnaik/Miscellaneous/alsa-driver-1.0.25+dfsg/alsa-kernel
checking for directory with kernel source... /lib/modules/5.8.0-63-generic/build
checking for directory with kernel build... /lib/modules/5.8.0-63-generic/build
checking for kernel linux/version.h ... no
The file /lib/modules/5.8.0-63-generic/build/include/INCLUDE_VERSION_H does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /lib/modules/5.8.0-63-generic/build).
Что мне делать?
TL; DR - Не компилируйте ничего перед чтением текущих журналов или корректировкой некоторых конфигураций.
Подробности ниже.
Если вы уверены в том, чего пытаетесь достичь - тогда вам нужно установить все необходимые инструменты разработки до
sudo apt-get install build-essential linux-headers-generic
, а затем получить зависимости сборки для ALSA, включив репозитории исходного кода ( deb-src ) в /etc/apt/sources.list
вручную с помощью программного обеспечения и обновлений ( software-properties-gtk
) и выполнения
sudo apt-get build-dep alsa-driver
. Но обратите внимание, что вы пытаетесь скомпилировать почти та же версия 1.0.25 + dfsg alsa-driver, которая уже доступна в официальном репозитории - см. https://packages.ubuntu.com/source/focal/alsa-driver , вы можете получить ее автор apt-get source alsa-driver
. Таким образом, после компиляции вы не получите никаких различий, если соберете пакет с параметрами конфигурации по умолчанию. Более того, sudo make install
затруднит администрирование системы в будущем, вам следует использовать здесь checkinstall
или dpkg-buildpackage -uc -us
. Вероятно, вы добавите больше беспорядка, чем решите настоящую проблему.
Таким образом, лучший способ отладки - это найти действительную ошибку в уже установленной отлаженной версии. Вы действительно не можете догадаться, в чем проблема - в ядре, в ALSA, в PulseAudio и так далее.