topic title: installing gcc ?
Posts: 4
chris@elfpen
Joined: 01 May 2012
#1
I am used to redhat style package management, yum and all that.

I need to install GCC on this Thinkpad 600x. AntiX is working well.
I did an"apt-get install gcc" and it installed a couple of packages.
It also showed me a list of"suggested" packages. Is there
a shortcut to getting a working gcc? Or do I just go through the
list and install them all? I have about 7 Gig of disk.

Chris
Posts: 4
chris@elfpen
Joined: 01 May 2012
#2
I am trying to install some software which only comes by source.
The output of ./configure shows that it cannot find
crti.o, crtl.o

So, there must be a library or something that I am missing still.

Is there some way to use apt-get so that it will
install all the packages I need in order to compile something
using gcc?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
Have you tried

Code: Select all

apt-cache show gcc
command yet.

For building from source.

Code: Select all

apt-cache show build-essential
assuming you do as root first

Code: Select all

apt-get update
to get the latest info available.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
Booted up my old IBM A22m for another thread here. So I figured I'd post some readouts in this thread. You can also use Synaptic Package Manager which is a gui front end for apt to see what is needed instead of command line. Synaptic is pretty good at installing all dependencies also.

Code: Select all

harry@Biker:~$ apt-cache show gcc
Package: gcc
Source: gcc-defaults (1.112)
Version: 4:4.6.2-4
Installed-Size: 41
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Architecture: i386
Provides: c-compiler
Depends: cpp (>= 4:4.6.2-4), gcc-4.6 (>= 4.6.2-2~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Description-en: GNU C compiler
 This is the GNU C compiler, a fairly portable optimizing compiler for C.
 .
 This is a dependency package providing the default GNU C compiler.
Description-md5: c7efd71c7c651a9ac8b2adf36b137790
Build-Essential: yes
Tag: devel::compiler, devel::lang:c, interface::commandline,
 role::metapackage, role::program, suite::gnu,
 works-with::software:source
Section: devel
Priority: optional
Filename: pool/main/g/gcc-defaults/gcc_4.6.2-4_i386.deb
Size: 5018
MD5sum: f3fadbaf8ff3f1297c362d88f25596ce
SHA1: 4591dcf06609ec13bed08951da6f89f6003b9f89
SHA256: 48d11a59b5267dc1f55aa0a26cd0a5288f53f1383c11ddb0c855b2c6a162cd85

harry@Biker:~$ apt-cache policy gcc
gcc:
  Installed: 4:4.6.2-4
  Candidate: 4:4.6.2-4
  Version table:
 *** 4:4.6.2-4 0
        500 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status

Code: Select all

harry@Biker:~$ apt-cache show build-essential
Package: build-essential
Version: 11.5
Installed-Size: 48
Maintainer: Matthias Klose <doko@debian.org>
Architecture: i386
Depends: libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5)
Description-en: Informational list of build-essential packages
 If you do not plan to build Debian packages, you don't need this
 package.  Starting with dpkg (>= 1.14.18) this package is required
 for building Debian packages.
 .
 This package contains an informational list of packages which are
 considered essential for building Debian packages.  This package also
 depends on the packages on that list, to make it easy to have the
 build-essential packages installed.
 .
 If you have this package installed, you only need to install whatever
 a package specifies as its build-time dependencies to build the
 package.  Conversely, if you are determining what your package needs
 to build-depend on, you can always leave out the packages this
 package depends on.
 .
 This package is NOT the definition of what packages are
 build-essential; the real definition is in the Debian Policy Manual.
 This package contains merely an informational list, which is all
 most people need.   However, if this package and the manual disagree,
 the manual is correct.
Description-md5: 90ef0ef86cafda0bd16f746eb621d9da
Build-Essential: yes
Tag: devel::packaging, interface::commandline, role::data, suite::debian
Section: devel
Priority: optional
Filename: pool/main/b/build-essential/build-essential_11.5_i386.deb
Size: 7190
MD5sum: 9496b3584a5072f73cb64b6a61a90984
SHA1: b2a465288068f5ad23de27df339af5c9e887be89
SHA256: 4db3dd58465fa5778d3330efa9f41c6b57880495627f0448b1a641acada5bcd5

harry@Biker:~$ apt-cache policy build-essential
build-essential:
  Installed: 11.5
  Candidate: 11.5
  Version table:
 *** 11.5 0
        500 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
harry@Biker:~$ 
I try to keep this Laptop current with latest apt-get update && apt-get dist-upgrades. I have so many durn laptops and AntiX installs it is hard to keep track. __{{emoticon}}__

Code: Select all

 $ inxi -S
System:    Host: Biker Kernel: 3.3.3-antix.1-486-smp i686 (32 bit) 
           Desktop: IceWM 1.3.7 Distro: antiX-M11-686 Jayaben Desai 01 May 2011 
Posts: 2
ruben
Joined: 19 May 2012
#5
First of all congratulations for this distro and sorry for my English. -
Antix tendons in a pentium 4 3.0 1gb ram and I can not install multiple
programs via console. - Since re-installing gcc prbe., This is the result

$ruben@alfredo:~$ tar xvzf wallpaperd-0.2.0.tar.gz

ruben@alfredo:~$ cd wallpaperd-0.2.0

ruben@alfredo:~/wallpaperd-0.2.0$ ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/ruben/wallpaperd-0.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details.
ruben@alfredo:~/wallpaperd-0.2.0$


/home/ruben/wallpaperd-0.2.0/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 wallpaperd configure 0.2.0, which was
generated by GNU Autoconf 2.65. Invocation command line was

$ ./configure

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

hostname = alfredo
uname -m = i686
uname -r = 3.2.2-antix.1-486-smp
uname -s = Linux
uname -v = #1 SMP Sat Jan 28 01:43:33 EET 2012

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

/bin/arch = unknown
/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/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games


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

configure:2175: checking for a BSD-compatible install
configure:2243: result: /usr/bin/install -c
configure:2254: checking whether build environment is sane
configure:2304: result: yes
configure:2445: checking for a thread-safe mkdir -p
configure:2484: result: /bin/mkdir -p
configure:2497: checking for gawk
configure:2513: found /usr/bin/gawk
configure:2524: result: gawk
configure:2535: checking whether make sets $(MAKE)
configure:2557: result: yes
configure:2652: checking for style of include used by make
configure:2680: result: GNU
configure:2750: checking for gcc
configure:2766: found /usr/bin/gcc
configure:2777: result: gcc
configure:3006: checking for C compiler version
configure:3015: gcc --version >&5
gcc (Debian 4.6.2-12) 4.6.2
Copyright (C) 2011 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:3026: $? = 0
configure:3015: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.6/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-12' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.6.2 (Debian 4.6.2-12)
configure:3026: $? = 0
configure:3015: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3026: $? = 4
configure:3015: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3026: $? = 4
configure:3046: checking whether the C compiler works
configure:3068: gcc conftest.c >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status
configure:3072: $? = 1
configure:3110: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME"wallpaperd"
| #define PACKAGE_TARNAME"wallpaperd"
| #define PACKAGE_VERSION"0.2.0"
| #define PACKAGE_STRING"wallpaperd 0.2.0"
| #define PACKAGE_BUGREPORT""
| #define PACKAGE_URL""
| #define PACKAGE"wallpaperd"
| #define VERSION"0.2.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3115: error: in `/home/ruben/wallpaperd-0.2.0':
configure:3119: 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=
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_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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_imlib2_CFLAGS_set=
ac_cv_env_imlib2_CFLAGS_value=
ac_cv_env_imlib2_LIBS_set=
ac_cv_env_imlib2_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_xrandr_CFLAGS_set=
ac_cv_env_xrandr_CFLAGS_value=
ac_cv_env_xrandr_LIBS_set=
ac_cv_env_xrandr_LIBS_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/ruben/wallpaperd-0.2.0/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/ruben/wallpaperd-0.2.0/missing --run tar'
AUTOCONF='${SHELL} /home/ruben/wallpaperd-0.2.0/missing --run autoconf'
AUTOHEADER='${SHELL} /home/ruben/wallpaperd-0.2.0/missing --run autoheader'
AUTOMAKE='${SHELL} /home/ruben/wallpaperd-0.2.0/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/ruben/wallpaperd-0.2.0/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT=''
PACKAGE='wallpaperd'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='wallpaperd'
PACKAGE_STRING='wallpaperd 0.2.0'
PACKAGE_TARNAME='wallpaperd'
PACKAGE_URL=''
PACKAGE_VERSION='0.2.0'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.2.0'
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof -"$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
imlib2_CFLAGS=''
imlib2_LIBS=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/ruben/wallpaperd-0.2.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
xlib_CFLAGS=''
xlib_LIBS=''
xrandr_CFLAGS=''
xrandr_LIBS=''

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

/* confdefs.h */
#define PACKAGE_NAME"wallpaperd"
#define PACKAGE_TARNAME"wallpaperd"
#define PACKAGE_VERSION"0.2.0"
#define PACKAGE_STRING"wallpaperd 0.2.0"
#define PACKAGE_BUGREPORT""
#define PACKAGE_URL""
#define PACKAGE"wallpaperd"
#define VERSION"0.2.0"

configure: exit 77