LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot install ANYTHING! (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-install-anything-82926/)

ludeKing 08-17-2003 06:28 PM

Cannot install ANYTHING!
 
Hi all,

After a fresh FULL reinstall of Slackware 9.0, I am still having troubles installing drivers and programs.
I have attempted to install the Alsa Drivers for my VIA 8233 AC97 audio chip, and I am following the instructions given.

Code:

In a shell type these commands:

 Make a directory to store the alsa source code in.

        cd /usr/src
        mkdir alsa
        cd alsa
        cp /downloads/alsa-* .

 Now unzip and install the alsa-driver package:

      bunzip2 alsa-driver-xxx
        tar -xf alsa-driver-xxx
        cd alsa-driver-xxx
        ./configure --with-cards=via82xx --with-sequencer=yes;make;make install

and when I get to the ./configure part, I get this output.

Code:

root@stevo:/usr/src/alsa/alsa-driver-0.9.6# ./configure --with-cards=via82xx --with-sequencer=yes;make;make install
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
make all-deps
make[1]: Entering directory `/usr/src/alsa/alsa-driver-0.9.6'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-0.9.6'

Please, run the configure script as first...

rm -f /snd*.o /persist.o /isapnp.o
make[1]: Entering directory `/usr/src/alsa/alsa-driver-0.9.6/support'
Makefile:9: ../Makefile.conf: No such file or directory
Makefile:27: /Rules.make: No such file or directory
make[1]: *** No rule to make target `/Rules.make'.  Stop.
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-0.9.6/support'
make: *** [install-modules] Error 1

So I try running the ./configure line a diff way and I get this:

Code:

root@stevo:/usr/src/alsa/alsa-driver-0.9.6# ./configure --with-cards=via82xx --with-sequencer=yes && make && make install
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

Then I try running the configure script on its own, and here is what I get:

Code:

root@stevo:/usr/src/alsa/alsa-driver-0.9.6# ./configure --with-cards=via82xx --with-sequencer=yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
root@stevo:/usr/src/alsa/alsa-driver-0.9.6#

How do I install programs! What must I be missing?
Any help greatly appreciated.

Steve.

tearinox 08-17-2003 07:20 PM

These following commands should fix it right up :)
Be in the directory where you unzipped the files and type one of the following commands:

#make

or

#make install

DrOzz 08-17-2003 08:42 PM

what is the output of errors from the config.log file?
it looks like a case of missing C Library: Development Libraries and Header Files.
make sure you have the glibc-devel package installed matching your glibc version...this is the most common reason for this error..

oh and tearinox, that will not solve his problem....

ludeKing 08-18-2003 08:10 AM

Here is the output from my config.log file
Code:

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.52.  Invocation command line was

  $ ./configure

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

hostname = h4x0r
uname -m = i686
uname -r = 2.4.20
uname -s = Linux
uname -v = #2 Mon Mar 17 22:02:15 PST 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:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin

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

configure:949: PATH=".;."; conftest.sh
./configure: line 950: conftest.sh: command not found
configure:952: $? = 127
configure:1006: checking for gcc
configure:1021: found /usr/bin/gcc
configure:1029: result: gcc
configure:1257: checking for C compiler version
configure:1260: gcc --version </dev/null >&5
gcc (GCC) 3.2.2
Copyright (C) 2002 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:1263: $? = 0
configure:1265: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2
configure:1268: $? = 0
configure:1270: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1273: $? = 1
configure:1293: checking for C compiler default output
configure:1296: gcc    conftest.c  >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:1299: $? = 1
configure: failed program was:
#line 1277 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
configure:1322: error: C compiler cannot create executables

## ----------------- ##
## 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_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_prog_ac_ct_CC=gcc


configure: exit 77


ludeKing 08-18-2003 08:13 AM

Quote:

Originally posted by DrOzz

make sure you have the glibc-devel package installed matching your glibc version...this is the most common reason for this error..

what would the glibc dev package look like, ie, what would its version number be. ie glibc-dev-2.3.1 etc......
I have glibc-2.3.1-i386-3 and a few glib packages associated with it.

ludeKing 08-18-2003 09:11 PM

bump, anyone?


All times are GMT -5. The time now is 11:00 AM.