trying ti install lm_sensors...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Here is some feedback from my trying to install  lm_sensors.

I tried to compile i2c-2.6.2 and lm_sensors-2.6.2 on Redhat Linux 7.1
I already have the lm_sensors-2.5.5-3  package installed with this 
distribution,
but when I tried to use it I couldn't load the i2c-i801.o: I got
a message that the symbols i2c_del_adapter_R97e1c952 and 
i2c_add_adapter_Rd50a523b
could not be resolved. These symbols are defined in  i2c-i801.o in my 
installation.


So I tried to install the latest version of the two packages, first
i2c-2.6.2 according to the inctructions.

The first problem was that in file kernel/Module.mk a lot of lines 
contain the
following path:  $(LINUX)/.config
There is no such file in my installation. Instead there is a directory
/usr/src/linux-2.4.9-12/configs and in it there are several *.config files.
So I changed the path to be  $(LINUX)/configs/*.config,
after which grep did not complain any more that "there is no such file"

After this the "make all" did not complain at all. But when I tried 
"make install"
a got this:


if [ -n " kernel/i2c-core.o kernel/i2c-dev.o kernel/i2c-algo-bit.o 
kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o 
kernel/i2c-algo-pcf.o kernel/i2c-elektor.o kernel/i2c-proc.o 
kernel/i2c-pport.o" ] ; then \
  mkdir -p /lib/modules/`grep UTS_RELEASE 
/usr/src/linux-2.4.9-12/include/linux/version.h|cut -f 2 -d'"'`/misc ; \
  install -o root -g root -m 644  kernel/i2c-core.o kernel/i2c-dev.o 
kernel/i2c-algo-bit.o kernel/i2c-philips-par.o kernel/i2c-elv.o 
kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-elektor.o 
kernel/i2c-proc.o kernel/i2c-pport.o /lib/modules/`grep UTS_RELEASE 
/usr/src/linux-2.4.9-12/include/linux/version.h|cut -f 2 -d'"'`/misc ; \
fi
install: `/lib/modules/2.4.9-12smp' is a directory
install: `2.4.9-12BOOT' is a directory
install: `2.4.9-12enterprise' is a directory
install: `2.4.9-12debug' is a directory
make: *** [install-kernel] Error 1


I did not dig into this: I just copied the *.o and *.h file in the 
appropriate
directories.

Then I went on to compile  lm_sensors-2.6.2. I again had to fix that 
${LINUX}/.config
path in several files.
Tha compile fails. Here are the last couple of lines:

           sed -e 's@^\(.*\)\.o:@kernel/busses/i2c-ali1535.d 
kernel/busses/i2c-ali1535.o: Makefile '`dirname 
kernel/busses/i2c-ali1535.d`/Module.mk' @' > kernel/busses/i2c-ali1535.d
make: *** No rule to make target `linux/i2c-proc.h', needed by 
`prog/sensord/chips.rd'.  Stop.



Best regards,
Mitko Liotev



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux