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...


8 comments:

  1. Thanks, it looks very useful, but my sources.list file doesn't have the lines you mention.

    Can you please tell me how should I write it starting from what I've got?

    # Ubuntu supported packages
    deb http://archive.ubuntu.com/ubuntu/ lucid main restricted multiverse universe
    deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted multiverse universe
    deb http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ lucid main restricted multiverse universe
    deb-src http://archive.ubuntu.com/ubuntu/ lucid-backuniverseports main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted multiverse universe
    deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
    deb-src http://security.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse

    #Canonical Commercial Repository
    deb http://archive.canonical.com/ubuntu lucid partner
    deb http://archive.canonical.com/ubuntu lucid-backports partner
    deb http://archive.canonical.com/ubuntu lucid-updates partner
    deb http://archive.canonical.com/ubuntu lucid-security partner
    deb http://archive.canonical.com/ubuntu lucid-proposed partner
    deb-src http://archive.canonical.com/ubuntu lucid partner
    deb-src http://archive.canonical.com/ubuntu lucid-backports partner
    deb-src http://archive.canonical.com/ubuntu lucid-updates partner
    deb-src http://archive.canonical.com/ubuntu lucid-security partner
    deb-src http://archive.canonical.com/ubuntu lucid-proposed partner

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

    ReplyDelete
  3. What a shitty theme for your Linux. Dude kill yourself!

    ReplyDelete
  4. 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
  5. You save my day !
    thanks a lot....

    ReplyDelete
  6. 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
  7. NATIONAL INSTITUTE OF DIGITAL EDUCATION established in 2010 with the mission of delivering training to professionals in Computer Training. We offer a wide range of quality computer training.

    All our training courses are taught by professionals in the field, allowing you the chance to learn from experts within their respected industry, which provides you with a quality computer training that will help you take your knowledge and career to new heights. We have different courses to shoot-up the requirement of the general youths of West Bengal. The duration of the courses are segregated in Six Months, One Year & 18 Months. Students are awarded by CERTIFICATE which will accept all over India.
    -----------------------------------------------------------------------------------------------------
    Email: info@nideindia.in / nidedirector@gmail.com

    Website : http://www.nideindia.in , Facebook : https://www.facebook.com/NIDEofficial/

    Twitter : https://twitter.com/nideindia , YouTube : https://www.youtube.com/channel/UCDvV-Fhx9Tz3jDmeZu4EOUw

    Android App : https://play.google.com/store/apps/details?id=com.ntss.nide

    ReplyDelete