LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2007, 11:46 AM   #1
jakobverner
LQ Newbie
 
Registered: Sep 2007
Location: Denmark
Distribution: Ubuntu
Posts: 10

Rep: Reputation: 0
Question Wrong paths when compiling?


I'm using Fedora 7.

Like so many other Nagios-users I’m having problems with some cgi's (statusmap.cgi, trends.cgi, histogram.cgi) on my nagios-webinterface.

The problem is that the cgi's (statusmap.cgi, trends.cgi, histogram.cgi) doesn't get compiled. This is apparently because I need to have these packages installed: yum install libgd, libgd-devel, libpng, libpng-devel, libjpeg, libjpeg-devel, zlib, zlib-devel
Great so I installed the necessary packages, and I have cleaned after my last make (make devclean).

I now have to do a new configure where I’m suppose to include some paths that the three missing cgi's needs to get compiled. I think that the paths are related to necessary packages that I installed earlier, but I don’t now the exact path that I need.

The solution that I followed suggested different configure-options. I tried those with no luck:

./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include

and

./configure --with-gd-lib=/usr/local/lib--with-gd-inc=/usr/local/include

If it isn’t those paths given above, do you have any suggestions to what the correct paths might be, considering the installed packages?

Any suggestions might be a help to me, please respond?

Last edited by jakobverner; 10-29-2007 at 11:48 AM.
 
Old 10-29-2007, 02:40 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Quote:
Originally Posted by jakobverner View Post
I'm using Fedora 7.

If it isn’t those paths given above, do you have any suggestions to what the correct paths might be, considering the installed packages?
You might use the rpm command to see where the packages were installed.

rpm -ql packagename


----------------
Steve Stites
 
Old 10-30-2007, 04:57 AM   #3
jakobverner
LQ Newbie
 
Registered: Sep 2007
Location: Denmark
Distribution: Ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks, that little respond actually led me to that it is apparently impossible to install the packages gdlib and gdlib-devel with yum. yum doesn’t seem to now the to packages.

I had to download the package gd-2.0.35.tar.gz from libgd.org and then do a ./configure and make install.
Now the cgi’s trends.cgi, histogram.cgi and statusmap.cgi will be compiled, and i could move the files to the nagios-dir.

If anyone else have had problems with this nagios-cgi-compiling-problem, respond to this thread and I will make a more detailed description of my solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
compiling looking in the wrong place for a libtool archive kryptobs2000 Linux - Software 5 01-05-2007 11:31 PM
libexpat.so in wrong format when compiling Apache 2.2 under openSuSE 10 Basel Linux - Software 1 03-11-2006 01:49 AM
Compiling kernel with Gentoo -- wrong command Penguin of Wonder Linux - Distributions 2 01-05-2006 09:25 PM
first time compiling, what am I doing wrong? über-noob Linux - Newbie 9 03-12-2004 10:37 AM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration