libg2c libg2c0 support on Lucid Lynx

Asked by harijay

A few programs in scientific computing need the libg2c /libg2c0 g77-fortran library. It seems that this library has a dependency on gcc4.3 base.

Is there some way this library libg2c will be nade available for 10.04. If not how can a person with some compiling experience build it for ubuntu-Lucid

Thanks
Hari

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Emanuele Catalano
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
harijay (harijay) said :
#2

This is still an unresolved issue . For legacy fortran applications
that need libg2c , it is still a problem tio get them running on
Lucid Linux.

On Fri, May 28, 2010 at 3:26 AM, Launchpad Janitor
<email address hidden> wrote:
> Your question #110744 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/110744
>
>    Status: Open => Expired
>
> Launchpad Janitor expired the question:
> This question was expired because it remained in the 'Open' state
> without activity for the last 15 days.
>
> --
> If you're still having this problem, you can reopen your question either
> by replying to this email or by going to the following page and
> entering more information about your problem:
> https://answers.launchpad.net/ubuntu/+question/110744
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Best Emanuele Catalano (catalano) said :
#3

Hi, i was following this conversation.
I solved my problem thanks to this site: http://www.fluvial.ch/download.html
Hope it can be useful for you.
Bye.

Revision history for this message
harijay (harijay) said :
#4

Thanks a tonne Emanuele Catalano.
1) I downloaded the libg2c.tgz from http://www.fluvial.ch/download.html.
2) Then ran sudo tar -zxvf libg2c.tgz
3) Then added /usr/lib to my $LD_LIBRARY_PATH

The application that needed libg2c then ran flawlessly.
So the fluvial.ch library did fix this dependency problem .
I really like what Ubuntu is doing and Launcpad is great!

Revision history for this message
Mart'N (martn) said :
#5

I didn't find the libg2c.tgz on fluvial.ch. But I found an equivalent at:
http://prdownloads.sourceforge.net/hpc/g77-intel-bin.tar.gz?download
you'll find libg2c.a in the archives at usr/local/lib/

I then copied it in /usr/lib.

Revision history for this message
Mart'N (martn) said :
#6

I realized my previous post is erroneous.

I did succeed in getting libg2c.so, but what I did was finally much more twisted (I realised it afterward trying to redo it on my university computer...)

So nothing to do with libg2c.a or g77-intel-bin.tar.gz

                         _____________________

<!> I wouldn't suggest to follows these steps unless you're very tired to look for libg2c. <!>
*DIRTY* hack

(I'm using Ubuntu 10.04 i386)

1) Dowload the g77_3.4.6-1_i386.deb from http://packages.ubuntu.com/dapper/i386/g77/download
2) install it with dpkg
3) copy /usr/lib/libg2c.so* to ~/lib
4) lauch the synaptic update manager (there will be an error message - the g77 deb package is in conflict)
5) let synaptic resolve the conflict

then you got a copy of libg2c.so in your ~/lib ...

6) add /home/<your id>/lib to $LD_LIBRARY_PATH

et voilà

still very dirty procedure... sorry if my previous post mislead you!

:-)