Installation guide

Linux Installation
CAN-API Installation
Manual • Doc. No.: C.2001.21 / Rev. 3.0 •
© 2000-2007 esd gmbh
Page 65 of 112
3. File Locations
It is recommended to store the driver module in the following directory:
/lib/modules/kernel-version/
The variable
kernelversion
has to be replaced by the according string of the system. The
string (it should be equivalent to the
os
-string in the driver's name (see above)) is returned, if
the following command is called:
uname -r
The dynamic shared library
libntcan.so
should be placed in the directory
/usr/local/lib/
or an equivalent path, which is contained in the
LD_LIBRARY_PATH
env-variable.
Note:
On 64-bit systems, there are two versions of
libntcan.so
. One in
./lib32
and
one in
./lib64
. The first belongs into
/usr/local/lib
on most Linux
distributions. The later should be kept together with other 64-bit libraries, e.g. in
/usr/local/lib64
.
The static version of the library
libntcan.a
can be kept wherever you want. Here at
esd
we
prefer to keep it with the sources of a project, on the other hand, one might like to install it with
the shared-lib at
/usr/local/lib/
.
Installation-note:
The shared library should belong to user and group “root” with the following file access
permissions:
u=rwx, g=rx, o=rx
After installation of the library, the root-user should call:
ldconfig -n /usr/local/lib
(if installed to this directory)
Afterwards there is a link
libntcan.so.v --> libntcan.so.v.mv.r
.
For your own convenience it is advised to generate another link in your library-directory:
libntcan.so --> libntcan.so.v
The static-library, if installed in
/usr/local/lib/
, should also belong to user/group
root, but it does not need (and should not have) the executable-flag.
Leading to the following file access permissions:
u=rw, g=r, o=r