nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

cgilib problem

This is a discussion on cgilib problem within the Linux software forums, part of the Linux Getting Started category; Hi all, I want to install rrdtool, but for that I am missing cgilib. When I try to compile it(cgilib) ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 03-02-2006, 03:44 PM
Junior Member
User
 
Join Date: Feb 2006
Posts: 6
Rep Power: 0
hart
Default cgilib problem

Hi all,
I want to install rrdtool, but for that I am missing cgilib. When I try to compile it(cgilib) I get the following:

host:~/cgilib-0.5 # make && make install
make: `libcgi.a' is up to date.
cc -I. -Wall -O2 -g -c -o cgitest.o cgitest.c
cgitest.c: In function `main':
cgitest.c:108: warning: implicit declaration of function `strcmp'
cgitest.c:116: error: syntax error before "Library"
cgitest.c:129: warning: implicit declaration of function `strlen'
make: *** [cgitest.o] Error 1
host:~/cgilib-0.5 #

Can anyone help me?
Will be waiting...
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-02-2006, 04:08 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default

Hmm ...

If i were you I would had used apt-get or yum command to install cgilib. It is easy and no such problem, IMPO

Code:
apt-get install cgilib
apt-get install mrtg
apt-get install rrdtool
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote
  #3 (permalink)  
Old 03-02-2006, 04:12 PM
Junior Member
User
 
Join Date: Feb 2006
Posts: 6
Rep Power: 0
hart
Default

Do you mean that:

host:~/cgilib-0.5 # apt-get install
bash: apt-get: command not found
host:~/cgilib-0.5 # yum install
bash: yum: command not found
host:~/cgilib-0.5 #
Reply With Quote
  #4 (permalink)  
Old 03-02-2006, 06:23 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Quote:
Originally Posted by hart
Do you mean that:

host:~/cgilib-0.5 # apt-get install
bash: apt-get: command not found
host:~/cgilib-0.5 # yum install
bash: yum: command not found
host:~/cgilib-0.5 #
hart, apt-get works on Debian and yum works on Fedora Linux. Can you tell us name of your Linux distro?
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #5 (permalink)  
Old 03-02-2006, 06:52 PM
Junior Member
User
 
Join Date: Feb 2006
Posts: 6
Rep Power: 0
hart
Default

Linux Suse 9.3
Reply With Quote
  #6 (permalink)  
Old 03-02-2006, 07:14 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Use yast2 or yast Software Management tool
Code:
yast
Select Software > Install and Remove Software
Then search mrtg, rrdtool and install them. I know all these software available. I had installed them in past on Suse Enterprise 9 server.

Or use rpm command to install all the files For example:
Code:
rpm -ivh cgilib
rpm -ivh mrtg
rpm -ivh rrdtool
You may need to download rpm file from Internet or mount Suse DVD/CD and install the packages.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #7 (permalink)  
Old 04-18-2006, 11:56 PM
Junior Member
 
Join Date: Apr 2006
Posts: 1
Rep Power: 0
cmantito
Default

I was getting the same error so I figured I'd take a quick crack at the source. The error is being thrown on line 116 of cgitest.c, so open it up and hop to line 116, and what do we see?

Code:
printf ("<h3>Cookie "Library" set</h3>\n");
The quotation marks around Library are throwing off the printf statement, so escape them by changing it to:

Code:
printf ("<h3>Cookie \"Library\" set</h3>\n");
recompile and you should be good to go!

--cmantito
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 03:36 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36