Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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?
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.
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.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.