LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-13-2005, 09:07 AM   #1
mullera
LQ Newbie
 
Registered: Nov 2004
Location: Hamilton, Ontario, Canada
Distribution: Ubuntu Edgy Eft (6.10)
Posts: 7

Rep: Reputation: 0
updating gcc - am I specifying correct directories


I am pretty new at installing programs from source and want to make sure I am not
about to screw up my system.

I needed a fortran compiler to compile R on my home machine running Mandrake 9.1, so
I downloaded gcc-3.4.3 and untarred/zipped it

The install manual says
¨ First, we highly recommend that GCC be built into a separate directory than the sources which does not reside within the source tree. This is how we generally build GCC; building where srcdir == objdir should still work, but doesn't get extensive testing; building where objdir is a subdirectory of srcdir is unsupported."

so I did (roughly)
cd ~/src
mkdir gcc-3.4.3-obj
cd gcc-3.4.3-obj
../gcc-3.4.3/configure

I did not specify a --prefix, so the toplevel installation directory defaults to /usr/local.

I then did
make bootstrap

and left the machine overnight(!). In the morning I had a clean compile. I don't have dejagnu installed on the home machine so I decided to skip testing and move on to the final install. This is where I am worried.

The manual states
"Now that GCC has been built (and optionally tested), you can install it with

cd objdir; make install

We strongly recommend to install into a target directory where there is no previous version of GCC present. "

I still have gcc-3.3.? present under /usr/local. Will I be violating this strong recommendation if I just do make install? Should I have specified a different prefix at the configure stage? If so, is there a standard name?

Is there anything else I should do to keep the two versions of gcc from stepping on each other and to clean up after the install?

Sorry to pose such naive questions, but I would like reassurance.

thank you
 
  


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
which directories do I untar during GCC pass2? microsoft/linux Linux From Scratch 6 09-09-2005 08:35 AM
cannot re-enable konqueror automatic updating of directories (file-size) Emmanuel_uk Linux - Newbie 3 06-28-2005 02:01 AM
Is the output of (chapter 6)gcc-3.3.3 make -k check correct?????? linuxbh Linux From Scratch 1 09-05-2004 08:37 AM
How to reconfigure GCC search directories jsmerritt Linux - Software 0 08-20-2004 10:59 AM
Updating gcc 2.96 Doalwa Linux - Newbie 4 08-10-2002 03:35 PM

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

All times are GMT -5. The time now is 11:20 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