[MBDyn-users] installation problem

Jinmo Lee jinmol at andrew.cmu.edu
Thu Aug 13 00:15:16 CEST 2009


Dear p.

I typed 'locate libg2c', and this command shows the location of libg2c
like below;

[root at mach mbdyn-1.3.9]# locate libg2c
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libg2c.a
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libg2c.so
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/libg2c.a
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/libg2c.so
/usr/lib64/libg2c.so.0
/usr/lib64/libg2c.so.0.0.0

So it seems that libg2c exist in my computer.
Can you give me more instruction in this situation?

In addition, my computer seems to use icc platform,
and I saw notes from the website says that

"
libraries -lF90 -lCEPCF90 must be explicitly linked as replacements of
auto-detected -lf2c/-lg2c, e.g. define

	LIBS="-lF90 -lCEPCF90"
"
I wonder how to make -lF90 -lCEPCF90 linked as the replacements.
(the version of icc in my computer is 11.0 though)

Sincerely,

On Wed, August 5, 2009 5:39 pm, masarati at aero.polimi.it wrote:
>> Thank you again for your help,
>>
>
> You're supposed to reply to mbdyn-users at mbdyn.org,
> not mbdyn-users-request at mbdyn.org
>
>> I typed ./configure --with-g2c=no --with-libf2c=g2c
>> But, the terminal gives an error:
>> 'configure: error: Could not locate f2c library'
>>
>>
>> And when I type 'make' then,
>> It gives message like
>> 'make: *** No targets specified and no makefile found. Stop.'
>>
>
> Running "make" when configure fails is moot.  Apparently, your system is
> lacking a system library, libg2c, which is supposed to be present when gcc
>  is installed.  I see from your config.log that you're using gcc 4.1.2 on
> a x86_64 RedHat system, which (apart from 64bit) is identical to mine, so
> I
> suspect your compiler installation is incomplete.  On my system that
> library is provided by the package "compat-libf2c"; can you install it?
>
> Another option would be to use gfortran instead of g77; for this purpose,
>  you need to define F77=gfortran before running configure.
>
> Cheers, p.
>
>
>
>




More information about the MBDyn-users mailing list