Help with Installing GCC 3.3.2

  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

who can help me installing gcc-3.3.2, (gcc-3.3.2.tar.bz2)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

First get the latest version 3.3.3, then run the default commands to compile anything:

./configure
make
make install

or all in one step, ./configure; make; make install;

I'd recommend the first way since you were already having problems with compiling, and doing it step by step will make sure you see any errors.
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

I don't know. This is a Red Hat machine and this person has little or no experience with gcc. It may be better to go with the RPM binaries vs. compiling the source... especially considering they don't have a compiler to compile the source!!!! hehe ;-)

As I suggested in your original post, get the RPM.

...install it from your distribution CDs or download it from
http://ftp.redhat.com/pub/redhat/linux/ ... dHat/RPMS/

Then type:

rpm -Uvh gcc-3.3.2.i386.rpm (or whatever the file is called).
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

b_heyer wrote:
or all in one step, ./configure; make; make install;


on a side note: that's a handy trick... but, you should consider running configure and make as a normal user and switching to root for the install.

./configure ; make
su
make install

interesting bug in the bash shell: if you put a command like "./configure ; make" to the background, make will execute immediately. the only way to get it to work as expected is to put the whole command in a sub-shell.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

Ohh cool, I normally do ./configure and make as root. What's the difference, security? or elsewise?
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

as a general rule, dont' run as root unless you need the security privs. in this case, the only significant difference is the make'd files will be owned by root. that means that you need to switch to root if you want to mess around with the files... as a normal user, minor mistakes won't turn into major problems. think of it as a good habbit for your own peace of mind.
  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

rjmthezonenet, you were helpful thanks, it worked :D
  • dr_geek
  • Beginner
  • Beginner
  • User avatar
  • Posts: 62
  • Loc: london town

Post 3+ Months Ago

b_heyer wrote:
or all in one step, ./configure; make; make install;.


An even better list is:

./configure && make && make install

This way, make will execute iff ./configure returns an exit status of zero; likewise make install iff make is successful.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 57 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.