build problem because of a broken link
build problem because of a broken link
I'm getting this error trying to build a driver for my nic card...
[root@localhost Linux]# make
#@make -C /lib/modules/2.6.18-53.1.14.el5xen/build M=/root/Linux modules
make: *** /lib/modules/2.6.18-53.1.14.el5xen/build: No such file or directory. Stop.
make: *** [modules] Error 2
When I go to..
I get...
lrwxrwxrwx 1 root root 54 Mar 17 09:59 build -> ../../../usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64
all in red... which means a broken "ln"
Anyone know where this ln should go to?
CentOS release 5 (Final) with xen kernel...
[root@localhost Linux]# make
#@make -C /lib/modules/2.6.18-53.1.14.el5xen/build M=/root/Linux modules
make: *** /lib/modules/2.6.18-53.1.14.el5xen/build: No such file or directory. Stop.
make: *** [modules] Error 2
When I go to..
I get...
lrwxrwxrwx 1 root root 54 Mar 17 09:59 build -> ../../../usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64
all in red... which means a broken "ln"
Anyone know where this ln should go to?
CentOS release 5 (Final) with xen kernel...
- AlanBartlett
- Forum Moderator
- Posts: 9323
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: build problem because of a broken link
Have you installed the relevant [b]kernel-devel[/b] package that matches your current kernel?
[b]yum list avail kernel-devel\*[/b]
and then [b]yum install [i][/i][/b]
This WIki article may be of interest http://wiki.centos.org/HowTos/BuildingKernelModules
HTH.
Alan.
[b]yum list avail kernel-devel\*[/b]
and then [b]yum install [i][/i][/b]
This WIki article may be of interest http://wiki.centos.org/HowTos/BuildingKernelModules
HTH.
Alan.
Re: build problem because of a broken link
Yes, I have.
- AlanBartlett
- Forum Moderator
- Posts: 9323
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: build problem because of a broken link
[quote]Anyone know where this ln should go to? [/quote]
It should go to /usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64 - as provided by the [i]kernel-devel[/i] package.
Alan.
It should go to /usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64 - as provided by the [i]kernel-devel[/i] package.
Alan.
Re: build problem because of a broken link
You need to go to Section 1 of:
http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
Because you are apparently running a xen kernel, you would run:
yum install kernel-xen-devel
to install the so-called "kernel-devel" package.
http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
Because you are apparently running a xen kernel, you would run:
yum install kernel-xen-devel
to install the so-called "kernel-devel" package.
Re: build problem because of a broken link
That fixed it . Strange. I added the development packages when building the server, strange it didn't pick that dev to add.
- AlanBartlett
- Forum Moderator
- Posts: 9323
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: build problem because of a broken link
[quote]Have you installed the relevant kernel-devel package that matches your current kernel?
yum list avail kernel-devel\*
and then yum install [/quote]
[quote]Yes, I have.[/quote]
Sorry but I work on facts, not assumptions. Typing the command I suggested earlier (you could even have done it with a cut & paste)
[b]yum list avail kernel-devel\*[/b]
would have shown you where your problem was.
This command
[b]rpm -qa kernel\*[/b]
would also have helped you.
Alan.
yum list avail kernel-devel\*
and then yum install [/quote]
[quote]Yes, I have.[/quote]
Sorry but I work on facts, not assumptions. Typing the command I suggested earlier (you could even have done it with a cut & paste)
[b]yum list avail kernel-devel\*[/b]
would have shown you where your problem was.
This command
[b]rpm -qa kernel\*[/b]
would also have helped you.
Alan.
Re: build problem because of a broken link
[root@vs2 Linux]# yum list avail kernel-devel\*
Loading "installonlyn" plugin
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Available Packages
kernel-devel.x86_64 2.6.18-53.1.14.el5 updates
I needed kernel-xen-devel.x86_64 to fix my issue.
Loading "installonlyn" plugin
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Available Packages
kernel-devel.x86_64 2.6.18-53.1.14.el5 updates
I needed kernel-xen-devel.x86_64 to fix my issue.
- AlanBartlett
- Forum Moderator
- Posts: 9323
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: build problem because of a broken link
Hints are given. Not necessarily explicit steps.
However [b]uname -rmi[/b] and [b]yum list available kernel\*[/b] would have been more precise hints from me. For that, I apologise.
Needless to say when I initially read
[quote]When I go to..
I get...
lrwxrwxrwx 1 root root 54 Mar 17 09:59 build -> ../../../usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64
all in red... which means a broken "ln"
Anyone know where this ln should go to? [/quote]
I [b]knew[/b] that the correct [b][i]kernel-devel[/i][/b] package had not been installed but, not wishing to cause any offence by just saying "[i]Install the kernel-devel package that matches your kernel[/i]", I phrased it as a rhetorical question.
[quote]Yes, I have.[/quote]
Was not a sensible reply.
Alan.
However [b]uname -rmi[/b] and [b]yum list available kernel\*[/b] would have been more precise hints from me. For that, I apologise.
Needless to say when I initially read
[quote]When I go to..
I get...
lrwxrwxrwx 1 root root 54 Mar 17 09:59 build -> ../../../usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64
all in red... which means a broken "ln"
Anyone know where this ln should go to? [/quote]
I [b]knew[/b] that the correct [b][i]kernel-devel[/i][/b] package had not been installed but, not wishing to cause any offence by just saying "[i]Install the kernel-devel package that matches your kernel[/i]", I phrased it as a rhetorical question.
[quote]Yes, I have.[/quote]
Was not a sensible reply.
Alan.