make install problem with i2c package
System: Red Hat 7.2, 2.4.7-10 kernel
download: i2c-2.7.0.tar.gz
Makefile: default (include files -> /usr/local/include)
compile seemed to go OK.
make install (ran as root) failed with messages:
grep: /lib/modules/2.4.7-10/build/.config: No such file or directory
(true)
Note: /lib/modules/2.4.7-10/build -> ../../../usr/src/linux-2.4.7-10/, contents of which are
abi/ CREDITS include/ lib/ net/ scripts/ arch/ Documentation/ init/ MAINTAINERS README configs/ drivers/ ipc/ Makefile REPORTING-BUGS COPYING fs/ kernel/ mm/ Rules.make
contents of configs is
kernel-2.4.7-athlon.config kernel-2.4.7-i586-smp.config kernel-2.4.7-athlon-smp.config kernel-2.4.7-i686.config kernel-2.4.7-i386-BOOT.config kernel-2.4.7-i686-debug.config kernel-2.4.7-i386.config kernel-2.4.7-i686-enterprise.config
kernel-2.4.7-i386-smp.con
other messages from install:
install: `/lib/modules/2.4.7-10smp' is a directory
install: `2.4.7-10BOOT' is a directory
install: `2.4.7-10enterprise' is a directory
install: `2.4.7-10debug' is a directory
make: *** [install-kernel] Error 1
No include files were installed in /usr/local/include. I did not have this directory, so I created it (as root) and tried again: same result.
"Error 1" doesn't tell me much. Unfortunately I can't find my O'Reilly Make book.
I ran rpm -qa | grep i2c and got nothing.
Any ideas?
John Palsedge - SIlverthorne, Colorado
Hi John:
Quoted 19 lines · John Palsedge
System: Red Hat 7.2, 2.4.7-10 kernel
download: i2c-2.7.0.tar.gz
Makefile: default (include files ->/usr/local/include)compile seemed to go OK.
make install (ran as root) failed with messages:
grep:
/lib/modules/2.4.7-10/build/.config: No such file or directory(true)Note:
/lib/modules/2.4.7-10/build-> ../../../usr/src/linux-2.4.7-10/, contents of which areabi/ CREDITS include/ lib/ net/ scripts/ arch/ Documentation/ init/ MAINTAINERS README configs/ drivers/ ipc/ Makefile REPORTING-BUGS COPYING fs/ kernel/ mm/ Rules.make
Quoted 7 lines
contents of configs is
kernel-2.4.7-athlon.config kernel-2.4.7-i586-smp.config kernel-2.4.7-athlon-smp.config kernel-2.4.7-i686.config kernel-2.4.7-i386-BOOT.config kernel-2.4.7-i686-debug.config kernel-2.4.7-i386.config kernel-2.4.7-i686-enterprise.configkernel-2.4.7-i386-smp.con
<snip>
Pick one of these, as appropriate to your system, and copy it to /usr/src/linux-2.4/.config
Then "make clean" in both i2c and lm_sensors2. Now the build and install should proceed ok.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Thank you for your instant response. You sure don't get that from Microsquash!
I tried what you suggested: I copied
kernel-2.4.7-athlon.config
into /usr/src/linux-2.4/.config as I have an AMD athlon processor. I then did make clean on both the i2c and lm makefiles. A lot of stuff was removed. And then make install on i2c.
I got the same "Error 1" message but did not get the message
grep: /lib/modules/2.4.7-10/build/.config: No such file or directory
Don't spoil your Sunday on it. I am not an expert kernel builder so it is possible that there is something I should know that I don't.
Quoted 34 lines · Mark M. Hoffman
Hi John:
Quoted 27 lines · John Palsedge
System: Red Hat 7.2, 2.4.7-10 kernel
download: i2c-2.7.0.tar.gz
Makefile: default (include files ->/usr/local/include)compile seemed to go OK.
make install (ran as root) failed with messages:
grep:
/lib/modules/2.4.7-10/build/.config: No such file or directory
(true)
Note:/lib/modules/2.4.7-10/build-> ../../../usr/src/linux-2.4.7-10/, contents of which areabi/ CREDITS include/ lib/ net/ scripts/ arch/ Documentation/ init/ MAINTAINERS README configs/ drivers/ ipc/ Makefile REPORTING-BUGS COPYING fs/ kernel/ mm/ Rules.makecontents of configs is
kernel-2.4.7-athlon.config kernel-2.4.7-i586-smp.config kernel-2.4.7-athlon-smp.config kernel-2.4.7-i686.config kernel-2.4.7-i386-BOOT.config kernel-2.4.7-i686-debug.config kernel-2.4.7-i386.config kernel-2.4.7-i686-enterprise.configkernel-2.4.7-i386-smp.con
<snip>
Quoted 8 lines
Pick one of these, as appropriate to your system, and copy it to
/usr/src/linux-2.4/.configThen "make clean" in both i2c and
lm_sensors2. Now the build and install should proceed ok.Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040314/179244f3/attachment.html