- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- help me install vnstat
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2007 09:49 PM
05-30-2007 09:49 PM
# rpm -q gcc
gcc-4.1.0-28.4
# tar -xzvf vnstat-1.4.tar.gz
# cd vnstat-1.4
# make
make -C src vnstat
make[1]: Entering directory `/opt/MonitoringSoftwares/vnstat-1.4/src'
gcc -O2 -c proc.c
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
gcc -O2 -c db.c
db.c: In function ‘readdb’:
db.c:88: warning: integer constant is too large for ‘long’ type
gcc -O2 -c misc.c
gcc -O2 -o vnstat vnstat.c proc.o db.o misc.o
make[1]: Leaving directory `/opt/MonitoringSoftwares/vnstat-1.4/src'
Plz help me install, vnstat ? what should I do ?
Regards
Needee
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 01:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:23 AM
05-31-2007 03:23 AM
Re: help me install vnstat
./configure
make
make install
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 05:01 PM
05-31-2007 05:01 PM
Re: help me install vnstat
From there, a 'make install' should install it *shrug*.
Thanks Dear Stuart and Ivan for help
stuart you are right,
# make
all the above "warnings", then
# make install
Installed DONE :)
from past .. I have learned that during compilation if the "make[1]" as in the second line and last line of output... usually this is a failure
Any its DONE
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 06:07 AM
06-28-2007 06:07 AM
Re: help me install vnstat
If you want to squelch it, open vnstat.h and find this line :
#define FPOINT 4294967296
change it to read
#define FPOINT 42949672960ULL
Should then compile fine without warnings of any kind. I submitted a patch to the author regarding this, no idea if it will be applied.
I'm attaching the patch to this post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 07:13 PM
06-28-2007 07:13 PM
Re: help me install vnstat
Regards
Maaz