LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2003, 05:44 PM   #1
Jiggy
Member
 
Registered: Nov 2003
Posts: 36

Rep: Reputation: 15
Can't install alsa drivers


I'm trying to get my sound card working with Slack 9 and can't get the alsa drivers installed. I'm following the directions exactly as alsa's site says but am getting a error after the following.

Heres the output:

root@localhost:/usr/src/alsa/alsa-driver-0.9.8# ./configure --with-kernel=/usr/src/linux --with-cards=via82xx --with-sequencer=yes;make;make install
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/ginstall -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/src/alsa/alsa-driver-0.9.8
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
make all-deps
make[1]: Entering directory `/usr/src/alsa/alsa-driver-0.9.8'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-0.9.8'

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.8/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.8/support'
make: *** [install-modules] Error 1
root@localhost:/usr/src/alsa/alsa-driver-0.9.8#

The kernel source folder was /usr/src/linux-2.4.20 but i renamed it to /usr/src/linux and am getting the same error.
 
Old 11-14-2003, 07:06 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You should have made a symbolic link instead.

Are you sure your kernel-source matches your running kernel?

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
 
Old 11-14-2003, 08:11 PM   #3
Jiggy
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Still no luck I got the right kernel, added the symbolic link to it, and gcc seems to be installed:

root@localhost:/usr/src/alsa/alsa-driver-0.9.8# gcc -v
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
root@localhost:/usr/src/alsa/alsa-driver-0.9.8#

I just tried to install the nvidia drivers and got a similar error about the kernel source so maybe i am doing something wrong.

k.o/pub/linux/kernel/v2.4/linux-2.4.20.tar.gz and just extract it to /usr/src right? I've tried doing what the README says "Do NOT use the /usr/src/linux area!"
so i extracted it to the home directory like it said and added a --with-kernel=/root/linux-2.4.20 to the ./configure command and still have the same problem.
 
Old 11-14-2003, 08:19 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Post the output of these commands:

cd /usr/src
ls -al
 
Old 11-14-2003, 08:25 PM   #5
Jiggy
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
here ya go

root@localhost:/usr/src/linux# cd /usr/src
root@localhost:/usr/src# ls -al
total 20
drwxr-xr-x 5 root root 4096 Nov 14 20:53 ./
drwxr-xr-x 17 root root 4096 Mar 12 2002 ../
drwxr-xr-x 3 root root 4096 Nov 14 20:57 alsa/
lrwxrwxrwx 1 root root 12 Nov 14 20:37 linux -> linux-2.4.20/
drwxr-xr-x 14 573 573 4096 Nov 14 21:29 linux-2.4.20/
drwxr-xr-x 7 root root 4096 Dec 12 2002 rpm/
root@localhost:/usr/src#
 
Old 11-14-2003, 08:37 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Edited for blindness..

Last edited by fancypiper; 11-14-2003 at 08:57 PM.
 
Old 11-14-2003, 08:48 PM   #7
Jiggy
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Isn't this it?

root@localhost:/usr/src/linux# cd /usr/src
root@localhost:/usr/src# ls -al
total 20
drwxr-xr-x 5 root root 4096 Nov 14 20:53 ./
drwxr-xr-x 17 root root 4096 Mar 12 2002 ../
drwxr-xr-x 3 root root 4096 Nov 14 20:57 alsa/
lrwxrwxrwx 1 root root 12 Nov 14 20:37 linux -> linux-2.4.20/
drwxr-xr-x 14 573 573 4096 Nov 14 21:29 linux-2.4.20/
drwxr-xr-x 7 root root 4096 Dec 12 2002 rpm/
root@localhost:/usr/src#
 
Old 11-14-2003, 08:53 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I must be blind! It sure is.
now, post the output of:

uname -r

and

cd /usr/src/linux
ls -al

Did the md5sum check on all downloaded files?

Last edited by fancypiper; 11-14-2003 at 08:55 PM.
 
Old 11-14-2003, 08:59 PM   #9
Jiggy
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
hehe yeah i did something like that yesterday...
here ya go

root@localhost:/usr/src# uname -r
2.4.20
root@localhost:/usr/src# cd linux
root@localhost:/usr/src/linux# ls -al
total 256
drwxr-xr-x 14 573 573 4096 Nov 14 21:43 ./
drwxr-xr-x 5 root root 4096 Nov 14 20:53 ../
-rw-r--r-- 1 573 573 18691 Aug 2 2002 COPYING
-rw-r--r-- 1 573 573 79594 Nov 28 2002 CREDITS
drwxr-xr-x 30 573 573 4096 Nov 28 2002 Documentation/
-rw-r--r-- 1 573 573 42744 Nov 28 2002 MAINTAINERS
-rw-rw-r-- 1 573 573 18780 Nov 28 2002 Makefile
-rw-r--r-- 1 573 573 14239 Aug 2 2002 README
-rw-r--r-- 1 573 573 2815 Apr 6 2001 REPORTING-BUGS
-rw-r--r-- 1 573 573 9291 Aug 2 2002 Rules.make
drwxr-xr-x 19 573 573 4096 Nov 28 2002 arch/
drwxr-xr-x 41 573 573 4096 Nov 28 2002 drivers/
drwxr-xr-x 46 573 573 4096 Nov 28 2002 fs/
drwxr-xr-x 26 573 573 4096 Nov 14 21:23 include/
drwxr-xr-x 2 573 573 4096 Nov 28 2002 init/
drwxr-xr-x 2 573 573 4096 Nov 28 2002 ipc/
drwxr-xr-x 2 573 573 4096 Nov 28 2002 kernel/
drwxr-xr-x 4 573 573 4096 Nov 28 2002 lib/
lrwxrwxrwx 1 root root 12 Nov 14 21:43 linux-2.4.20 -> linux-2.4.20
drwxr-xr-x 2 573 573 4096 Nov 28 2002 mm/
drwxr-xr-x 28 573 573 4096 Nov 28 2002 net/
drwxr-xr-x 4 573 573 4096 Nov 28 2002 scripts/
root@localhost:/usr/src/linux#
 
Old 11-14-2003, 09:02 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
File a bugzilla report? I'm out of ideas.

Have you tried the CVS? I had to use that for my Turtle Beach Santa Cruz soundcard.
 
Old 11-14-2003, 09:08 PM   #11
Jiggy
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Nope, i'll give that a try though. If that doesn't work i'll update to 9.1 and hopefully that will fix whatever i managed screwed up... Thanks for your time
 
Old 12-27-2003, 08:04 AM   #12
shack
Member
 
Registered: Dec 2003
Distribution: Debian Sid
Posts: 77

Rep: Reputation: 15
I have had a similar problem compiling the alsa-modules-source (0.98.something) package on Woody. The configure script gives no errors and seems to work perfectly, and I DO know how to use it, but it creates a file "Makefile.conf" instead of a regular Makefile. What do I do from here? This has really thrown me. Is Makefile.conf a template or script for generating a Makefile?

PS: I have tried running make on it, but it just doesn't like it.
___
shack
 
Old 12-27-2003, 08:47 AM   #13
shack
Member
 
Registered: Dec 2003
Distribution: Debian Sid
Posts: 77

Rep: Reputation: 15
I decided to try the install instructions for alsa-modules-source. They say that you only need to run "make install", not "make all & make install". That actually worked!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA sound drivers don't install swamysk Linux - Newbie 1 11-20-2004 12:01 PM
Trying to install ALSA drivers gauge73 Linux - Newbie 6 02-12-2004 09:28 PM
pb install 'alsa drivers rpms' under Fedora roskoo Fedora 12 01-04-2004 08:00 PM
Install ALSA drivers with fedora core 1 wlchapman13 Fedora 2 11-11-2003 08:45 PM
trying to install alsa sound drivers nakedjohn Linux - Newbie 17 07-11-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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