PDA

View Full Version : [ubuntu] Seriously need to get g77 back on Intrepid 8.10



kimmyjo74
November 3rd, 2008, 03:26 PM
I just upgraded to Intrepid 8.10 this morning and was horrified to find out that g77 is no longer supported. I know that I can use gfortran to compile my own codes but I use some key software that requires g77 to compile job flows on the fly and without it I'm hooped. I am not able to hardwire this software to use gfortran. If I can't get g77 to work on Intrepid, I'm going to need to downgrade my Ubuntu. Help!!!

swhit
November 3rd, 2008, 05:20 PM
I agree. The developers really need to reconsider thier removal of g77 from ubuntu. Fortran 77 (g77) and Fortran 95 (gfortran) are not equivalent.

This is exactly the reason why I left redhat/fedora for ubuntu. Fedora stopped including gnumeric and g77. Getting these two programs installed into Fedora was too much of a hassle compared to changing distributions.

Maybe it's time for me (and others like me) to abandon ubuntu. Does anyone know if OpenSuse supports g77?

whazooo
November 3rd, 2008, 08:32 PM
this seems to be fixed in gcc-3.4 (3.4.6-8ubuntu2) intrepid

see this thread:

https://bugs.launchpad.net/ubuntu/+source/gcc-3.4/+bug/249991

ad_267
November 3rd, 2008, 08:37 PM
They included the libg2c library needed to run code compiled with g77, but I'm not sure if they included g77.

kimmyjo74
November 4th, 2008, 05:45 PM
I managed to get my software running again by compiling g77 from source. I'm happy now.

skorpio11
November 4th, 2008, 07:33 PM
Can you post how you accomplished this ...

Thanks

serexia
November 5th, 2008, 10:19 PM
also, could you tell where did you get the source from?

@swhit: if you were serious, OpenSuse supports g77, but you don't wanna change to suse...

swhit
November 5th, 2008, 11:45 PM
also, could you tell where did you get the source from?

@swhit: if you were serious, OpenSuse supports g77, but you don't wanna change to suse...

I'm also very interested in the steps used for compiling g77 on ubuntu 8.10.

As for switching to OpenSuse, yes, I'm serious. Right now, I'm waiting until the next version of OpenSuse is released (which I think is scheduled for December). When it's released, I will give it a try. If installation of OpenSuse goes smoothly, and g77, gnumeric, and pymol are present (the less mainstream programs I use heavily), then I will become an OpenSuse user. Nothing against Ubuntu. I just prefer an easy to install OS that runs the programs I use, and gets updated regularly (the linux desktop world evolves quickly).

If compiling g77 is easy on ubuntu, then I have no need to switch distributions. I've compiled custom versions of gnuplot in the past when readline support was removed. But, I've heard that g77 is much more difficult to compile.

jimv
November 5th, 2008, 11:59 PM
Why not just go download the DEB from the Hardy repo?

http://packages.ubuntu.com/hardy/g77-3.4

Budoc
November 6th, 2008, 12:55 AM
I find myself in a similar predicament to the poster of this thread. I've been given a file to compile that is written in fortran77. I've tried to use gfortran and fort77 without success. The file that I need to compile has previously been compiled successfully with a Windows-based fortran 77 compiler. I'd at least like the opportunity to attempt to compile it using g77 to see whether I can compile and execute the file without having to leave my beloved ubuntu environment.



Why not just go download the DEB from the Hardy repo?

http://packages.ubuntu.com/hardy/g77-3.4

Despite having gcc-3.4 installed, in the package installer window I get "Error: Dependency is not satisfiable: gcc-3.4" as the status.

swhit
November 6th, 2008, 04:59 PM
Why not just go download the DEB from the Hardy repo?

http://packages.ubuntu.com/hardy/g77-3.4

I've tried this; doesn't install. A laundry list of dependencies occur, which can be fixed by searching out and installing the correct libraries. Upon doing this, however, subsequent 8.10 updates were not compatible (i.e., the 8.10 updates promptly removed the g77 installation).

horvathd
November 9th, 2008, 05:22 PM
I solved this problem with adding the hardy's univese repositories to my source.list. This way I could install g77 with aptitude, while gcc was downgraded to 3.4.6-6, but now it's working.

MMonty1960
November 11th, 2008, 03:53 PM
I tried to add the hardy's universe repositories, but I did not find the g77 package. I initially attempt to operate on the synaptics GUI and later directly on the file source.list, but g77 remains unavailable. Could you tell me exactly the steps you followed?

horvathd
November 12th, 2008, 08:21 PM
I just added the following lines to the source.list after the lines of universe repositories for intrepid:


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

(Note: hu should be changed to your country code i.e. us, gb, de, etc.)

after that in the terminal:


sudo aptitude update
sudo aptitude install g77

That worked for me.

mikiman95
November 14th, 2008, 02:20 PM
I've got the same problem... Altough gfortran 'seems' to compile programs right, I think it's just a matter of time to check for incompatibilities.

So, my question is: are they going to put it back into Ubuntu?? If the answer were 'no', it would be my first really serious problem with Ubuntu... and I don't want that happens!

VOLKOV9
November 16th, 2008, 01:55 AM
I've got the same problem: I have code that worked in g77 and doesn't with fort77, f2c, and/or gfortran.

Following the instructions above (adding the repos and using apt-get) did not work because of a dependency issue with g77-4.3.

Someone earlier mentioned compiling g77 from source, but I can't find how to do that - Does anyone know how that works?

Thanks.

PS: Do we know why they got rid of g77?

pauljoseph
November 17th, 2008, 02:58 PM
I tried to add Hardy repository, and do sudo apt-get install g77, but I got this error:


Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
g77: Depends: g77-3.4 (>= 3.4.6-1) but it is not going to be installed
E: Broken packages


please advise, I need g77 for my work.

horvathd
November 17th, 2008, 07:38 PM
Dear All,

I tried to reproduce the steps I made to install g77. I followed the instructions I wrote above, and I also got the error messages you posted.

Then I tried to install with aptitude, and it made possible to install g77 whit downgrading gcc, and some other components.

Sorry for the inconvenience.

(I also updated my post above.)

mikiman95
November 18th, 2008, 11:28 AM
I did the steps in the post with aptitude, and it worked.

What was amazing for me was the fact that I reached to compile with gfortran my fortran code changing some ideas in the scripts I used to have to manage the compilation. But the numerical results I got were different compiling with g77 and gfortran. Of course, this can be just an error of my code -wich, on the other hand, used to work properly-, in the sense that some lines could be not very nicely written, and g77 interprets them in a different way than gfortran does.

sayantandas
December 4th, 2008, 10:39 AM
Dear All,

I tried to reproduce the steps I made to install g77. I followed the instructions I wrote above, and I also got the error messages you posted.

Then I tried to install with aptitude, and it made possible to install g77 whit downgrading gcc, and some other components.

Sorry for the inconvenience.

(I also updated my post above.)

hi horvathd ,

it would be very helpful if u cant tell us how and what changes u made to get g77 installed in intrepid.

thanx

horvathd
December 11th, 2008, 06:14 PM
Hi sayantandas,

did you tried the steps I written in the post #14 in this topic?

zjuosu
December 18th, 2008, 09:31 AM
I just added the following lines to the source.list after the lines of universe repositories for intrepid:


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

(Note: hu should be changed to your country code i.e. us, gb, de, etc.)

after that in the terminal:


sudo aptitude update
sudo aptitude install g77

That worked for me.

Thanks a lot. I got g77 installed following your instructions.
I got a new problem here.
How can I, as a Linux newbie, prevent g77 from being deleted by software updating service?

horvathd
December 19th, 2008, 10:25 PM
Hi zjuosu!

Sorry, but I can't give the optimal solution because I use my linux only in command line mode.

I would do the following:
1.) Disable somehow the automatic update
2.) Periodically use the following command in a terminal:


sudo aptitude update
sudo aptitude safe-upgrade

zjuosu
December 20th, 2008, 08:46 AM
Dear horvathd,
Thanks a lot.
It works.
I really appreciate your help.

santana
January 30th, 2009, 10:48 PM
Still no answer as to why it was removed. Every one reading this thread should make noise because as much as people don't want to admit g77 still necessary part of life, and not having it in the ibex repo complicates our lives.

mwparis
February 6th, 2009, 04:34 PM
I solved this problem with adding the hardy's univese repositories to my source.list. This way I could install g77 with aptitude, while gcc was downgraded to 3.4.6-6, but now it's working.

Could you explain, at the idiot-level for me, how exactly you "add hardy's universe repositories" to the source.list?

I tried uncommenting the line "deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse" (and then "sudo apt-get install g77") in /etc/apt/sources.list to no avail.

Muchas gracias.

mwparis
February 6th, 2009, 04:37 PM
Could you explain, at the idiot-level for me, how exactly you "add hardy's universe repositories" to the source.list?

I tried uncommenting the line "deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse" (and then "sudo apt-get install g77") in /etc/apt/sources.list to no avail.

Muchas gracias.

Sorry. I see the solution in one of the posts above.

Thanks. I'll try it out.

Newtie
February 22nd, 2009, 08:51 PM
Hello,

I've also tried to get g77 back using the aptitude manager, by adding the hardy repositories to my sources list, updating aptitude & then trying to install g77. I can't seem to actually install it, however; aptitude only returns that there is no candidate version for g77 found to be available for install, then presents a long list of packages it asks for permission to remove, which I don't feel comfortable doing.

Does this mean you can no longer get g77 from the hardy repositories also?

Is there any other way to get g77 on Ubuntu 8.10?

bmcage
March 9th, 2009, 12:35 PM
People, please see:
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77/News.html#News

They say:

GCC 3.4.x is the last edition of GCC to contain g77 - from GCC 4.0 onwards, use gfortran

So move to gfortran now.

atish
March 19th, 2009, 09:26 AM
I just added the following lines to the source.list after the lines of universe repositories for intrepid:


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

(Note: hu should be changed to your country code i.e. us, gb, de, etc.)

after that in the terminal:


sudo aptitude update
sudo aptitude install g77

That worked for me.

It works ! Thanks !

UWCIVIL
April 7th, 2009, 04:16 PM
Thanks so much for this very clear post. It worked for me. The only thing that a new user like me could have used was the the sources.list file can be found in /etc/apt/

Thanks again



I just added the following lines to the source.list after the lines of universe repositories for intrepid:


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

(Note: hu should be changed to your country code i.e. us, gb, de, etc.)

after that in the terminal:


sudo aptitude update
sudo aptitude install g77

That worked for me.

chamithmalinda
October 5th, 2009, 08:16 PM
Please go to this link......... n help me same problem here.........

http://ubuntuforums.org/showthread.php?p=8057446#post8057446

sreekarguddeti
October 9th, 2009, 12:28 PM
@horvath
thanks for the clear howto
i owe you one

sreekar
india