Šta je novo?

ERROR: No kernel headers found????? (Linux)

kUdtiHaEX

Super ridža
Administrator
Učlanjen(a)
18.07.2001
Poruke
18,291
Poena
1,445
Moja oprema  
CPU & Cooler
Intel® Core™ i5-9500F, NZXT Kraken Z63
GPU
Asus GTX 2070 Super
Storage
Samsung 980 Pro NVMe 1 TB
Kućište
NZXT H210i
Monitor
LG C2 42"
Miš & tastatura
Logitech G502, Keychron K8, Nuphy Air75, Ducky TKL One 2
Ostale periferije
Glupi HP štampač
Laptop
Apple Macbook Pro 14" M1
Tablet
Apple iPad Pro 11"
Mobilni telefon
Apple iPhone 13 Pro Max
Pametni uređaji
Apple Watch Ultra
Pristup internetu
  1. Kablovski internet
Pokusao sam da instaliram Lucent (ltmodem-8.26a9.tar.gz) i AC 97 integrisanu zvucnu karticu (korsteci oss397l-linux-v2x.tar.gz). U pitanju je Slackware 9.0.
Napominjem da iam samo 1 CD Slackwarea i da sam prilikom instalacije stavio FULL Instalation (almost 2gb).

Modem
-----------------
Kada sam raspakovao drajvere i pokrenuo ./build_module, posle nekoliko pritisnutih entera pojavila se sledeca poruka:

[code:1]=================================================
The modem drivers will be compiled for the current kernel version: 2.4.20
Enter, to start resource tests.

A kernel-headers-2.4.20 folder was not found,
with failure report:
creating cache ./config.cache
Checking OS
Checking machine type
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/ginstall -c
checking for make... yes
checking for ld... yes
Checking for kernel headers
... in /usr/src/linux: nope
... in /usr/src/kernel-headers-2.4.20: nope
... in /usr/src/linux-2.4.20: nope
ERROR: No kernel headers found.
If you have kernel headers installed but configure did not
find them, please try --with-kernel=dir, otherwise please
install the kernel headers from your distribution.
Two other common problems are unreadable kernel sources
(SuSE - build as root) or unconfigured kernel sources
(configure kernel sources and execute make dep in the
kernel source tree).

This report from the configure subsystem is being copied out to ../conf-report.txt .
Additional instructions for usage from the ./build_module interface is therein appended.

For some Linux distributions, running ./build_module as root may be necessary
for needed utilities to be accessed. [/code:1]

Nikada pre nisam imao takav problem iako sam iste te drajvere stavljao na RH. Takodje kada sam iz Control Centra u X-u pokusao da pogledam Kernel Configuration docekala me je poruka:

[code:1]The kernel configuration could not be read due to the following error:

cannot open /usr/src/linux/arch//config.in for reading
Either your kernel sources contain invalid configuration rules or you just found a bug in the KDE Kernel Configurator. [/code:1]


Zvucna
----------------
Slicna prica, pokrenuo sam ./install-oss, pojavio se znak OSS-a, upitao me je gde da stavi drajvere (/usr/lib/oss) i onda je usledila poruka:

[code:1]sndshields/2.4.20-UP.gz not available.
sndshields/2.4.20.gz not available.
sndshields/d41d8cd98f00b204e9800998ecf8427e-2.4.20.gz not available
sndshields/d41d8cd98f00b204e9800998ecf8427e.gz not available.
ls: sndshields/d41d8cd98f00b204e9800998ecf8427e-2.4.20*.gz: No such file or directory
sndshields/2.4.20-13.9.gz not compatible.
sndshields/2.4.20-18.9.gz not compatible.
sndshields/2.4.20-19.9.gz not compatible.
sndshields/2.4.20-4GB-athlon.gz not compatible.
sndshields/2.4.20-4GB.gz not compatible.
sndshields/2.4.20-8-athlon-UP.gz not compatible.
sndshields/2.4.20-8-i486-UP.gz not compatible.
sndshields/2.4.20-8-i586-UP.gz not compatible.
sndshields/2.4.20-8-i686-UP.gz not compatible.
sndshields/2.4.20-8smp-athlon-SMP.gz not compatible.
sndshields/2.4.20-8smp-i486-SMP.gz not compatible.
sndshields/2.4.20-8smp-i586-SMP.gz not compatible.
sndshields/2.4.20-8smp-i686-SMP.gz not compatible.
sndshields/2.4.20-9-athlon-UP.gz not compatible.
sndshields/2.4.20-9-i486-UP.gz not compatible.
sndshields/2.4.20-9-i586-UP.gz not compatible.
sndshields/2.4.20-9-i686-UP.gz not compatible.
sndshields/2.4.20-9.gz not compatible.
sndshields/2.4.20-9smp-athlon-SMP.gz not compatible.
sndshields/2.4.20-9smp-i486-SMP.gz not compatible.
sndshields/2.4.20-9smp-i586-SMP.gz not compatible.
sndshields/2.4.20-9smp-i686-SMP.gz not compatible.
sndshields/2.4.20-Corel-UP.gz not available.
No precompiled sndshield module was available for your kernel.
Kernel: Linux darkstar 2.4.20 #2 Mon Mar 17 22:02:15 PST 2003 i686 unknown
OSS build 3.9.7l-0308210953 (Linux-2.4.20-19.9 )

3.9.7l-030821
tail: /version.txt: No such file or directory
**** Kernel version information follows ****
rq=getshield
protocol=1
kernel=2.4.20
machine=i686
smp=-UP
sum=d41d8cd98f00b204e9800998ecf8427e
dir=/usr/lib/oss
version=3
kernelsum=9b7c0472ce2199f0d621af173e2d0bca
kerneldate=#2 Mon Mar 17 22:02:15 PST 2003
memsize=0
ossvers=
**** /boot/kernel.h ****

cat: /boot/kernel.h: No such file or directory

**** Failed to compile the sndshield module ****

sh ./check_shields.sh
drwxr-xr-x 7 root root 4096 Dec 12 2002 /usr/src/rpm
Cannot find the kernel include files from your system. For this reason
the sndshield module cannot be compiled.
Please look at oss/docs/README.kernelsetup for more instructions.
make: *** [sndshield] Error 1

**** Failed to compile the sndshield module ****

sh ./check_shields.sh
drwxr-xr-x 7 root root 4096 Dec 12 2002 /usr/src/rpm
Cannot find the kernel include files from your system. For this reason
the sndshield module cannot be compiled.
Please look at oss/docs/README.kernelsetup for more instructions.
make: *** [sndshield] Error 1 [/code:1]



Ima li ko ideju u cemu je problem?????
 
hecking for kernel headers
... in /usr/src/linux: nope
... in /usr/src/kernel-headers-2.4.20: nope
... in /usr/src/linux-2.4.20: nope
ERROR: No kernel headers found.

Mislim da je situacija sasvim jasna, zar ne?

Treba da instaliras source kernela; konkretno imas 2.4.20 - treba ti ili kernelsource-2.4.20-xxx.rpm sa instalacionog CD-a. Ili da nadjes (skines, npr) u tar.gz formatu i raspakujes tako da se nalazi u /usr/src/linux-2.4.20 direktorijumu i da eventualno kreiras jedan soft-link "linux" koji pokazuje na taj dir ("ln -s /usr/src/linux-2.4.20 /usr/src/linux").
 
Ili da stavim novi kernel koji sam vec poceo da skidam....
 
Ili da instaliras 2.4.21, sasvim svejedno - vazno da obezbedis source kernela na datoj lokaciji.
 
Nazad
Vrh Dno