Install problem

This is for discussing general topics about how to use VirtualBox.

Install problem

Postby Argonist » 3. Sep 2007, 18:07

hello,

i got the error message on vbox-install.log.

make KBUILD_VERBOSE=1 -C /lib/modules/2.6.18.2-34-default/build SUBDIRS=/tmp/vbox.5 SRCROOT=/tmp/vbox.5 modules
make[1]: Entering directory `/usr/src/linux-2.6.18.2-34-obj/i386/default'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.18.2-34-obj/i386/default'
make: *** [vboxdrv] Error 2


Have you an idea?

thank you in advance
Manuel
Argonist
 
Posts: 5
Joined: 3. Sep 2007, 12:28

Postby stefan.becker » 3. Sep 2007, 20:22

Yes, a good Idea is to post all Infos.
stefan.becker
Volunteer
 
Posts: 7606
Joined: 7. Jun 2007, 21:53

Postby Ingo » 4. Sep 2007, 07:01

Hi Argonist,
is it something like this?
http://forums.virtualbox.org/viewtopic.php?t=1493
Ingo
Volunteer
 
Posts: 731
Joined: 22. Aug 2007, 10:13
Location: Germany

Postby Argonist » 11. Sep 2007, 18:22

Sorry, I rely now. I installed kernel source, but it is still problem.

/var/log/vbox-install.log
Makefile:82: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make aga
in.. Stop.

Manu
Argonist
 
Posts: 5
Joined: 3. Sep 2007, 12:28

Postby Argonist » 11. Sep 2007, 18:34

look:

HomeLinux:/usr/src # rpm -qa | grep kernel
kernel-source-2.6.18.8-0.5
linux-kernel-headers-2.6.18.2-3
kernel-um-2.6.18.2-34
kernel-default-2.6.18.2-34
kernel-syms-2.6.18.8-0.5
kernel-docs-2.6.18.2-34
kernel-kdump-2.6.18.2-34
Argonist
 
Posts: 5
Joined: 3. Sep 2007, 12:28

Postby HappyTux » 11. Sep 2007, 19:41

Argonist wrote:Sorry, I rely now. I installed kernel source, but it is still problem.

/var/log/vbox-install.log
Makefile:82: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make aga
in.. Stop.

Manu


From this and your output below it suggests that the kernel headers are not linked properly assuming the uname -r returns 2.6.18.2-34 for your running kernel. What does this show using your kernel directory?

Code: Select all   Expand viewCollapse view
ls -l /lib/modules/2.6.22.1-cfs-v19/
total 440
lrwxrwxrwx  1 root root     23 2007-09-02 22:02 build -> /usr/src/linux-2.6.22.1
drwxr-xr-x 10 root root    240 2007-07-12 21:42 kernel
drwxr-xr-x  2 root root     80 2007-09-03 11:23 misc
-rw-r--r--  1 root root  83738 2007-09-03 11:23 modules.alias
-rw-r--r--  1 root root     69 2007-09-03 11:23 modules.ccwmap
-rw-r--r--  1 root root  53886 2007-09-03 11:23 modules.dep
-rw-r--r--  1 root root    739 2007-09-03 11:23 modules.ieee1394map
-rw-r--r--  1 root root    527 2007-09-03 11:23 modules.inputmap
-rw-r--r--  1 root root   2006 2007-09-03 11:23 modules.isapnpmap
-rw-r--r--  1 root root     74 2007-09-03 11:23 modules.ofmap
-rw-r--r--  1 root root  28491 2007-09-03 11:23 modules.pcimap
-rw-r--r--  1 root root    211 2007-09-03 11:23 modules.seriomap
-rw-r--r--  1 root root  36582 2007-09-03 11:23 modules.symbols
-rw-r--r--  1 root root 214312 2007-09-03 11:23 modules.usbmap
drwxr-xr-x  2 root root     80 2007-07-12 21:45 nvidia
lrwxrwxrwx  1 root root     23 2007-09-02 22:02 source -> /usr/src/linux-2.6.22.1


Which if the link above exists then should show the include directory under the build link of your compiled kernel source/pre-packaged kernel headers.

Code: Select all   Expand viewCollapse view
ls -l /lib/modules/2.6.22.1-cfs-v19/build/
total 6596
drwxr-sr-x 28 stephen src         680 2007-07-10 15:56 arch
drwxr-sr-x  2 stephen src        1144 2007-07-12 21:30 block
-rw-r--r--  1 stephen src        1637 2007-07-12 21:26 conf.vars
-rw-r--r--  1 stephen src       18693 2007-07-10 15:56 COPYING
-rw-r--r--  1 stephen src       91435 2007-07-10 15:56 CREDITS
drwxr-sr-x  2 stephen src        7872 2007-07-12 21:33 crypto
drwxr-sr-x 12 stephen src         856 2007-07-12 21:35 debian
drwxr-sr-x 64 stephen src        6440 2007-07-12 21:21 Documentation
drwxr-sr-x 67 stephen src        1808 2007-07-12 21:30 drivers
drwxr-sr-x 62 stephen src        7936 2007-07-12 21:33 fs
drwxr-sr-x 44 stephen src        1208 2007-07-12 21:26 include
drwxr-sr-x  2 stephen src         960 2007-07-12 21:30 init
drwxr-sr-x  2 stephen src         968 2007-07-12 21:30 ipc
-rw-r--r--  1 stephen src        1530 2007-07-10 15:56 Kbuild
drwxr-sr-x  5 stephen src        6112 2007-07-12 21:30 kernel
drwxr-sr-x  5 stephen src        6200 2007-07-12 21:33 lib
-rw-r--r--  1 stephen src       89876 2007-07-10 15:56 MAINTAINERS
-rw-r--r--  1 stephen stephen   50411 2007-07-12 21:21 Makefile
drwxr-sr-x  2 stephen src        3944 2007-07-12 21:30 mm
-rw-r--r--  1 stephen src      228664 2007-07-12 21:33 Module.symvers
drwxr-sr-x 41 stephen src        1480 2007-07-12 21:30 net
-rw-r--r--  1 stephen src       16930 2007-07-10 15:56 README
-rw-r--r--  1 stephen src        3119 2007-07-10 15:56 REPORTING-BUGS
drwxr-sr-x  9 stephen src        1816 2007-07-12 21:27 scripts
drwxr-sr-x  4 stephen src         968 2007-07-12 21:33 security
drwxr-sr-x 18 stephen src        1488 2007-07-12 21:33 sound
-rw-r--r--  1 stephen src           5 2007-07-12 21:26 stamp-arch-conf
-rw-r--r--  1 stephen src           5 2007-07-12 21:26 stamp-configure
-rw-r--r--  1 stephen src           5 2007-07-12 21:26 stamp-configure-arch
-rw-r--r--  1 stephen src           5 2007-07-12 21:26 stamp-configure-indep
-rw-r--r--  1 stephen src           5 2007-07-12 21:26 stamp-debian
-rw-r--r--  1 stephen src           5 2007-07-12 21:26 stamp-indep-conf
-rw-r--r--  1 stephen src           5 2007-07-12 21:35 stamp-kernel-headers
-rw-r--r--  1 stephen src           5 2007-07-12 21:33 stamp-kernel-image
-rw-r--r--  1 stephen src     1100471 2007-07-12 21:30 System.map
drwxr-sr-x  2 stephen src         256 2007-07-12 21:27 usr
-rwxr-xr-x  1 stephen src     9272164 2007-07-12 21:30 vmlinux


Now my code blocks above show me using my fully configured/compiled kernel source tree I suspect that you will need to create a symbolic link to the linux-kernel-headers-2.6.18.2-34 as I doubt the source package you installed is a fully configured tree it is just the basic package with maybe distribution patches applied that you can create a kernel from. So you will most likely need to do something like this to get VirtualBox to build the module it needs.

Code: Select all   Expand viewCollapse view
ln -s /usr/src/linux-kernel-headers-2.6.18.2-34 /lib/modules/2.6.18.2-34/build


Changing the paths to match where your distribution puts the header and kernel files.
HappyTux
 
Posts: 19
Joined: 11. Sep 2007, 19:16

Postby Argonist » 12. Sep 2007, 10:47

Thank you for helping. I solved my problem. I installed kernel and kernel source again, then it is working.
Argonist
 
Posts: 5
Joined: 3. Sep 2007, 12:28


Return to Using VirtualBox

Who is online

Users browsing this forum: No registered users and 11 guests