RRDTool and Syslog-NG and general installation problems!
Red HatThis forum is for the discussion of Red Hat Linux.
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.
RRDTool and Syslog-NG and general installation problems!
I'll post the config.log file, but I'm having essentially the same issue trying to install either rrdtool or syslog-ng on my RedHat server, on an IBM PPC. The error is:
# ./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... powerpc64-unknown-linux-gnu
checking target system type... powerpc64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... b.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
The log file is as follows:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
configure:1351: checking for a BSD-compatible install
configure:1406: result: /usr/bin/install -c
configure:1417: checking whether build environment is sane
configure:1460: result: yes
configure:1493: checking for gawk
configure:1509: found /bin/gawk
configure:1519: result: gawk
configure:1529: checking whether make sets $(MAKE)
configure:1549: result: yes
configure:1812: checking whether build environment is sane
configure:1855: result: yes
configure:1904: checking for gcc
configure:1920: found /usr/bin/gcc
configure:1930: result: gcc
configure:2174: checking for C compiler version
configure:2177: gcc --version </dev/null >&5
gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2180: $? = 0
configure:2182: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/ppc64-redhat-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=ppc64-redhat-linux --build=ppc64-redhat-linux --target=ppc64-redhat-linux --with-cpu=default32
Thread model: posix
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
configure:2185: $? = 0
configure:2187: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2190: $? = 1
configure:2213: checking for C compiler default output file name
configure:2216: gcc -o3 /-I//download/rrdtool/lb/include /-I//download/rrdtool/lb/include/libart-2.0 /-I//download/rrdtool/lb/include/freetype2 /-I//download/rrdtool/lb/include/libpng -L//download/rrdtool/lb/lib conftest.c >&5
gcc: /-I//download/rrdtool/lb/include: No such file or directory
gcc: /-I//download/rrdtool/lb/include/libart-2.0: No such file or directory
gcc: /-I//download/rrdtool/lb/include/freetype2: No such file or directory
gcc: /-I//download/rrdtool/lb/include/libpng: No such file or directory
configure:2219: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "syslog-ng"
| #define VERSION "1.6.8"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2258: error: C compiler cannot create executables
See `config.log' for more details.
well those cppflags don't look right either way round. you should have strings in there like "-I /usr/include/something -I /usr/include/somethingelse" not all those extra slashes...
I restarted the process from the beginning and got this during the attempted configuration of libpng - the first library where you use the CPPFLAGS variable (have something to do with it?):
Thread model: posix
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
configure:2182: $? = 0
configure:2184: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2187: $? = 1
configure:2211: checking for C compiler default output
configure:2214: gcc -o3 -fPIC -I/download/rrdtool/lb/include -L/download/rrdtool/lb/lib conftest.c >&5
configure:2217: $? = 0
configure:2263: result: b.out
configure:2268: checking whether the C compiler works
configure:2274: ./b.out
./configure: line 2275: ./b.out: No such file or directory
configure:2277: $? = 127
configure:2286: error: cannot run C compiled programs.
And tell me, what is Red Hat's answer to SuSE's YaST? They have their network app, which seems to only allow you to update already installed packages, and rpm, which is a PIA. AND, Red Hat doesn't have RRDTOOL or Syslog-NG in their distribution?!?
And tell me, what is Red Hat's answer to SuSE's YaST? They have their network app, which seems to only allow you to update already installed packages, and rpm, which is a PIA. AND, Red Hat doesn't have RRDTOOL or Syslog-NG in their distribution?!?
as for your problem though, i'm a little lost, may well be that you haven't got glibc-devel installed or something... i'd say take that sample code you pasted above and run those steps manually to see what it's actually doing. I suck at compiler options, but i *think* -o3 is extremely aggressive optimiziation which can often fail. did you add that in there yourself?
Yeah, well, the o3 was from a How-To I have been following. As you know, those How-Tos get dated pretty quick with new releases of distributions.
I've tried installing YUM too, but without any luck thus far... lets see if I can't go try right now and show you an error it was giving...
oh yeah, it's "installed" but if I run yum (just "yum <enter>") I get errors regarding:
import yummain
import clientstuff
import rpm
I haven't been able to spend much time investigating it though, since I was hoping i could quickly get these critical apps installed and then mess with it. No such luck. As for the RPMs you found, I've tried one rrdtool rpm and it wouldn't install because of dependencies - and either rpm doesn't do auto-dependency installs or I don't know how to make it do them. I initially downloaded Yum for that very reason.
[QUOTE]Originally posted by acid_kewpie
[B]there are plenty of redhat compatible rpms for rrdtool http://dag.wieers.com/packages/rrdtool/ for example. redhat uses yum and up2date to install stuff. add the dag repo to your yum sources and you can unstall it with "yum install rrdtool" doddle... http://dag.wieers.com/home-made/apt/FAQ.php#B4
This is probably going to help out a lot - not sure why I didn't find it before!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.