Related Posts Plugin for WordPress, Blogger...

Wednesday, December 8, 2010

Installing g77 in Ubuntu intrepid (8.10), Jaunty (9.04), Karmic (9.10), Lucid (10.04), Maverick (10.10), Natty (11.04)

g77 is a part of gcc (GNU Compiler Collection) provided by GNU. But GNU stopped supporting it from gcc-4.2. Current Ubuntu versions starting from Ubuntu 8.10 (Intrepid) are using gcc-4.2 or higher. Current Ubuntu Maverick is using gcc-4.5. So to install g77 we need to install gcc-3.4. This package is included in the "universe" repositories of Ubuntu "hardy" distribution. Hence to install g77 in Ubuntu Intrepid, Jaunty, Karmic, Lucid, Maverick versions we need to add the hardy universe repository to the sources.list. Here is the procedure for it.




Press Alt+F2 and type

gksudo gedit /etc/apt/sources.list

http://i55.tinypic.com/2hn6zqc.png

The file will look like this.



http://i52.tinypic.com/2wgyflj.png

Search for #deb and #deb-src and delete the # symbol before deb
Don't delete the # symbol before deb cdrom


http://i52.tinypic.com/v5h7wi.png

The final file should look like this. You may need to remove four times # symbol.

http://i56.tinypic.com/hv77mq.png


Find out the four lines with universe and copy them.

http://i52.tinypic.com/2qut2du.png


Paste them at the end of the file. Edit the word maverick and replace with hardy as shown below. Now save the file and close.

http://i52.tinypic.com/1z52nw7.png

Now open "synaptic package manager"

It will be in System --> Administration --> Synaptic Package Manafer"

http://i53.tinypic.com/nnofpt.png

Now one will see this. Click on "Close"

http://i51.tinypic.com/eirsyf.png

Now click on "Reload"

http://i53.tinypic.com/rw04l2.png


http://i56.tinypic.com/22dbmq.png

Now type g77 "Quick Search" box...

http://i52.tinypic.com/m9ocah.png

Now right click on g77 and select "Mark for installation"

http://i53.tinypic.com/1589iip.png


Select "Mark" for additional changes if required...


http://i52.tinypic.com/2uzxtzt.png


Now click on "Apply"

http://i51.tinypic.com/ae5mhe.png

A summary of the new changes will look like this. Click on "Apply"

http://i56.tinypic.com/975ie9.png

Now the system will download the packages..

http://i51.tinypic.com/9a7nmf.png

Then it will install..

http://i52.tinypic.com/2qsa2p2.png

If installation is success you will see this..

If it is success.. click on "Close"

http://i51.tinypic.com/1zcmyo1.png

Now one can see a tick mark before "g77" in the synaptic package manager like this..

http://i52.tinypic.com/4lg8b9.png

Simplest way is:

add to /etc/apt/sources.list the ubuntu 8.04 hardy repositories as superuser:

deb http://in.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy universe
deb http://in.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-updates universe

then in the terminal:

sudo apt-get update
sudo apt-get install g77

For Ubuntu 8.10 you should use this after adding hardy repos

sudo aptitude update
sudo aptitude install g77



Enjoy....



Please give your valuable comment for further improvement...


9 comments:

  1. Never mind. I found a better solution, installing Intel's packages :)

    ReplyDelete
  2. That is the DEFAULT theme of Ubuntu Ultimate 2.8 version dude... That's not mine... :)

    But i guess, it is the content but not the theme which matters...

    ReplyDelete
  3. High Definition Television - eine neue Art des Fernsehens, das einen HDTV-Tuner und ein HD-fähiges Display kombiniert. Fast alle von HDTV auf dem Markt nutzen das 16: 9 Widescreen-Seitenverhältnis. Ein HDTV-Tuner können analoge und digitale Ausstrahlung über die Luft empfangen. HDTV-kompatiblen Fernseher bietet nur die hochauflösenden Display und kann nur digitale Sendungen empfangen, wenn mit einem separaten HDTV-Tuner angeschlossen. 9-Breitbild-Verhältnis oder den Platz wie 4: HD-ready-Fernseher können die 16 haben 3-Seitenverhältnis.
    Visit http://blog1.de/FilmundUnterhaltung

    ReplyDelete
  4. I read your contents, and it is best way to inform about the laptop/computer issues to the users. Computer Repair Service at Home In Noida offer cheap computer repairing service at home, at home service charge of 150 rs only.

    ReplyDelete
  5. Though the technical glitch scared a lot of people. It was just a publicity stunt to make the event even more interesting. The intention was good the question is. Is it necessary to make a fuss just before the big event? I don't think so.jogos friv gratis
    Jogos online
    jogos 4 school
    abcya games 4 school

    ReplyDelete
  6. NETSOL Technologies offers premium software solutions and digital empowerment solutions for the rental and asset financing industry worldwide

    ReplyDelete
  7. I was suggested this blog by my cousin. I'm not sure whether this post is written by him as nobody else know such detailed about my problem. You're amazing! Thanks! android programmierung berlin

    ReplyDelete