LinuxQuestions.org
Review your favorite Linux distribution.
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 09-11-2011, 05:22 PM   #1
aristocratic
Member
 
Registered: Sep 2011
Location: Texas
Distribution: Open SuSE 12.1, Lucid Puppy
Posts: 90

Rep: Reputation: Disabled
Unable to compile any software downloads in SuSe Linux 11.4 Server


I am really enjoying learning Linux. However I have been unable to compile any of the software that I download to my new SuSe Linux OS. I will cut and paste some of my source code and output. I can download the files, extract the tarball, then change into the new directory... Then I type the ./configure command and get the error below. I am running the /bin/bash shell. Maybe I need to move a file somewhere, or maybe I need to add permissions somewhere? Any help would be appreciated!

------------------------------------------------------------------------
source code:
./configure

output:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
------------------------------------------------------------------------
source code:
cat $PATH

output:
cat: /home/mark/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:
------------------------------------------------------------------------
source code:
find / -name "gcc*"

output:
/usr/bin/gcc
/usr/share/vim/vim72/compiler/gcc.vim
------------------------------------------------------------------------
source code:
cat /proc/version

output:
Linux version 2.6.32.12-0.7-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2010-05-20 11:14:20 +0200
 
Old 09-11-2011, 05:30 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
You forgot to post the most important part...the part of config.log with the details. Like the configure script told you
Code:
See `config.log' for more details.
Did YOU look at config.log to see what the problem was?

Last edited by weibullguy; 09-11-2011 at 05:31 PM.
 
Old 09-11-2011, 05:37 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Install the gcc, autoconf and automake packages.

Make sure that /usr/bin/ is in your path.

You will probably need to install the *-devel packages for the dependency packages. For example, suppose the rpm of a package requires the libcurl package. If you install the package from source, you will need the libcurl-devel package.
 
Old 09-11-2011, 07:51 PM   #4
aristocratic
Member
 
Registered: Sep 2011
Location: Texas
Distribution: Open SuSE 12.1, Lucid Puppy
Posts: 90

Original Poster
Rep: Reputation: Disabled
config.log file

Thanks for the advice. Here is the config.log file. I don't know enough about Linux to see if there is anything wrong with it. I did look at it before posting. It looks like it does have /usr/bin in the path section. Just to clarify, are the automake and autoconf programs that need to be loaded? They look like shell commands according to my "Linux in a Nutshell" book.

mark@linux:~/Downloads/arpwatch-NG1.7> cat 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

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

hostname = linux
uname -m = x86_64
uname -r = 2.6.32.12-0.7-default
uname -s = Linux
uname -v = #1 SMP 2010-05-20 11:14:20 +0200

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

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

PATH: /home/mark/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1334: checking build system type
configure:1352: result: x86_64-unknown-linux-gnu
configure:1360: checking host system type
configure:1374: result: x86_64-unknown-linux-gnu
configure:1382: checking target system type
configure:1396: result: x86_64-unknown-linux-gnu
configure:1532: checking for gcc
configure:1561: result: no
configure:1612: checking for cc
configure:1641: result: no
configure:1654: checking for cc
configure:1700: result: no
configure:1753: checking for cl
configure:1782: result: no
configure:1796: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

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

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_build_alias=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
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=x86_64-unknown-linux-gnu
ac_cv_host_alias=x86_64-unknown-linux-gnu
ac_cv_target=x86_64-unknown-linux-gnu
ac_cv_target_alias=x86_64-unknown-linux-gnu

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

CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FANCY_MAC=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LBL_LIBS=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
SHLICC2=''
V_CCOPT='-O'
V_INCLS=''
V_PCAPDEP=''
V_SENDMAIL=''
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${prefix}/share'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-unknown-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='unknown'

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

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

configure: exit 1
 
Old 09-12-2011, 04:14 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
If you want to build any software, better do : 1) su

2) zypper in gcc-c++ autoconf automake flex bison

GCC will not work without the "c++ part", that takes care of installing
the files required for a basic gcc to work → →
glibc-devel, kernel-headers :
Both providing /usr/include/<required-headers> , used by gcc.

'autoconf', 'automake' : See post # 3. Required by the most software.

.

Last edited by knudfl; 09-12-2011 at 04:16 AM.
 
  


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




All times are GMT -5. The time now is 09:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration