LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2008, 04:14 PM   #1
Tech Effect
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
GCC and Samba Installation problems


I am running Red hat enterprise 5 and trying to install SAMBA when the first error i received was at ./configure
the error was:

SAMBA VERSION: 3.0.28
LIBREPLACE_LOCATION_CHECKS: START
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
LIBREPLACE_LOCATION_CHECKS: END
LIBREPLACE_CC_CHECKS: START
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.

then i checked the error log and this is what i received:

$ ./configure

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

hostname = Server.techsit.com
uname -m = i686
uname -r = 2.6.18-8.el5xen
uname -s = Linux
uname -v = #1 SMP Fri Jan 26 14:42:21 EST 2007

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

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/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:1961: checking build system type
configure:1979: result: i686-pc-linux-gnu
configure:2001: checking host system type
configure:2016: result: i686-pc-linux-gnu
configure:2038: checking target system type
configure:2053: result: i686-pc-linux-gnu
configure:2541: checking for gcc
configure:2568: result: gcc
configure:2806: checking for C compiler version
configure:2813: gcc --version >&5
./configure: line 2814: gcc: command not found
configure:2816: $? = 127
configure:2823: gcc -v >&5
./configure: line 2824: gcc: command not found
configure:2826: $? = 127
configure:2833: gcc -V >&5
./configure: line 2834: gcc: command not found
configure:2836: $? = 127
configure:2859: checking for C compiler default output file name
configure:2886: gcc -O -D_SAMBA_BUILD_=3 conftest.c >&5
./configure: line 2887: gcc: command not found
configure:2889: $? = 127
configure:2927: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define CONFIG_H_IS_FROM_SAMBA 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2934: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
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_LIBS_set=
ac_cv_env_LIBS_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-gnu
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_Ae=no
ac_cv_target=i686-pc-linux-gnu

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

ACL_LIBS=''
AR=''
AUTH_LIBS=''
AUTH_MODULES=''
AUTH_STATIC=''
AWK=''
BROKEN_CC=''
BUILD_INIPARSER=''
BUILD_POPT=''
CC='gcc'
CFLAGS='-O -D_SAMBA_BUILD_=3'
CHARSET_MODULES=''
CHARSET_STATIC=''
CIFSMOUNT_PROGS=''
CONFIG_LIBS=''
CPP=''
CPPFLAGS=''
CUPS_CONFIG=''
DEFAULT_TEST_TARGET=''
DEFS=''
DYNEXP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_ALL_TARGETS=''
EXTRA_BIN_PROGS=''
EXTRA_SBIN_PROGS=''
FLAGS1=''
GREP=''
HAVE_SOCKET_WRAPPER=''
HOST_OS=''
IDMAP_LIBS=''
IDMAP_MODULES=''
IDMAP_STATIC=''
INIPARSERLIBS=''
INSTALLLIBCMD_A=''
INSTALLLIBCMD_SH=''
INSTALL_CIFSMOUNT=''
INSTALL_DATA=''
INSTALL_LIBADDNS=''
INSTALL_LIBMSRPC=''
INSTALL_LIBSMBCLIENT=''
INSTALL_LIBSMBSHAREMODES=''
INSTALL_PAM_MODULES=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
KRB5CONFIG=''
KRB5_LIBS=''
LDAP_LIBS=''
LDBLDAP=''
LDFLAGS=''
LDSHFLAGS=''
LIBADDNS=''
LIBADDNS_SHARED=''
LIBDL=''
LIBMSRPC=''
LIBMSRPC_SHARED=''
LIBOBJS=''
LIBREPLACEOBJ='replace.o'
LIBREPLACE_OBJS=''
LIBS=''
LIBSMBCLIENT=''
LIBSMBCLIENT_SHARED=''
LIBSMBSHAREMODES=''
LIBSMBSHAREMODES_SHARED=''
LIBUNWIND_PTRACE=''
LTLIBOBJS=''
NSCD_LIBS=''
NSSSONAMEVERSIONSUFFIX=''
NSS_INFO_MODULES=''
NSS_INFO_STATIC=''
NSS_MODULES=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PAM_MODULES=''
PASSDB_LIBS=''
PATH_SEPARATOR=':'
PDB_MODULES=''
PDB_STATIC=''
PERL=''
PICFLAG=''
PIDL_ARGS=''
PIE_CFLAGS=''
PIE_LDFLAGS=''
POPTLIBS=''
PRINT_LIBS=''
PYTHON=''
ROFF=''
RPC_MODULES=''
RPC_STATIC=''
SAMBA_CPPFLAGS='-Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I
./tdb/include -I./libaddns -I./librpc'
SHELL='/bin/sh'
SHLD=''
SHLIBEXT=''
SMBD_LIBS=''
SMBLDAP=''
SMBLDAPUTIL=''
SMBMOUNT_PROGS=''
SMB_FAM_LIBS=''
SMB_KRB5_LOCATOR=''
SOCKET_WRAPPER_OBJS=''
SONAMEFLAG=''
TERMLDFLAGS=''
TERMLIBS=''
UNINSTALLLIBCMD_A=''
UNINSTALLLIBCMD_SH=''
UNINSTALL_CIFSMOUNT=''
UNINSTALL_LIBADDNS=''
UNINSTALL_LIBMSRPC=''
UNINSTALL_LIBSMBCLIENT=''
UNINSTALL_LIBSMBSHAREMODES=''
UNINSTALL_PAM_MODULES=''
UUID_LIBS=''
VFS_MODULES=''
VFS_STATIC=''
WINBIND_NSS=''
WINBIND_NSS_EXTRA_LIBS=''
WINBIND_NSS_EXTRA_OBJS=''
WINBIND_NSS_LDSHFLAGS=''
WINBIND_WINS_NSS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
builddir=''
configdir='${LIBDIR}'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libreplace_cv_immediate_structures=''
libreplacedir='./lib/replace'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lockdir='${VARDIR}/locks'
logfilebase='${VARDIR}'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pammodulesdir='${LIBDIR}/security'
pdfdir='${docdir}'
piddir='${VARDIR}/locks'
precompiled_headers=''
prefix='NONE'
privatedir='${prefix}/private'
program_transform_name='s,x,x,'
psdir='${docdir}'
rootsbindir='${SBINDIR}'
sbindir='${exec_prefix}/sbin'
selftest_prefix=''
sharedstatedir='${prefix}/com'
smbtorture4_path=''
swatdir='${prefix}/swat'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define CONFIG_H_IS_FROM_SAMBA 1

configure: exit 77

Then i thought it had something to to with GCC so when i installed that ./configure it threw out another error and this is what was in that log.



This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:630: checking host system type
configure:651: checking target system type
configure:669: checking build system type
configure:724: checking for a BSD compatible install
configure:777: checking whether ln works
configure:801: checking whether ln -s works
configure:1866: checking for gcc
configure:1979: checking whether the C compiler (gcc ) works
configure:1995: gcc -o conftest conftest.c 1>&5
./configure: line 1994: gcc: command not found
configure: failed program was:

#line 1990 "configure"
#include "confdefs.h"

main(){return(0);}

Help really appreciated
Thanks
Scott
 
Old 01-06-2008, 04:43 PM   #2
linuxluver567
LQ Newbie
 
Registered: Jan 2008
Distribution: Linux Mint, Ubuntu Studio, and Edubuntu 8.04 Alpha 4
Posts: 3

Rep: Reputation: 0
alright, you have to type this instead:
Code:
sudo ./configure
then it will ask you to put in your password.
hope this helps!
 
  


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
GCC installation and such Icomey Ubuntu 1 01-18-2006 01:13 PM
Installation of GCC bjsmith Linux - Software 3 07-06-2005 07:49 AM
GCC installation I_forgot Linux - Newbie 2 07-01-2005 12:35 AM
gcc and bc installation Solzhenitsyn Mandriva 0 08-12-2004 02:53 PM
gcc installation exigent Linux - Software 13 09-03-2002 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 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