LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-19-2011, 11:36 PM   #1
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Rep: Reputation: 17
Installing vnstat on Slackware error while 'make'


Hello Fellows,

I'm trying to install vnstat on my Slackware box, but it fails while compiling..

here:
Code:
root@go:/home/vnstat-1.10# make
make -C src
make[1]: Entering directory `/home/vnstat-1.10/src'
gcc -O2   -c -o vnstat.o vnstat.c
In file included from /usr/include/bits/posix1_lim.h:157,
                 from /usr/include/dirent.h:233,
                 from common.h:13,
                 from vnstat.c:18:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/signal.h:339,
                 from common.h:15,
                 from vnstat.c:18:
/usr/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such file or directory
In file included from /usr/include/errno.h:36,
                 from common.h:17,
                 from vnstat.c:18:
/usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
make[1]: *** [vnstat.o] Error 1
make[1]: Leaving directory `/home/vnstat-1.10/src'
make: *** [vnstat] Error 2
root@go:/home/vnstat-1.10#
Code:
root@go:/home/vnstat-1.10# cat /etc/slackware-version
Slackware 13.1.0
Any help is more than appreciated..!!

Thanks..
 
Old 02-20-2011, 01:41 AM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Try installing the kernel-headers package.
 
1 members found this post helpful.
Old 02-20-2011, 06:55 PM   #3
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Dear Guanx..

Thanks a lot for your hint..
That worked for me, now every thing is set up.. and COOL

Code:
root@go:/home/vnstat-1.10# vnstat
Database updated: Mon Feb 21 04:57:11 2011

   eth0 since 02/21/11

          rx:  103 KiB      tx:  92 KiB      total:  195 KiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Feb '11       103 KiB |      92 KiB |     195 KiB |    0.00 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
         today       103 KiB |      92 KiB |     195 KiB |    0.09 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |
root@go:/home/vnstat-1.10#
Thanks again..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error installing "Mac On Linux" when i run make and make install rohedin Linux - Software 4 06-22-2010 06:30 AM
Make error when installing spca5xx LuckyABA Linux - Hardware 2 05-13-2007 09:12 PM
binutils-2.16.90.0.1 make error on Slackware 10.0 CPUFreak91 Linux - Software 2 09-08-2005 08:57 AM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM
installing qt - Make error incoma Linux - Software 1 07-01-2002 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration