Installation guide

Linux Installation
CAN-API Installation
Manual • Doc. No.: C.2001.21 / Rev. 3.0 •
© 2000-2007 esd gmbh
Page 73 of 112
4.1.3.2 Installation
1. Unpacking the Archive
In order to unpack the zipped tar-archive file the following command has to be called:
tar xvfz ethercan-lx-2.0.10-ntcan-3.0.6- psys-1.3.0-gcc-3.3.1-glibc-2.3.2.tgz
The unpacked files will be stored in a directory that carries the same name as the archive file.
2. Compile and Load Psys-Driver
Therefore follow the installation instructions in
psys_linux/README
3. Installing the Libraries and Header Files
In order to install the libraries and header files the following command has to be called (with
supervisor rights):
./installEthercanLibs
All library files will be stored in
/usr/local/lib
and all include files will be stored in
/usr/local/include
.
4. Adapt /etc/esd-plugin
See chapter “Configuration” on page 74
5. Compiling the Example Program ‘cantest’
With the call
make -f makefile.ethercan
the test- and example program
cantest
will be compiled.
After successful installation you can access the CAN-Bus via the esd NTCAN API (link
libntcan
with your application). For an API documentation see the standard esd NTCAN API (
ntcan.pdf
)
documentation.