will libgfortran.so.1 be included in repositories?

Asked by Fede

Just that, I have a couple of things that depend on it and choke after I've updated to Jaunty. I had libgfortran.so.1 in 8.04 and since the update, it's gone from my system and the repositories.
Thanks and cheers,
Federico

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-4.1 Edit question
Assignee:
No assignee Edit question
Solved by:
Steven Danna
Solved:
Last query:
Last reply:
Revision history for this message
Robert Di Gioia (digioiar) said :
#1

It appears that the current version is libgfortran.so.3, or at least that is what I find on my system now.

If you need libgfortran.so.1, I believe that it is in the package ppu-gfortran. I do not know what the difference is between ppu-gfortran and regular gfortran.

Good luck

Revision history for this message
Fede (friketrike) said :
#2

ppu-gfortran is for a cell processing unit (another architecture, see http://en.wikipedia.org/wiki/Physics_processing_unit)

Description from synaptic:

'GNU Compiler Collection for the Cell Broadband Engine PPU (Fortran compiler).'

This is a binary used for linking and is therefore needed for each platform. I am interested in x86 and eventually x86_64 architectures. Previously (8.04), one could install libgfortran1 and libgfortran2 independently with apt and with different versions of gcc and gfortran. Now the binaries for libgfortran2, and libgfortran3 can be found this way but libgfortran1 is an empty package; the following pops up when performing install
$ sudo apt-get install libgfortran1

Package libgfortran1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libgfortran1 has no installation candidate.

I think it would be good to include it in the repositories, if anything, for backwards compatibility. It has happily co-existed with libgfortran2 on my system for quite a while without any problems and I imagine it could also coexist with libgfortran3.

Cheers,
Federico

Revision history for this message
Best Steven Danna (ssd7) said :
#3

You could try installing libgfortran1 from here:

https://launchpad.net/ubuntu/intrepid/i386/libgfortran1/4.1.2-21ubuntu1

However, to do that you will need an older version of gcc-4.1 than is
in the jaunty repositories. Specifically, you will need this version:

https://launchpad.net/ubuntu/hardy/i386/gcc-4.1-base/4.1.2-21ubuntu1

If you install gcc4.1 and then libgfortran1 from the above links you
should not have a problem upgrading, because to upgrade to the version
of 4.1 in jaunty would require libgfortran to be removed but you won't
be able to apt-get dist-upgrade unless you pin the version. To do
that run this command:

echo gcc-4.1-base hold | sudo dpkg --set-selections

Now gcc-4.1-base will be kept back even if you run apt-get dist-upgrade.

Revision history for this message
Fede (friketrike) said :
#4

Thanks Steven Danna, that solved my question.

Revision history for this message
Rohan Nigam (locaterohan) said :
#5

Hi,

I tried using Steven's link to install the package on AMD opteron 64 bit machine but I guess its not meant to be installed on amd64 machines. Could you tell me what package should I install on Ubuntu 9.04-64 bit to avoid getting the following: "error while loading shared libraries: libgfortran.so.1: cannot open shared object file: No such file or directory", while doing an mpirun.

Also, there is no ppu-gfortran package in the repository.

Thanks,
Rohan

Revision history for this message
Fede (friketrike) said :
#6

Hello Rohan,
Did you try using the links that Steve gave but with your architecture (amd64 instead of i386)? For example, getting gcc from https://launchpad.net/ubuntu/hardy/amd64/gcc-4.1-base/4.1.2-21ubuntu1 instead of https://launchpad.net/ubuntu/hardy/i386/gcc-4.1-base/4.1.2-21ubuntu1 . I think that should make it possible for you to install the packages. The ppu-gfortran package should not be necessary for this unless you want to compile for a cell processing unit.
I hope this helps.
Cheers,
Federico

Revision history for this message
Rohan Nigam (locaterohan) said :
#7

Thanks Federico. That helped. I wonder why we cannot have libgfortran1 in the repository seeing the amount of discussion that is still going on, on missing that package. (Google it and you will know).

Thanks all anyways.

- Rohan