Menu

c-icapInstall

chtsanti

INSTALL

Download the tar.gz file from the c-icap site and untar it to an appropriate location.
You need to run the ''configure'' script under the sources directory.
Go get information for configure options run:

./configure --help

A typical run for configure script in a linux system is:

./configure --prefix=/usr/local/c-icap

After the configuration process, you can compile and install the software as follows:

make
make install

Then, edit to the file /usr/local/c-icap/etc/c-icap.conf. It contains a set of documented values that configure the c-icap server. Finally, you can run the c-icap server:

/usr/local/c-icap/bin/c-icap

If you want to display debugging information on the terminal, the previous command should be executed with following arguments:

/usr/local/c-icap/bin/c-icap -N -D -d 10

The first argument -N prevents the c-icap server from forking in the background, the second argument -D enables the printing of messages to standard output, and the third argument -d 10 enables the printing of full debugging information.

Testing your instalation

To test your c-icap server you can use the c-icap-client utility which included in c-icap package. From the same host simply run c-icap-client without any arguments. This will do an options request to the icap server in localhost. You must see something like that:

tsantila@barbarian:~>  /usr/local/c-icap/bin/c-icap-client
ICAP server:localhost, ip:127.0.0.1, port:1344

OPTIONS:
        Allow 204: Yes
        Preview: 1024
        Keep alive: Yes

ICAP HEADERS:
        ICAP/1.0 200 OK
        Methods: RESPMOD, REQMOD
        Service: C-ICAP/0.1.1-pre1 server - Echo demo service
        ISTag: "5BDEEEA9-12E4-2"
        Max-Connections: 20
        Options-TTL: 3600
        Date: Sun, 04 Jun 2006 16:18:55 GMT
        Preview: 1024
        Allow: 204
        Transfer-Preview: *
        Encapsulated: null-body=0

Related

Wiki: configcicap

Discussion

  • akkala dinesh

    akkala dinesh - 2020-12-24

    I am getting an error while installing c_icap on windows 10 using cygwin
    C:/Program Files/GnuWin/make-3.81-bin/bin/make all-recursive
    make[1]: Entering directory C:/users/x/downloads/c_icap-0.5.6' Making all in . /usr/bin/sh: line 20: C:/Program: No such file or directory make[1]: *** [all-recursive] Error 1 make[1]: Leaving directoryC:/users/wijungle/downloads/c_icap-0.5.6'
    make: *** [all] Error 2

     

    Last edit: akkala dinesh 2020-12-24
  • John Calcote

    John Calcote - 2021-01-27

    Why does c-icap insist on being installed in /usr/local/c-icap? This creates the entire /usr directory structure (bin, lib, etc, share, man, etc) in /usr/local/c-icap, rather than installing the components into the already-existing /usr directory structure found in /usr/local. The default prefix for autoconf-generated configure scripts is /usr/local. Just don't specify a prefix and c-icap products will end up in the right place (for /usr/local).

     
    • Sagar Singari

      Sagar Singari - 2021-08-20

      Hi @jcalcote,

      I'm trying to setup an ICAP server for scanning files, so what are the pre-requisites required so that I'll be able to scan files? Will following the steps mentioned here work fine(i.e is downloading & installing the tar.gz enough)?

      Thanks!

       
  • Mike Land

    Mike Land - 2022-08-01

    I have it installed but when i when i run it as a service i get the following:

     c-icap.service - C implementation of ICAP protocol
       Loaded: loaded (/usr/lib/systemd/system/c-icap.service; enabled; vendor preset: disabled)
       Active: inactive (dead) since Mon 2022-08-01 19:42:31 GMT; 3s ago
      Process: 1533662 ExecStart=/usr/bin/c-icap -f /etc/c-icap/c-icap.conf (code=exited, status=0/SUCCESS)
     Main PID: 1533662 (code=exited, status=0/SUCCESS)
    

    When i try to scan something i get:

    c-icap-client -i localhost -p 1344 -s avscan -f freshclam.log
    Connection to 'localhost:1344' failed/timedout
    Failed to connect to icap server.....
    

    Any ideas?

     

Log in to post a comment.