Red Hat This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-01-2005, 03:33 PM
|
#1
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Rep:
|
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
## --------- ##
## Platform. ##
## --------- ##
hostname = arg-ns02n
uname -m = ppc64
uname -r = 2.6.9-22.0.1.EL
uname -s = Linux
uname -v = #1 SMP Tue Oct 18 18:35:10 EDT 2005
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = ppc64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
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.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-o3
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='/-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'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L//download/rrdtool/lb/lib
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /download/syslog-ng-1.6.8/missing --run aclocal-1.7'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /download/syslog-ng-1.6.8/missing --run tar'
AUTOCONF='${SHELL} /download/syslog-ng-1.6.8/missing --run autoconf'
AUTOHEADER='${SHELL} /download/syslog-ng-1.6.8/missing --run autoheader'
AUTOMAKE='${SHELL} /download/syslog-ng-1.6.8/missing --run automake-1.7'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-o3'
CPP=''
CPPFLAGS='/-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'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L//download/rrdtool/lb/lib'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /download/syslog-ng-1.6.8/missing --run makeinfo'
MAKE_CLASS=''
OBJEXT=''
PACKAGE='syslog-ng'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.6.8'
YACC=''
YFLAGS=''
ac_ct_CC='gcc'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/download/syslog-ng-1.6.8/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc/syslog-ng'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "syslog-ng"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "1.6.8"
configure: exit 77
Last edited by knobdy; 11-02-2005 at 10:40 AM.
|
|
|
11-02-2005, 10:39 AM
|
#2
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
Since no one has replied yet, here's an update. I've changed the CPPFLAGS variable some...though it still won't recognize the one direcotry!
configure:2399: $? = 0
configure:2401: 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:2404: $? = 0
configure:2406: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2409: $? = 1
configure:2432: checking for C compiler default output file name
configure:2435: gcc -o3 /download/rrdtool/lb/include/libart/ /download/rrdtool/lb/include/freetype2/ /download/rrdtool/lb/include/libpng/ -L/download/rrdtool/lb/lib conftest.c >&5
/download/rrdtool/lb/include/libart/: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure:2438: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "rrdtool"
| #define PACKAGE_TARNAME "rrdtool"
| #define PACKAGE_VERSION "1.2.10"
| #define PACKAGE_STRING "rrdtool 1.2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "rrdtool"
| #define VERSION "1.2.10"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2477: error: C compiler cannot create executables
See `config.log' for more details.
|
|
|
11-02-2005, 12:35 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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...
|
|
|
11-02-2005, 01:26 PM
|
#4
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
Code:
gcc -o3 /download/rrdtool/lb/include/libart/ /download/rrdtool/lb/include/freetype2/ /download/rrdtool/lb/include/libpng/ -L/download/rrdtool/lb/lib conftest.c >&5
That line is certainly not going to work, there are no -I's in there to tell it those are includes.
Instead of
Code:
CPPFLAGS='/-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'
Try
Code:
CPPFLAGS="-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"
|
|
|
11-02-2005, 03:25 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
isn't that just what i said? Bloody atlantans...
|
|
|
11-02-2005, 03:42 PM
|
#6
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
Okay, I've tried...I'm sure I'm missing something stupid but I can't see it...
configure:2399: $? = 0
configure:2401: 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:2404: $? = 0
configure:2406: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2409: $? = 1
configure:2432: checking for C compiler default output file name
configure:2435: gcc -o3 -I/download/rrdtool/lb/include -I/download/rrdtool/lb/include/libart -I/download/rrdtool/lb/include/freetype2 -I/download/rrdtool/lb/include/libpng -I/download/rrdtool/lb/lib conftest.c >&5
configure:2438: $? = 0
configure:2484: result: b.out
configure:2489: checking whether the C compiler works
configure:2495: ./b.out
./configure: line 2496: ./b.out: No such file or directory
configure:2498: $? = 127
configure:2507: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
|
|
|
11-02-2005, 04:12 PM
|
#7
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
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.
|
|
|
11-03-2005, 09:14 AM
|
#8
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
Come on, this can't be that difficult!
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?!?
Where else can I go to get help on with this?
|
|
|
11-03-2005, 10:03 AM
|
#9
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
Come on, this can't be that difficult!
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?!?
Where else can I go to get help on with this?
|
|
|
11-03-2005, 10:34 AM
|
#10
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
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?
|
|
|
11-03-2005, 11:04 AM
|
#11
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
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.
|
|
|
11-03-2005, 11:18 AM
|
#12
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
[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!
|
|
|
11-03-2005, 03:52 PM
|
#13
|
Member
Registered: Oct 2005
Location: St. Joseph, MO
Distribution: SuSE 10 on T42 Laptop
Posts: 38
Original Poster
Rep:
|
Nevermind, no help, it won't even run up2date from the command line (same type of errors as when I run Yum) - something must be seriously hosed.
|
|
|
All times are GMT -5. The time now is 01:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|