Linux Apache Setup Problem.

  • relic
  • Newbie
  • Newbie
  • relic
  • Posts: 14

Post 3+ Months Ago

I want to setup a Apache+PHP+MySQL in my Linux.
when I try to install the apache, It shows that:


$ ./config.nice
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
Configuring APR library
Platform: i686-pc-linux-gnuoldld
checking for working mkdir -p... yes
APR Version: 0.9.6
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr


When I start to surfing on net to find out solution, and I reliaze that I dun have a CC compiler, and everyone just say like using GCC, then I start to make a GCC bz to install.
Now there is another cases. it shows that

$./configure --prefix=/otc/gcc
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.



so actually what i need to do ?
I'm really confuse about this.....
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Try installing g++ and libc6-dev.

Your GCC may not be C++ aware.

What is the output from the config.log?
  • relic
  • Newbie
  • Newbie
  • relic
  • Posts: 14

Post 3+ Months Ago

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 prefix=/home/iskandar/apache

## --------- ##
## Platform. ##
## --------- ##

hostname = mwmSvr01
uname -m = i686
uname -r = 2.4.20-8
uname -s = Linux
uname -v = #1 Thu Mar 13 17:54:28 EST 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

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:1618: checking for chosen layout
configure:1620: result: Apache
configure:2413: checking for working mkdir -p
configure:2429: result: yes
configure:2446: checking build system type
configure:2464: result: i686-pc-linux-gnuoldld
configure:2472: checking host system type
configure:2486: result: i686-pc-linux-gnuoldld
configure:2494: checking target system type
configure:2508: result: i686-pc-linux-gnuoldld
configure:2537: checking for APR
configure:2597: result: reconfig

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
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_host=i686-pc-linux-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_mkdir_p=yes
ac_cv_target=i686-pc-linux-gnuoldld
ac_cv_target_alias=i686-pc-linux-gnuoldld

## ----------------- ##
## Output variables. ##
## ----------------- ##

APACHECTL_ULIMIT=''
APR_BINDIR=''
APR_INCLUDEDIR=''
APU_BINDIR=''
APU_INCLUDEDIR=''
AP_BUILD_SRCLIB_DIRS=''
AP_CLEAN_SRCLIB_DIRS=''
AP_LIBS=''
AP_SIG_GRACEFUL=''
AP_SIG_GRACEFUL_SHORT=''
AP_SIG_GRACEFUL_STRING=''
AWK=''
BUILTIN_LIBS=''
CC='gcc'
CFLAGS=''
CORE_IMPLIB=''
CORE_IMPLIB_FILE=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DEFS=''
DSO_MODULES=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_CFLAGS=''
EXTRA_CPPFLAGS=''
EXTRA_CXXFLAGS=''
EXTRA_INCLUDES=''
EXTRA_LDFLAGS=''
EXTRA_LIBS=''
HTTPD_LDFLAGS=''
HTTPD_VERSION=''
INCLUDES=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_PROG_FLAGS=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTCFLAGS=''
LTFLAGS=''
LTLIBOBJS=''
LT_LDFLAGS=''
MK_IMPLIB=''
MODULE_CLEANDIRS=''
MODULE_DIRS=''
MPM_LIB=''
MPM_NAME=''
MPM_SUBDIR_NAME=''
NOTEST_CFLAGS=''
NOTEST_CPPFLAGS=''
NOTEST_CXXFLAGS=''
NOTEST_LDFLAGS=''
NOTEST_LIBS=''
OBJEXT=''
OS=''
OS_DIR=''
OS_SPECIFIC_VARS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PORT=''
POST_SHARED_CMDS=''
PRE_SHARED_CMDS=''
RANLIB=''
RM=''
SHELL='/bin/sh'
SHLIBPATH_VAR=''
SHLTCFLAGS=''
SH_LDFLAGS=''
SH_LIBS=''
SH_LIBTOOL=''
UTIL_LDFLAGS=''
ab_LTFLAGS=''
abs_srcdir=''
ac_ct_CC=''
ac_ct_RANLIB=''
ap_make_delimiter=''
ap_make_include=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnuoldld'
build_alias=''
build_cpu='i686'
build_os='linux-gnuoldld'
build_vendor='pc'
cgidir='${datadir}/cgi-bin'
checkgid_LTFLAGS=''
datadir='${prefix}'
errordir='${datadir}/error'
exec_prefix='${prefix}'
exp_bindir='/usr/local/apache2/bin'
exp_cgidir='/usr/local/apache2/cgi-bin'
exp_datadir='/usr/local/apache2'
exp_errordir='/usr/local/apache2/error'
exp_exec_prefix='/usr/local/apache2'
exp_htdocsdir='/usr/local/apache2/htdocs'
exp_iconsdir='/usr/local/apache2/icons'
exp_includedir='/usr/local/apache2/include'
exp_installbuilddir='/usr/local/apache2/build'
exp_libdir='/usr/local/apache2/lib'
exp_libexecdir='/usr/local/apache2/modules'
exp_localstatedir='/usr/local/apache2'
exp_logfiledir='/usr/local/apache2/logs'
exp_mandir='/usr/local/apache2/man'
exp_manualdir='/usr/local/apache2/manual'
exp_proxycachedir='/usr/local/apache2/proxy'
exp_runtimedir='/usr/local/apache2/logs'
exp_sbindir='/usr/local/apache2/bin'
exp_sysconfdir='/usr/local/apache2/conf'
host='i686-pc-linux-gnuoldld'
host_alias=''
host_cpu='i686'
host_os='linux-gnuoldld'
host_vendor='pc'
htdbm_LTFLAGS=''
htdigest_LTFLAGS=''
htdocsdir='${datadir}/htdocs'
htpasswd_LTFLAGS=''
iconsdir='${datadir}/icons'
includedir='${prefix}/include'
infodir='${prefix}/info'
installbuilddir='${datadir}/build'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/modules'
localstatedir='${prefix}'
logfiledir='${localstatedir}/logs'
logresolve_LTFLAGS=''
mandir='${prefix}/man'
manualdir='${datadir}/manual'
nonssl_listen_stmt_1=''
nonssl_listen_stmt_2=''
oldincludedir='/usr/include'
other_targets=''
perlbin=''
prefix='/usr/local/apache2'
progname=''
program_transform_name='s,x,x,'
proxycachedir='${localstatedir}/proxy'
rel_bindir='bin'
rel_cgidir='cgi-bin'
rel_datadir=''
rel_errordir='error'
rel_exec_prefix=''
rel_htdocsdir='htdocs'
rel_iconsdir='icons'
rel_includedir='include'
rel_installbuilddir='build'
rel_libdir='lib'
rel_libexecdir='modules'
rel_localstatedir=''
rel_logfiledir='logs'
rel_mandir='man'
rel_manualdir='manual'
rel_proxycachedir='proxy'
rel_runtimedir='logs'
rel_sbindir='bin'
rel_sysconfdir='conf'
rotatelogs_LTFLAGS=''
runtimedir='${localstatedir}/logs'
sbindir='${exec_prefix}/bin'
shared_build=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/conf'
target='i686-pc-linux-gnuoldld'
target_alias=''
target_cpu='i686'
target_os='linux-gnuoldld'
target_vendor='pc'

configure: exit 1
[root@mwmSvr01 apache]# vi config./og
[root@mwmSvr01 apache]# vi config.log
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 prefix=/home/iskandar/apache

## --------- ##
## Platform. ##
## --------- ##

hostname = mwmSvr01
uname -m = i686
uname -r = 2.4.20-8
uname -s = Linux
uname -v = #1 Thu Mar 13 17:54:28 EST 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
  • relic
  • Newbie
  • Newbie
  • relic
  • Posts: 14

Post 3+ Months Ago

ok ... i'm using rpm to add on the gcc library.... but i'm still facing the same problem in compiling the installation batch for APACHE httpd.... how to solve it ?

checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
Configuring APR library
Platform: i686-pc-linux-gnuoldld
checking for working mkdir -p... yes
APR Version: 0.9.6
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
  • relic
  • Newbie
  • Newbie
  • relic
  • Posts: 14

Post 3+ Months Ago

I try to set "PATH=blablablablablabl:/usr/m6811-elf/bin" then now display something more "exciting" !!! Any one can help ?
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... build/config.guess: unable to guess system type

This script, last modified 2005-06-30, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://savannah.gnu.org/cgi-bin/viewcvs ... nfig.guess
and
http://savannah.gnu.org/cgi-bin/viewcvs ... config.sub

If the version you run (build/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2005-06-30

uname -m = i686
uname -r = 2.4.20-8
uname -s = Linux
uname -v = #1 Thu Mar 13 17:54:28 EST 2003

/usr/bin/uname -p =
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = i686
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = i686
UNAME_RELEASE = 2.4.20-8
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 Thu Mar 13 17:54:28 EST 2003
configure: error: cannot guess build type; you must specify one

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 79 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.