Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Red Hat on my computer and I have the MSI Neo2 motherboard with integrated sound. I downloaded the sound drivers and I'm having trouble installing them.
Here's what the readme says word for word (even that little mispelling, which makes me very nervous )
Quote:
Step 1. Unzip source code
tar xzf cmaudio-034.tar.gz
Step 2. Turn on sound support (soundcore module)
Step 3. Complied source code
make
make install
Step 4. Edit your /etc/modules.conf or conf.modules depending on the Distribution
alias sound-slot-0 cmaudio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
Step 5. reboot your machine
I have NO idea where the soundcore module is other than the directory with sound drivers.
If I try to go ahead and do a make I get this message
Quote:
$ make
cc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -c -o main.o main.c
make: cc: Command not found
make: *** [main.o] Error 127
I'm running Red Hat. I need to change that in my profile...
Edit: BTW, what is GCC because I'm trying to install it but I have no idea which section of the package installer its under. There was a search feature in Mandrake...
Well, I went to that link and went browsing the CD as that person did. I found 3 files with GCC in their names and all 3 gave me the message that they were already installed.
I don't know whether this is the right thing to do next, but here we go:
Try locating the gcc file, what I'm actually looking for is the binary. If I type which gcc, it gives me /usr/bin/gcc. You gonna have command not found or something.
Once you have located the binary, it must be somewhere it can be executed. If you run "echo $PATH", you'll get a list of directories in which the system looks for binaries. If the path to your gcc isn't listed there, you have to add to this variable the path to your gcc binary (I'm just thinking of it, this can't be right - but give it a try)
Good luck
Ok did that. It seems to have fixed one problem, but now there's a different error message.
$ make
cc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -c -o main.o main.c
In file included from cmaudio.h:7,
from main.c:1:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from main.c:1:
cmaudio.h:18:30: linux/ac97_codec.h: No such file or directory
In file included from main.c:1:
cmaudio.h:20:25: asm/uaccess.h: No such file or directory
cmaudio.h:21:25: asm/hardirq.h: No such file or directory
make: *** [main.o] Error 1
It looks like it is looking forthe linux kernel headers, which you obvously have not installed. Check your Redhat CD for them and install them as well. The rpm could be called kernel-headers....rpm or linux-headers.....rpm, redhat-headers or anything like that. They do not have any dependencies
These are files required to install drivers - they get stored under /usr/include/linux or /usr/include/asm etc. Without them, you can't comile anything that requires a call to a kernel function.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.