LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to compile any software downloads in SuSe Linux 11.4 Server (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-compile-any-software-downloads-in-suse-linux-11-4-server-902475/)

aristocratic 09-11-2011 04:22 PM

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

weibullguy 09-11-2011 04:30 PM

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?

jschiwal 09-11-2011 04:37 PM

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.

aristocratic 09-11-2011 06:51 PM

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

knudfl 09-12-2011 03:14 AM

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.

.


All times are GMT -5. The time now is 02:40 AM.