LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2003, 06:24 AM   #1
Al Bundy
LQ Newbie
 
Registered: Mar 2003
Location: Perth Australia
Posts: 17

Rep: Reputation: 0
Question A short question about compiling again


A short question about compiling again

If i have already compiled a given item (alsa driver in this case) and then want to recompile it do I just simply compile it again or do I have to do something to get rid of the originally compiled version..??

thanks in advance

keith
 
Old 06-12-2003, 06:29 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,186

Rep: Reputation: 52
make clean
gets rid of the old, mostly
gcc usually notices which files and stuff have been
changed, and you don't usually have to make clean.
you can just make. but if something isn't working,
you should redo with a make clean to check if that
was it.
 
Old 06-12-2003, 06:38 AM   #3
Al Bundy
LQ Newbie
 
Registered: Mar 2003
Location: Perth Australia
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks whansard

Ok let me see if I understand this

I originally downloaded the alsa drivers, utils and lib and compiled them my self with no luck, searching through the help pages on the site I found this script

http://myweb.cableone.net/eviltwin69/ALSA.html

it basally runs all the ./configure make install for all the packages,

this is the script
-------------------------------------------------------------------------


clear
echo
echo
echo "Making ALSA drivers"
echo
echo
bzip2 -d alsa-driver*.tar.bz2 2>/dev/null
tar -xvf alsa-driver*.tar
cd alsa-driver-*
./configure --with-isapnp=no --with-cards=ens1371,emu10k1,ice1712 --with-sequencer=yes
make install
./snddevices
chmod 666 /dev/dsp* /dev/mixer* /dev/sequencer* /dev/midi*
cd ..
find . -name alsa-driver\* -a -type d -exec rm -rf {} \;
cat >~/.asoundrc <<EOF
pcm.ice1712 {
type hw
card 0
}
ctl.ice1712 {
type hw
card 0
}
EOF
echo
echo
echo "Making ALSA libraries"
echo
echo
bzip2 -d alsa-lib*.tar.bz2 2>/dev/null
tar -xvf alsa-lib*.tar
cd alsa-lib*
./configure
make install
cd ..
find . -name alsa-lib\* -a -type d -exec rm -rf {} \;

echo
echo
echo "Making ALSA OSS compatibility"
echo
echo
bzip2 -d alsa-oss*.tar.bz2 2>/dev/null
tar -xvf alsa-oss*.tar
cd alsa-oss*
./configure --disable-alsatest
make install
cd ..
find . -name alsa-oss\* -a -type d -exec rm -rf {} \;

echo
echo
echo "Making ALSA tools"
echo
echo
bzip2 -d alsa-tools*.tar.bz2 2>/dev/null
tar -xvf alsa-tools*.tar
cd alsa-tools*
cd envy24*
./configure --disable-alsatest
make install
cd ../as10k1
./configure
make install
cd ../..
find . -name alsa-tools\* -a -type d -exec rm -rf {} \;

echo
echo
echo "Making ALSA utilities"
echo
echo
bzip2 -d alsa-utils*.tar.bz2
tar -xvf alsa-utils*.tar
cd alsa-utils*
./configure --disable-alsatest
make install
cd ..
find . -name alsa-utils\* -a -type d -exec rm -rf {} \;

-------------------------------------------------------------------------


would I just add make clean above the make install (all of them) that apear in the above script??

eg
-- of script
make clean
make install
--rest of script

thanks again

Last edited by Al Bundy; 06-12-2003 at 06:39 AM.
 
Old 06-12-2003, 06:48 AM   #4
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
Just skip the the "make clean". "./configure" should be quite fine to give the Makefile's a newer timestamp. Or, run "make clean" before the script.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Short MySQL Question The_Messiah Linux - Networking 2 03-28-2005 03:30 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
short modules question anadyr Slackware 1 01-02-2005 05:03 PM
Very short PERL question. Stingreen Programming 4 03-15-2002 09:59 AM
Permission question, (short) Stingreen Linux - General 5 03-14-2002 11:19 PM


All times are GMT -5. The time now is 10:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration