Aller au contenu principal

Linux Installation Problems on Cent OS

Thread needs solution

Hi,

Been trying to install this on our production centos boxes with little success. Before I purchased I did install the trial just fine on a test centos box.

The installer keeps saying there is a package dependency missing, which I can't see why because I've checked all the necessary packages are installed. If I skip the dependency part I get an error during install as follows:

Failed to find directory '/lib/modules/2.6.32-220.13.1.el6.x86_64/build' with the kernel sources.

However, if I do

[root@Prod1 2.6.32-220.13.1.el6.x86_64]# ls /lib/modules/2.6.32-220.13.1.el6.x86_64/
build modules.dep modules.networking modules.usbmap
extra modules.dep.bin modules.ofmap source
kernel modules.drm modules.order updates
modules.alias modules.ieee1394map modules.pcimap vdso
modules.alias.bin modules.inputmap modules.seriomap weak-updates
modules.block modules.isapnpmap modules.symbols
modules.ccwmap modules.modesetting modules.symbols.bin

As you can see build is in there.

Here's the output of the dependency checks:
[root@Prod1 2.6.32-220.13.1.el6.x86_64]# cat /proc/version
Linux version 2.6.32-220.13.1.el6.x86_64 (mockbuild@c6b6.bsys.dev.centos.org) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Tue Apr 17 23:56:34 BST 2012

[root@Prod1 2.6.32-220.13.1.el6.x86_64]# make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu

[root@Prod1 2.6.32-220.13.1.el6.x86_64]# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)

[root@Prod1 2.6.32-220.13.1.el6.x86_64]# yum list installed | grep kernel-devel
kernel-devel.x86_64 2.6.32-220.23.1.el6 @updates
kernel-devel.x86_64 2.6.32-358.2.1.el6 @updates

If anyone could please offer some assistance, as I really am stuck now.

Thanks,

0 Users found this helpful

Welcome to the world of Acronis - where there is never a dull moment :-)
(It has its quirks, but once set up, is generally OK)

From the install guide:
" For gcc, ensure that the version returned by the command is the same as in the gcc version in
step 1. "

From the output of "cat /proc/version", and "gcc -v", looks like they're different.

Is it possible for you to get the "correct" version of gcc? Or, update your kernel and gcc to the latest versions?  (Acronis has its quirks, it may be that this is causing your issue)

(BTW, I noticed that you have kernel-header modules for a kernel that you're not currently running)