Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Problems installing vnstat in the VPS & Dedicated forum
I'm trying to install vnstat and get the following when I type make from the vnstat-1.4 directory. Is there anything I'm doing wrong? I'm following ...

  1. #1
    JPC Member
    Join Date
    Nov 2007
    Posts
    2

    Problems installing vnstat

    I'm trying to install vnstat and get the following when I type make from the vnstat-1.4 directory. Is there anything I'm doing wrong? I'm following the directions in the INSTALL directory (pretty simple, make and then make install) but it doesn't work. what am I missing?

    Code:
    [root@vps vnstat-1.4]# ls
    CHANGES  FAQ      Makefile  UNINSTALL  cron  pppd
    COPYING  INSTALL  README    UPGRADE    man   src
    [root@vps vnstat-1.4]# make
    make -C src vnstat
    make[1]: Entering directory `/usr/src/vnstat-1.4/src'
    gcc -O2 -c proc.c
    In file included from /usr/include/bits/posix1_lim.h:153,
                     from /usr/include/dirent.h:232,
                     from vnstat.h:9,
                     from proc.c:1:
    /usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or dire                        ctory
    proc.c: In function 'parseproc':
    proc.c:105: warning: integer constant is too large for 'long' type
    proc.c:106: warning: integer constant is too large for 'long' type
    proc.c:107: warning: integer constant is too large for 'long' type
    proc.c:109: warning: integer constant is too large for 'long' type
    proc.c:109: warning: integer constant is too large for 'long' type
    proc.c:135: warning: integer constant is too large for 'long' type
    proc.c:136: warning: integer constant is too large for 'long' type
    proc.c:137: warning: integer constant is too large for 'long' type
    proc.c:139: warning: integer constant is too large for 'long' type
    proc.c:139: warning: integer constant is too large for 'long' type
    make[1]: *** [proc.o] Error 1
    make[1]: Leaving directory `/usr/src/vnstat-1.4/src'
    make: *** [vnstat] Error 2
    [root@vps vnstat-1.4]# make install
    Installing vnStat...
    install -d /usr/bin /usr/share/man/man1 /etc/cron.d /var/lib/vnstat
    install -m 755 src/vnstat /usr/bin
    install: cannot stat `src/vnstat': No such file or directory
    make: *** [install] Error 1

  2. #2

  3. #3
    JPC Member
    Join Date
    Nov 2007
    Posts
    2
    Is this something that I can fix on my own or is it something that's missing on the server side?

  4. #4
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    It depends. If you have root access then you can fix it yourself by installing the kernel headers, otherwise you can't do anything other than ask support to do it for you.

    Why not compile vnstat on your local linux and upload the binaries on the server?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •