LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2011, 04:32 AM   #1
lola1987
LQ Newbie
 
Registered: Jun 2011
Posts: 29

Rep: Reputation: Disabled
Installation Syslog-ng


i try to install syslog-ng but i get this error message:

Quote:
configure: error: Package requirements (eventlog >= 0.2.12) were not met:

No package 'eventlog' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables EVTLOG_CFLAGS
and EVTLOG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
so i modified my ~/.bash.profile like this to set the environement,and it compiled but in execution step i get this message:

Quote:
messages.h:39: erreur: expected â)â before â*â token
misc.c: In function âresolve_hostnameâ:
misc.c:140: attention : implicit declaration of function âmsg_event_sendâ
misc.c:140: attention : implicit declaration of function âmsg_event_createâ
misc.c:140: erreur: âEVT_PRI_ERRâ undeclared (first use in this function)
misc.c:140: erreur: (Each undeclared identifier is reported only once
misc.c:140: erreur: for each function it appears in.)
misc.c:140: attention : implicit declaration of function âevt_tag_strâ
make[2]: *** [misc.lo] Erreur 1
make[2]: quittant le répertoire « /root/syslog-ng-3.2.4/lib »
make[1]: *** [install] Erreur 2
make[1]: quittant le répertoire « /root/syslog-ng-3.2.4/lib »
make: *** [install-recursive] Erreur 1
 
Old 06-06-2011, 04:58 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
May I ask what distribution your running? Is this related to your other threads on Cent-os? That impacts how software is typically installed, whether it is from source or from a repository.

The initial warning says that you are missing a dependency for syslog-ng, that is you are lacking an installed version of eventlog >= 0.2.12. It was unclear from your post whether or not you tried installing eventlog, but it gives the impression that you did and placed it in a non-standard location. However, the compile process still fails. This suggests that either you don't have the necessary prerequisites installed or you haven't properly configured the software. Again, this is distribution dependent. Given that even logging is critical, I question the Wisdom of trying to install syslog software on your system. Unless you are using a build from scratch distribution, like Gentoo, you should not have to be doing this as there will already be an installed syslog system. If you are building a system from scratch, please indicate what system and what documentation you are trying to follow.

In essence, please describe what it is that you are trying to do, why you are trying to do it, and what is happening. I ask because it looks like you are heading towards messing up your system. It looks to me like you are engaging your attempts to "cover up" your prior mistakes by re-installing. You have also posted several threads on this subject, to the point where the discussion is getting highly fragmented. Multiple and cross posting are actions that are frowned upon at LQ.
 
Old 06-06-2011, 05:27 AM   #3
lola1987
LQ Newbie
 
Registered: Jun 2011
Posts: 29

Original Poster
Rep: Reputation: Disabled
i try to install syslog-ng.3.2.4 in another server centos 5.5.
I didn't inderstand :
but it gives the impression that you did and placed it in a non-standard location.
"but it gives the impression that you did and placed it in a non-standard location. "
what that u mean?

can u type the gentoo link of installation syslog system?
what scratch DISTRIBUTION?
 
Old 06-06-2011, 03:30 PM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
What I really don't understand is why you are needing to install a syslog application at all. If you are using Cent-OS it should have already have one in place. Installing syslog-ng should not be necessary.

Quote:
"but it gives the impression that you did and placed it in a non-standard location. "
what that u mean?
Texting slang is very difficult to read. Would you please spell out your words. Use you instead of u for example. What I mean is what I was referring to in the last thread on this subject; your distribution has a particular layout and it will expect applications to conform to that layout. If you don't take the proper steps when installing from source, you won't put things in the correct locations. If you are going to install, you should use the repositories instead, if at all possible.

Quote:
can u type the gentoo link of installation syslog system?
I believe I already provided it in the other thread. Simply Google "gentoo syslog-ng howto".
Quote:
what scratch DISTRIBUTION?
What I mean by this is a distribution that is designed for ultimate customization, such as Gentoo or Linux From Scratch.
 
Old 06-07-2011, 06:22 AM   #5
lola1987
LQ Newbie
 
Registered: Jun 2011
Posts: 29

Original Poster
Rep: Reputation: Disabled
Re

Quote:
What I really don't understand is why you are needing to install a syslog application at all

I need to implement syslog-ng in a client platform to be able to filter all logs based on level and content to storage only whose are important and need a rapid resolution, because we supervise server in the cloud .My tutor had the idea to make me in charge if this project now i make only test in "test server" to have a premium idea about the comportment of this new generation of syslog .

Quote:
Texting slang is very difficult to read
i make a real efforts to spell out my words,idon't think that i write in mode slang ,also i'm not used to write in english(just in frensh),i'm sort of debutant.

Quote:
your distribution has a particular layout and it will expect applications to conform to that layout
I don't inderstand what the relation between my layout distribution and the application?

i take the same steps on the tutorials ,maybe i didn't choose the good one,that's why i ask u where can i find the gentoo tutorial,they have a general documentation i need one specially for my distribution .

Quote:
If you are going to install, you should use the repositories instead
In all tutorial that i found ,none make the repository where i must install this application,they just show the commands .

Quote:
What I mean by this is a distribution that is designed for ultimate customization, such as Gentoo or Linux From Scratch.
For administration the server and all installation,it must be in line commands and i can't reach the server in graphic mode,also i don't need to bbuild the system just install the application ,maybe that can respond to your question :
Quote:
If you are building a system from scratch, please indicate what system and what documentation you are trying to follow.
 
Old 06-08-2011, 04:43 AM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
i make a real efforts to spell out my words,idon't think that i write in mode slang ,also i'm not used to write in english(just in frensh),i'm sort of debutant.
Vous parlez mieux l'anglais que je parle français! It has been so long since I have used the language that I have forgotten most of it. Seriously, using shortcuts like u for you, would be equivalent to using v for vous. It is difficult to read.

I am really not trying to give you difficulty over this subject, but I am really failing to understand why you need to install what should be an additional system logging function. I understand you need logging facilities, as you said "to filter all logs based on level and content to storage". My concern is that Centos already has a log application installed by default. Attempting to install another one may cause problems as the two might conflict with each other. I believe the default syslog application is syslogd. Can this be configured for your needs?

If you really determine you need syslog, like I suggested, you should install this from the Centos repositories rather than building it from source. I understand that you found a tutorial showing you how to build from source, but this is typically not the best method to follow. Some distributions like Gentoo and Slackware (not Cent-os) are designed to have all software custom compiled from source. Cent-os is designed for you to use RPM packages for your software management. Building you syslog-ng from source throws this whole system off. Your RPM system will probably get confused and it won't provide updates properly.

Building from source can be tricky. As I have been trying to explain, the configuration and layout are important and is controlled by the flags you pass to the ./configure stage. For example, many times source will try to install applications in places like /usr/local/bin while your system may expect them in /usr/bin and there is typically a flag that you pass to control this. If you don't get the configuration right for your distribution (centos) things won't go where they need to go to function correctly. Similarly, there will be flags for the dependent libraries, assuming you even have the libraries installed, which becomes more complicated with managed package distributions like Centos.
 
Old 06-08-2011, 07:56 AM   #7
lola1987
LQ Newbie
 
Registered: Jun 2011
Posts: 29

Original Poster
Rep: Reputation: Disabled
i get what u mean but the question is:
when i pass to the stage ./configure ,how can i know where(repositories) the system need to install applications?
which flags do u talk about?

Quote:
Cent-os is designed for you to use RPM packages for your software management
I searched for the package rpm before installing sys-ng from sources and what i didn't found a special package for centos only for fedora ,go to this link http://www.rpmfind.net/linux/rpm2htm...uery=syslog-ng
and if you inderstand frensh, i can continue in frensh,in the case of misinderstanding my messages.
 
Old 06-09-2011, 08:55 AM   #8
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by Noway2 View Post
I am really not trying to give you difficulty over this subject, but I am really failing to understand why you need to install what should be an additional system logging function. I understand you need logging facilities, as you said "to filter all logs based on level and content to storage". My concern is that Centos already has a log application installed by default. Attempting to install another one may cause problems as the two might conflict with each other. I believe the default syslog application is syslogd. Can this be configured for your needs?
Is Centos still using syslogd? The successors have more options to be tuned. In openSUSE you can just chose between syslogd, syslog-ng and their new default rsyslog. But I also compiled my own version of syslog-ng as I needed features of a newer version than available as rpm.

Nevertheless, as Noway2 mentioned: do you have libevent installed when you mentioned that you made changes to ~/.bash_profile? Either as rpm or compiled on your own?
 
  


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
Bug installation Syslog-ng in Centos 5.6 server lola1987 Linux - Server 8 06-06-2011 06:02 PM
Installation syslog-ng in centos 5.6 lola1987 Linux - Software 1 06-06-2011 04:17 PM
Octopussy Syslog Analyzer Installation Problem JuniorPenguin Linux - Newbie 1 07-01-2010 08:03 PM
Syslog-ng installation problem ajspliffs Linux - Software 3 03-08-2006 10:16 PM
syslog-ng-1.9.9 installation problem - please help! brian_lad Linux - Software 5 03-02-2006 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:16 AM.

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