Changeset 421

Show
Ignore:
Timestamp:
04/24/99 02:23:25 (10 years ago)
Author:
frodo
Message:

Added a note about editing /etc/ld.so.conf

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/INSTALL

    r420 r421  
    1010============================ 
    1111 
    12 Basic installation is uncomplicated. Run 'make all', followed by an optional 
    13 'make install'. Everything is compiled using the Makefile in the root of 
     12Basic installation is uncomplicated. Run `make all', followed by an optional 
     13`make install'. Everything is compiled using the Makefile in the root of 
    1414this package.  
    1515 
     
    3131  is a sort of magic invocation which tries to check this; it will fail if 
    3232  you do not have the correct kernel tree in /usr/src/linux. If you set it, 
    33   a '-D__SMP__' argument will be added to all module compiles. 
     33  a `-D__SMP__' argument will be added to all module compiles. 
    3434* MODVER 
    3535  This must be set to 1 if your kernel was compiled with CONFIG_MODVERSIONS 
     
    4747  The prefix which is added to most directory locations below. 
    4848* MODDIR (/lib/modules/extra/misc) 
    49   The directory where 'make install' installs your modules. 
     49  The directory where `make install' installs your modules. 
    5050* ETCDIR (/etc) 
    51   The directory where 'make install' installs the example configuration file 
     51  The directory where `make install' installs the example configuration file 
    5252  if none is found there. 
    5353* LIBDIR ($(PREFIX)/lib) 
    54   The directory where 'make install' installs the shared and static libraries. 
     54  The directory where `make install' installs the shared and static libraries. 
    5555* BINDIR ($(PREFIX)/bin) 
    56   The directory where 'make install' installs all executables. 
     56  The directory where `make install' installs all executables. 
    5757* SBINDIR ($(PREFIX)/sbin) 
    58   The directory where 'make install' installs all system programs (programs 
     58  The directory where `make install' installs all system programs (programs 
    5959  which can only be run by root). 
    6060* INCLUDEDIR ($(PREFIX)/include) 
    61   The base directory where 'make install' installs your include files. 
     61  The base directory where `make install' installs your include files. 
    6262  Actually, SYSINCLUDEDIR ($(INCLUDEDIR)/linux) is used for kernel header 
    6363  files, and LIBINCLUDEDIR ($(INCLUDEDIR)/sensors) is used for library 
     
    8686behaviour (probably leading to crashes). 
    8787 
    88 If you do a 'make install', remember to do a 'depmod -a' and a 'ldconfig' 
    89 to make sure the new modules and shared libraries are recognized. 
     88If you do a `make install', remember to do a `depmod -a' and a `ldconfig' 
     89to make sure the new modules and shared libraries are recognized. If you 
     90set PREFIX to anything different from `/' or `/usr' (it is `usr/local' 
     91by default), check whether /etc/ld.so.conf contains the library directory 
     92(like `/usr/local/lib') before you do the `ldconfig'. 
    9093 
    91 Do no worry about the 'No such file or directory' warnings when you compile 
     94Do no worry about the `No such file or directory' warnings when you compile 
    9295the package the first time. They are harmless. 
    9396 
     
    98101When you have compiled this package, you will be left with a lot of modules. 
    99102It can be tricky to know which modules you need to insert. For this reason, 
    100 I suggest you go the 'modprobe' way, as described within doc/modules. 
     103I suggest you go the `modprobe' way, as described within doc/modules. 
    101104 
    102105If you just want to run a test without installing them, try the following: 
     
    118121 
    119122But instead of doing any of the above things, please read doc/modules and 
    120 do a 'make install'. After that, you can run 'sensors-detect'. This Perl 
     123do a `make install'. After that, you can run `sensors-detect'. This Perl 
    121124program will detect all hardware available on your system, and tell you 
    122125what drivers you need to insert. First check whether you have /dev/i2c-* 
    123 files (at least 4 of them), and if not, create them by running 'mkdev.sh' 
     126files (at least 4 of them), and if not, create them by running `mkdev.sh' 
    124127in directory prog/mkdev. 
    125128 
     
    135138both a shared and a static library, and installed in your LIB directory 
    136139(normally /usr/local/lib). It needs a configuration file, which is usually 
    137 called 'sensors.conf', and can be placed in /etc, /usr/lib/sensors, 
     140called `sensors.conf', and can be placed in /etc, /usr/lib/sensors, 
    138141/usr/local/lib/sensors, /usr/lib, or /usr/local/lib. 
    139142 
     
    144147Where version 1 of this package had the human-readable /proc/sensors file, 
    145148this version includes a user-space program which gathers all data 
    146 and displays it in a comparable format. This program is called 'sensors'. 
     149and displays it in a comparable format. This program is called `sensors'. 
    147150Everybody can use it to read sensors values; only root can use it to 
    148151set minimum and maximum values (using the `-s' switch). 
    149152 
    150 If you want to run 'sensors' without installing the package, you must 
     153If you want to run `sensors' without installing the package, you must 
    151154use the following command to make it able to find its shared library: 
    152155  (bash) export LD_LIBRARY_PATH=/WHEREVER/lm_sensors-2.X.Y/lib:$LD_LIBRARY_PATH