LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2002, 06:26 PM   #1
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Rep: Reputation: 30
make install error


OS Mandy 8.1

Im trying to install the alsa drivers. I need to know what this means after trying to "make install" my drivers. I type in the cmd:
make install

It works to a certain point but then fails. Something to do with version.h. Anyway, I looked at alsa's how to and it said this:

If this tells you that something like ``version.h'' cannot be found, then you probably do not have a proper kernel source tree. You need a couple of files of your kernel source to be able to compile the ALSA-drivers. Unpack your favorite linux-2.x.y.tar.gz in /usr/src, and issue a make menuconfig. (Actually, make symlinks may be enough). Now compile the libraries:

What does it mean to "unpack your favorite linux-2.x.y.tar.gz in /usr/src, and issue make menuconfig." What would my "favorite linux- 2.x.y.tar.gz be? How can I do this? Thank you.
P.S.
Can someone please type in a path for /usr/src also. It says no file or dir even when Im root.
 
Old 01-20-2002, 06:38 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
install the kernel-source-2.4.somethingorother.i586.rpm from md81 cd 2. should be all you need to do...
 
Old 01-20-2002, 07:07 PM   #3
therion12
Member
 
Registered: Dec 2001
Location: chicago, IL
Distribution: Gentoo 1.4_rc1
Posts: 913

Rep: Reputation: 30
Yes, except issue a "uname -a" and make sure the one you are going to install is the one that matches the uname -a.

Mandrake 8.1, depending on how you install it can give you but is not limited to:

2.4.8-34.1mdk
2.4.8-24
 
Old 01-20-2002, 07:49 PM   #4
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
Ok guys Im still a little new to linux so bear with me! Ive mounted the cd and found the file "kernal-source-2.4.8-26mdk.i586.rpm"

What command should I use now? Should I install it into a particular dir(usr/src) and then make "menuconfig"?

Im not that familar with the terminal commands. Would you be able to type out the command so it goes to the proper dir and is installed? Thank you.

PS I tried cmd uname -a and it listed a long line of info but the "2.4.8-26mdk" #1 is the same. Is this what you were talking about?

Last edited by psyklops; 01-20-2002 at 08:01 PM.
 
Old 01-20-2002, 08:29 PM   #5
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
I tried to copy the file to my ~ and I got a "cannot stat kernel-source-2.4.8-26mdk.i586.rpm no such file or directory". Whats the matter?

Udate: I think I figured it out. Got the rpm in my ~.

Last edited by psyklops; 01-20-2002 at 08:38 PM.
 
Old 01-20-2002, 09:04 PM   #6
therion12
Member
 
Registered: Dec 2001
Location: chicago, IL
Distribution: Gentoo 1.4_rc1
Posts: 913

Rep: Reputation: 30
Once mounted an easy way to install a rpm is this:

>Open Konsole

>su
>cd /mnt/cdrom

>rpm-Uvh <filename>
 
Old 01-20-2002, 09:09 PM   #7
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
the saga continues.

I brought the kernel-source file to the usr/src/ dir and "unpacked" it. However when I try to

make menuconfig

I get

make: *** no rule to make target menuconfig. stop.

I found this in the output above the error:

error: failed dependencies:
ncurse-devel is needed by kernel-source-2.4.8-26mdk.i586.rpm.

I dont know what this last error means. I think Ill go look for a file called ncurse-devel adn put it in with my little dir here...

Any advise is appreciated.
 
Old 01-20-2002, 09:35 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
You dont need to run "make menuconfig" on a mandrake kernel src rpm. It has already been done by mandrake, you've just installed the missing files that alsa was complaining about. Do (as root) "ldconfig" and "depmod -a" then try making alsa again. You only need to do the "make menuconfig" when you are dealing with a stock kernel source .tar.gz, a quick read of the Kernel-HOWTO will give you the basics.
 
Old 01-20-2002, 09:52 PM   #9
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
---

<WTF- why can't I delete this post?>

Last edited by DMR; 01-20-2002 at 10:21 PM.
 
Old 01-21-2002, 12:14 AM   #10
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
The kernel-source-2.4.8-26mdk.i586.rpm is in my /src. I ran both ldconfig and depmod -a. I didnt get any errors but I didn't get a line of affirmation either. I suppose everything worked. However when I ran "make install" for the drivers I get two errors:

says it cant make file.config then

make [1] : *** [dep] Error 1
make [1] : Leaving directory....
make : *** [include /sndversion.h] Error 2

There it is again. sndversion.h...

Where can I get this sndversion.h...?

This is the only thing that seems to be holding me up it seems.
 
Old 01-21-2002, 02:31 AM   #11
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
The file.config error is the clue here, that error means that "./configure" is not completing. Have a look for a "config.log" file in the alsa source directory and it will tell you where config is stopping. Most likely it's a missing dependency that you'll have to download and install first.
 
Old 01-21-2002, 03:25 AM   #12
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
OK, I only have the driver, lib, and util dir's. This is what I was told to DL from the ALSA HowTo and put into the /src.: ) I dont have a "alsa source dir" the closest thing would be the driver dir. Heres the config.log for the driver:

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

configure:571: checking for gcc
configure:684: checking whether the C compiler (gcc ) works
configure:700: gcc -o conftest conftest.c 1>&5
configure:726: checking whether the C compiler (gcc ) is a cross-compiler
configure:731: checking whether we are using GNU C
configure:740: gcc -E conftest.c
configure:759: checking whether gcc accepts -g
configure:793: checking for ranlib
configure:851: checking for a BSD compatible install
configure:905: checking how to run the C preprocessor
configure:926: gcc -E conftest.c >/dev/null 2>conftest.out
configure:985: checking for ANSI C header files
configure:998: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1065: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1093: checking for linux/fs.h
configure:1103: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1131: checking for working const
configure:1185: gcc -c -g -O2 conftest.c 1>&5
configure:1206: checking for inline
configure:1220: gcc -c -g -O2 conftest.c 1>&5
configure:1246: checking whether time.h and sys/time.h may both be included
configure:1260: gcc -c -g -O2 conftest.c 1>&5
configure:1283: checking whether gcc needs -traditional
configure:1330: checking for current directory
configure:1336: checking for directory with kernel source
configure:1354: checking for kernel version

I dont know if that helps you. I dont see any dep issues do you?

URL of ALSA HOWTO Im following
http://www.alsa-project.org/~valenty...O-4.html#ss4.1
 
Old 01-21-2002, 03:31 AM   #13
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
This is the config.log of lib:

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

configure:571: checking for a BSD compatible install
configure:624: checking whether build environment is sane
configure:681: checking whether make sets ${MAKE}
configure:727: checking for working aclocal
configure:740: checking for working autoconf
configure:753: checking for working automake
configure:766: checking for working autoheader
configure:779: checking for working makeinfo
configure:808: checking for gcc
configure:921: checking whether the C compiler (gcc ) works
configure:937: gcc -o conftest conftest.c 1>&5
configure:963: checking whether the C compiler (gcc ) is a cross-compiler
configure:968: checking whether we are using GNU C
configure:977: gcc -E conftest.c
configure:996: checking whether gcc accepts -g
configure:1039: checking for a BSD compatible install
configure:1092: checking whether ln -s works
configure:1189: checking host system type
configure:1210: checking build system type
configure:1230: checking for ranlib
configure:1269: checking for ld used by GCC
configure:1332: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
configure:1348: checking for BSD-compatible nm
ltconfig:603: checking for object suffix
ltconfig:604: gcc -c -g -O2 conftest.c 1>&5
ltconfig:629: checking for executable suffix
ltconfig:630: gcc -o conftest -g -O2 conftest.c 1>&5
ltconfig:776: checking if gcc PIC flag -fPIC works
ltconfig:777: gcc -c -g -O2 -fPIC -DPIC conftest.c 1>&5
ltconfig:829: checking if gcc supports -c -o file.o
ltconfig:830: gcc -c -g -O2 -o out/conftest2.o conftest.c 1>&5
ltconfig:862: checking if gcc supports -c -o file.lo
ltconfig:863: gcc -c -g -O2 -c -o conftest.lo conftest.c 1>&5
ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:915: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
ltconfig:958: checking if gcc static flag -static works
ltconfig:959: gcc -o conftest -g -O2 -static conftest.c 1>&5
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
ltconfig:1592: checking if global_symbol_pipe works
ltconfig:1593: gcc -c -g -O2 conftest.c 1>&5
ltconfig:1596: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1648: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions conftest.c conftstm.o 1>&5
ltconfig:2170: checking for dlopen in -ldl
ltconfig:2188: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions conftest.c -ldl 1>&5
ltconfig:2395: checking for dlfcn.h
ltconfig:2405: gcc -c -g -O2 -fno-builtin -fno-rtti -fno-exceptions conftest.c 1>&5 conftest.c >/dev/null 2>conftest.out
ltconfig:2433: checking whether a program can dlopen itself
ltconfig:2487: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions -DHAVE_DLFCN_H -Wl,--export-dynamic conftest.c -ldl 1>&5
ltconfig:2506: checking whether a statically linked program can dlopen itself
ltconfig:2560: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions -DHAVE_DLFCN_H -Wl,--export-dynamic -static conftest.c -ldl 1>&5
ltconfig: failed program was:
#line 2514 "ltconfig"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
# define LTDL_GLOBAL RTLD_GLOBAL
#else
# ifdef DL_GLOBAL
# define LTDL_GLOBAL DL_GLOBAL
# else
# define LTDL_GLOBAL 0his file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:571: checking for a BSD compatible install
configure:624: checking whether build environment is sane
configure:681: checking whether make sets ${MAKE}
configure:727: checking for working aclocal
configure:740: checking for working autoconf
configure:753: checking for working automake
configure:766: checking for working autoheader
configure:779: checking for working makeinfo
configure:808: checking for gcc
configure:921: checking whether the C compiler (gcc ) works
configure:937: gcc -o conftest conftest.c 1>&5
configure:963: checking whether the C compiler (gcc ) is a cross-compiler
configure:968: checking whether we are using GNU C
# endif
#endif

/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
find out it does not work in some platform. */
#ifndef LTDL_LAZY_OR_NOWhis file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:571: checking for a BSD compatible install
configure:624: checking whether build environment is sane
configure:681: checking whether make sets ${MAKE}
configure:727: checking for working aclocal
configure:740: checking for working autoconf
configure:753: checking for working automake
configure:766: checking for working autoheader
configure:779: checking for working makeinfo
configure:808: checking for gcc
configure:921: checking whether the C compiler (gcc ) works
configure:937: gcc -o conftest conftest.c 1>&5
configure:963: checking whether the C compiler (gcc ) is a cross-compiler
configure:968: checking whether we are using GNU C
# ifdef RTLD_LAZY
# define LTDL_LAZY_OR_NOW RTLD_LAZY
# else
# ifdef DL_LAZY
# define LTDL_LAZY_OR_NOW DL_LAZY
# else
# ifdef RTLD_NOW
# define LTDL_LAZY_OR_NOW RTLD_NOW
# else
# ifdef DL_NOW
# define LTDL_LAZY_OR_NOW DL_NOW
# else
# define LTDL_LAZY_OR_NOW 0
# endif
# endif
# endif
# endif
#endif

fnord() { int i=42;}
main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }

configure:1559: checking how to run the C preprocessor
configure:1580: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1639: checking for ANSI C header files
configure:1652: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1719: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1748: checking for working const
configure:1802: gcc -c -g -O2 conftest.c 1>&5
configure:1823: checking for inline
configure:1837: gcc -c -g -O2 conftest.c 1>&5
configure:1863: checking whether time.h and sys/time.h may both be included
configure:1877: gcc -c -g -O2 conftest.c 1>&5
configure:1900: checking whether gcc needs -traditional
configure:1946: checking for hsearch_r
configure:1974: gcc -o conftest -g -O2 conftest.c 1>&5
configure:2005: checking for alsa-driver package
configure:2029: gcc -c -g -O2 conftest.c 1>&5
configure:2010:26: sound/asound.h: No such file or directory
configure:2017:2: #error not found
configure: failed program was:
#line 2008 "configure"
#include "confdefs.h"

#include <sound/asound.h>

int main() {

void main(void)
{
#if !defined(SNDRV_PROTOCOL_VERSION) || !defined(SNDRV_PROTOCOL_INCOMPATIBLE)
#error not found
#else
#if !defined(SNDRV_PCM_IOCTL_REWIND)
#error wrong version
#endif
exit(0);
#endif
}

; return 0; }
 
Old 01-21-2002, 03:49 AM   #14
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
I saw a couple of errors in the lib config.log, those would be the ones to check out at the alsa web page, there should be a mailing list archive there that might have info on those errors.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Install a thing becuse of a error I get when doing make install jkt Linux - Software 6 01-19-2010 09:16 PM
make install error Mgs0008b221 Linux - Newbie 4 12-02-2005 02:02 AM
cant make install...Error joirnange Linux - Newbie 1 01-14-2005 02:19 AM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 08:02 PM
mysql installation error (make install error) jolly_good2000 Linux - Software 1 11-14-2002 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:01 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
Open Source Consulting | Domain Registration