LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to find library in Linux? (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-find-library-in-linux-681026/)

malibec2005 11-04-2008 07:05 AM

How to find library in Linux?
 
Hi all,
i know it may be an easy question but it is hard for me. when i ask the guy who maintain the Linux system about Netcadf files he replies.


"I didn't compile the library, I installed the rpm & devel rpm for netcdf. The library came from the rpm from CentOS 5 or rpmforge not sure which [if Centos didnt have them they were from rpmforge]"

my question is
what is that mean???
if he installed this library. How can i find it (what is the correct command to find it)

Thanks

GlennsPref 11-04-2008 07:32 AM

Hi, try locate or find using a cli shell.

locate Netcadf

will list all Netcadf files it can find.

the locate tool is sometimes mlocate, slocate and there may be others.

regards Glenn

knudfl 11-04-2008 10:49 AM

CentOS 5.2 :
'find /usr/lib -name *netcdf*'
*Reply :
Quote:

/usr/lib/libnetcdf_c++.so.4.0.0
/usr/lib/libnetcdf_c++.so.4
/usr/lib/libnetcdf.so
/usr/lib/libnetcdf.so.4
/usr/lib/libnetcdff.so.4
/usr/lib/libnetcdff.so.4.0.0
/usr/lib/libnetcdff.so
/usr/lib/libnetcdf_c++.so
/usr/lib/libnetcdf.so.4.0.0
Installed packages are "netcdf-3.6.2-4.el5.kb.i386.rpm"
and "netcdf-devel-3.6.2-4.el5.kb.i386.rpm" from
http://rpm.pbone.net/index.php3

If you think, something is missing in your install,
it might be the 'netcdf-devel'

Regards

malibec2005 11-04-2008 10:50 AM

Quote:

Originally Posted by GlennsPref (Post 3331216)
Hi, try locate or find using a cli shell.

locate Netcadf

will list all Netcadf files it can find.

the locate tool is sometimes mlocate, slocate and there may be others.

regards Glenn

thanks a lot. when i configure the netcadf it is ok. however when i type the comand make the folloing error appears:

config.status: creating fortran/nfconfig1.inc
config.status: fortran/nfconfig1.inc is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[enxmabm@caunton netcdf-3.6.3]$ make
make all-recursive
make[1]: Entering directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3'
Making all in f90
make[2]: Entering directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3/f90'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3/f90'
Making all in fortran
make[2]: Entering directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3/fortran'
make all-am
make[3]: Entering directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3/fortran'
depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o fort-attio.lo fort-attio.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -g -O2 -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
In file included from fort-attio.c:7:
ncfortran.h:26:42: error: NF_INT_IS_C_... not defined: No such file or directory
fort-attio.c: In function âNF_INT_cfFâ:
fort-attio.c:13: error: expected declaration specifiers before âNF_INTEGERâ
fort-attio.c:20: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âNF_INTEGERâ
fort-attio.c:121: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âNF_INTEGERâ
fort-attio.c:133: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âNF_INTEGERâ
fort-attio.c:141: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âNF_INTEGERâ
fort-attio.c:148: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âNF_INTEGERâ
fort-attio.c:148: error: expected â{â at end of input
make[3]: *** [fort-attio.lo] Error 1
make[3]: Leaving directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3/fortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3/fortran'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/enxmabm/netcadf-3.6.3-backup/netcdf-3.6.3'
make: *** [all] Error 2
[enxmabm@caunton netcdf-3.6.3]$ make


Do you have any suggestions?

thanks

i92guboj 11-04-2008 10:55 AM

Quote:

Originally Posted by malibec2005 (Post 3331192)
Hi all,
i know it may be an easy question but it is hard for me. when i ask the guy who maintain the Linux system about Netcadf files he replies.


"I didn't compile the library, I installed the rpm & devel rpm for netcdf. The library came from the rpm from CentOS 5 or rpmforge not sure which [if Centos didnt have them they were from rpmforge]"

my question is
what is that mean???
if he installed this library. How can i find it (what is the correct command to find it)

Thanks

In which sense is it failing for you? We need to know that to be able to guess what the problem might be.

If a given program can't run because it doesn't find the libs, then obviously the libs are not installed on the correct place, or not installed at all, or they are not valid for your architecture.

If you can't compile anything that needs netcdf, then the problem is that either you haven't the devel package installed, for you are not pointing your compile to the correct path to find the development files.

i92guboj 11-04-2008 11:03 AM

Well, now I have the answer to the question on my previous post.

Check this, it might help:

http://www.unidata.ucar.edu/software...ml#NF_INT_IS_C

When configuring check also if

Code:

checking if Fortran "integer" is C "int"... no
That might be the problem. Setting correctly LD_LIBRARY_PATH to add the place where your fortran stuff resides seems to fix the problem. Unfortunately I haven't enabled the fortran compiler on my gcc and can't test it. Check this thread as well:

http://gcc.gnu.org/ml/fortran/2007-07/msg00619.html

malibec2005 11-04-2008 11:05 AM

Quote:

Originally Posted by knudfl (Post 3331416)
CentOS 5.2 :
'find /usr/lib -name *netcdf*'
*Reply :

Installed packages are "netcdf-3.6.2-4.el5.kb.i386.rpm"
and "netcdf-devel-3.6.2-4.el5.kb.i386.rpm" from
http://rpm.pbone.net/index.php3

If you think, something is missing in your install,
it might be the 'netcdf-devel'

Regards

Hi,

the administrator did install the packages the to the system. i want to know where? so i can start configure it.

thanks

i92guboj 11-04-2008 12:17 PM

The command posted by knudfl will show you.

Code:

find /usr/lib -name '*netcdf*'
If it's not there, try:

Code:

find /usr/lib* -name '*netcdf*'
or

Code:

find /lib* -name '*netcdf*'
If it's not in the output, then it's probably not installed.

GlennsPref 11-04-2008 07:35 PM

Hi, you might also want to search /usr/local/bin, usr/local/lib* (the * maybe lib64(?))

To use locate you may need to "updatedb" as root.

Cheers Glenn

knudfl 11-05-2008 03:37 AM

Well, we actually forgot the standard rpm query command :
'rpm -q' and 'rpm -ql netcdf' etc.
http://lowfatlinux.com/linux-rpm-query.html

('rpm -ql netcdf' will tell where the files are)

Regards

malibec2005 11-05-2008 04:27 AM

Quote:

Originally Posted by knudfl (Post 3332223)
Well, we actually forgot the standard rpm query command :
'rpm -q' and 'rpm -ql netcdf' etc.
http://lowfatlinux.com/linux-rpm-query.html

('rpm -ql netcdf' will tell where the files are)

Regards

Thanks,

it is a very useful help. i found the package and all the related data. have a look below.
So please could u tell me how to do my next steps?

sorry for my questions i am still beginner in the field



[enxmabm@caunton ~]$ rpm -q netcdf
netcdf-3.6.3-1.el5.rf
[enxmabm@caunton ~]$ rpm -qi netcdf
Name : netcdf Relocations: (not relocatable)
Version : 3.6.3 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release : 1.el5.rf Build Date: Mon 30 Jun 2008 08:54:52 PM BST
Install Date: Wed 03 Sep 2008 11:10:52 AM BST Build Host: lisse.leuven.wieers.com
Group : Development/Libraries Source RPM: netcdf-3.6.3-1.el5.rf.src.rpm
Size : 3248222 License: BSD like
Signature : DSA/SHA1, Mon 30 Jun 2008 09:03:15 PM BST, Key ID a20e52146b8d79e6
Packager : Dries Verachtert <dries@ulyssis.org>
URL : http://www.unidata.ucar.edu/software/netcdf/
Summary : Libraries for the Unidata network Common Data Form (NetCDF)
Description :
The Unidata network Common Data Form (netCDF) is an interface for
scientific data access and a freely-distributed software library that
provides an implementation of the interface. The netCDF library also
defines a machine-independent format for representing scientific data.
Together, the interface, library, and format support the creation,
access, and sharing of scientific data.
[enxmabm@caunton ~]$ rpm -ql netcdf
/usr/bin/ncdump
/usr/bin/ncgen
/usr/lib64/libnetcdf.so.4
/usr/lib64/libnetcdf.so.4.0.0
/usr/lib64/libnetcdf_c++.so.4
/usr/lib64/libnetcdf_c++.so.4.0.0
/usr/lib64/libnetcdff.so.4
/usr/lib64/libnetcdff.so.4.0.0
/usr/share/doc/netcdf-3.6.3
/usr/share/doc/netcdf-3.6.3/INSTALL
/usr/share/doc/netcdf-3.6.3/README
/usr/share/info/netcdf-c.info.gz
/usr/share/info/netcdf-cxx.info.gz
/usr/share/info/netcdf-f77.info.gz
/usr/share/info/netcdf-f90.info.gz
/usr/share/info/netcdf-install.info.gz
/usr/share/info/netcdf-tutorial.info.gz
/usr/share/info/netcdf.info.gz
/usr/share/man/man1/ncdump.1.gz
/usr/share/man/man1/ncgen.1.gz
/usr/share/man/man3/netcdf.3.gz
/usr/share/man/man3/netcdf_f77.3.gz
/usr/share/man/man3/netcdf_f90.3.gz
[enxmabm@caunton ~]$

GlennsPref 11-05-2008 05:10 AM

I'm confused, you said the admin installed the packages,

why do you need "make" if it is already installed?

Should you not configure your program to use the library rather than running ./configure on the installed package?

regards Glenn

malibec2005 11-05-2008 06:20 AM

Quote:

Originally Posted by GlennsPref (Post 3332277)
I'm confused, you said the admin installed the packages,

why do you need "make" if it is already installed?

Should you not configure your program to use the library rather than running ./configure on the installed package?

regards Glenn

I will try to clarify the problem.

I am working with software called FVCOM. I am doing well with it. When I works to have Netcdf output. It is clear in the FVCOM manual that I have to uncomment flag 6 and to put the correct path. Which I believe I did as follow:

#--------------------------------------------------------------------------
# NETCDF OUTPUT DUMP OUTPUT INTO NETCDF FILES (yes/no)
# REQUIRES SYSTEM DEPENDENT NETCDF LIBRARIES
# COMPILED WITH SAME F90 COMPILER
# SET PATH TO LIBRARIES WITH IOLIBS
# SET PATH TO INCLUDE FILES (netcdf.mod) WITH IOINCS
# DEFAULT: NO NETCDF OUTPUT
# UNCOMMENT TO INCLUDE NETCDF OUTPUT CAPABILITY
#--------------------------------------------------------------------------
FLAG_6 = -DNETCDF_IO
IOLIBS = -L/usr/lib64 -lnetcdf
IOINCS = -I/usr/include



Then I saved the new FVCOM makefile. When I gave the command make to the new makefile I had the following error (Sorry I copy long part of the output which is long).
Hence I start to think about did I have the netcdf file installed or not? Did I have them installed correctly or not? That is the case.

Please ask me for any further clarification. I appreciate your effort with me.



[enxmabm@caunton ~]$ cd ..
[enxmabm@caunton home]$ cd ..
[enxmabm@caunton /]$ cd scratch/enxmabm/FVCOM2.6.1/FVCOM_source/
[enxmabm@caunton FVCOM_source]$ emacs makefile
[enxmabm@caunton FVCOM_source]$ make
gfortran -O3 -o fvcom mod_prec.o mod_types.o mod_main.o mod_utils.o mod_par.o mod_inp.o mod_wd.o mod_assim.o mod_probe.o mod_clock.o mod_obcs.o mod_ncdio.o mod_spherical.o mod_wqm.o mod_gotm.o mod_equitide.o mod_atmotide.o mod_northpole.o mod_balance_2d.o mod_ncdave.o mod_tsobc.o mod_meanflow.o mod_obcs2.o mod_obcs3.o mod_dye.o mod_newinp.o mod_tridiag.o mod_scal.o mod_sed.o particle.o linklist.o mod_lag.o utilities.o adjust2d3d.o advave_edge_gcn.o advection_edge_gcn.o adv_q.o adv_s.o adv_t.o adv_uv_edge_gcn.o alloc_vars.o archive.o arcrst.o atg.o fct_s.o fct_t.o baropg.o bcmap.o bcond_bfw.o bcond_gcn.o bcond_ts.o bcs_force.o brough.o brough_ud.o bracket.o cell_area.o closefiles.o conv_over.o data_run.o dens.o dens2.o depth_grad.o domdec.o extel_edge.o extuv_edge.o genmap.o getdim.o initial_qql.o hot_start_data.o initial_ts.o initial_uvel.o iofiles.o out_avge.o out_binary.o out_sms_one.o pdomdec.o phy_baropg.o report.o sectinf.o set_bndry.o set_sigma.o shape_coef_gcn.o sinter.o startup.o svan.o theta.o us_fvcom.o tge.o vdif_q.o vdif_ts.o vdif_uv.o vertvl_edge.o water_depth.o wreal.o ghostuv.o dens3.o init_sed.o advave_edge_gcy.o advection_edge_gcy.o adv_uv_edge_gcy.o bcond_gcy.o shape_coef_gcy.o depth_check.o vdif_ts_gom.o adjust_ts.o shutdown_check.o extelpf_edge.o fct_q2.o fct_q2l.o viscofh.o print_vals.o rho_mean.o viz.o -L/usr/lib64 -lnetcdf
mod_ncdio.o: In function `__mod_ncdio__handle_ncerr':
mod_ncdio.f90:.text+0x125): undefined reference to `__netcdf__nf90_strerror'
mod_ncdio.o: In function `__mod_ncdio__putvar':
mod_ncdio.f90:.text+0x11e4): undefined reference to `__netcdf__nf90_put_var_2d_fourbytereal'
mod_ncdio.o: In function `__mod_ncdio__write_netcdf_setup':
mod_ncdio.f90:.text+0x2122): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_ncdio.f90:.text+0x2222): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_ncdio.f90:.text+0x231a): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_ncdio.f90:.text+0x2819): undefined reference to `__netcdf__nf90_create'
mod_ncdio.f90:.text+0x2889): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x28ec): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x294f): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x29b2): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x2a17): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.o:mod_ncdio.f90:.text+0x2a7d): more undefined references to `__netcdf__nf90_put_att_text' follow
mod_ncdio.o: In function `__mod_ncdio__write_netcdf_setup':
mod_ncdio.f90:.text+0x2ac3): undefined reference to `__netcdf__nf90_def_dim'
mod_ncdio.f90:.text+0x2ae9): undefined reference to `__netcdf__nf90_def_dim'
mod_ncdio.f90:.text+0x2b0f): undefined reference to `__netcdf__nf90_def_dim'
mod_ncdio.f90:.text+0x2b35): undefined reference to `__netcdf__nf90_def_dim'
mod_ncdio.f90:.text+0x2b5b): undefined reference to `__netcdf__nf90_def_dim'
mod_ncdio.o:mod_ncdio.f90:.text+0x2b81): more undefined references to `__netcdf__nf90_def_dim' follow
mod_ncdio.o: In function `__mod_ncdio__write_netcdf_setup':
mod_ncdio.f90:.text+0x2d34): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_ncdio.f90:.text+0x2d60): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x2dd6): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_ncdio.f90:.text+0x2e02): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x2e78): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_ncdio.f90:.text+0x2ea4): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x2f12): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_ncdio.f90:.text+0x2f3e): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x2f6a): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x2fd8): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_ncdio.f90:.text+0x3004): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x3030): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdio.f90:.text+0x309e): undefined reference to `__netcdf__nf90_def_var_manydims'
`__netcdf__nf90_put_att_text'
mod_ncdave.f90:.text+0x5dbd): undefined reference to `__netcdf__nf90_put_att_text'
mod_ncdave.f90:.text+0x5de9): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.o: In function `__mod_lag__dump_particles_ncd':
mod_lag.f90:.text+0x378c): undefined reference to `__netcdf__nf90_open'
mod_lag.f90:.text+0x37cf): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x3837): undefined reference to `__netcdf__nf90_put_var_fourbytereal'
mod_lag.f90:.text+0x387d): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x38ee): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_lag.f90:.text+0x390c): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x397d): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_lag.f90:.text+0x399b): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x3a0c): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_lag.f90:.text+0x3a2a): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x3a9b): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_lag.f90:.text+0x3ad8): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x3b6b): undefined reference to `__netcdf__nf90_put_var_1d_fourbytereal'
mod_lag.f90:.text+0x3b7c): undefined reference to `__netcdf__nf90_close'
mod_lag.f90:.text+0x3dc2): undefined reference to `__netcdf__nf90_strerror'
mod_lag.f90:.text+0x3ef8): undefined reference to `__netcdf__nf90_strerror'
mod_lag.o: In function `__mod_lag__output_lag':
mod_lag.f90:.text+0x41fa): undefined reference to `__netcdf__nf90_create'
mod_lag.f90:.text+0x427e): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x42de): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x438b): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x43d7): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x4435): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x44f4): undefined reference to `__netcdf__nf90_put_att_one_fourbyteint'
mod_lag.f90:.text+0x451a): undefined reference to `__netcdf__nf90_def_dim'
mod_lag.f90:.text+0x4540): undefined reference to `__netcdf__nf90_def_dim'
mod_lag.f90:.text+0x45ec): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_lag.f90:.text+0x4618): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x4644): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x46b2): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_lag.f90:.text+0x46de): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x470a): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x4778): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_lag.f90:.text+0x47a4): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x47d0): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x483e): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_lag.f90:.text+0x486a): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x4896): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x4904): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_lag.f90:.text+0x4930): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x495c): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x49e4): undefined reference to `__netcdf__nf90_def_var_manydims'
mod_lag.f90:.text+0x4a42): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x4aa0): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x4ad2): undefined reference to `__netcdf__nf90_enddef'
mod_lag.f90:.text+0x4ae3): undefined reference to `__netcdf__nf90_close'
mod_lag.f90:.text+0x4bbe): undefined reference to `__netcdf__nf90_strerror'
mod_lag.o: In function `__mod_lag__set_lag':
mod_lag.f90:.text+0x55cd): undefined reference to `__netcdf__nf90_open'
mod_lag.f90:.text+0x563c): undefined reference to `__netcdf__nf90_get_att_text'
mod_lag.f90:.text+0x56ab): undefined reference to `__netcdf__nf90_get_att_one_fourbyteint'
mod_lag.f90:.text+0x56d1): undefined reference to `__netcdf__nf90_get_att_one_fourbyteint'
mod_lag.f90:.text+0x56f7): undefined reference to `__netcdf__nf90_get_att_one_fourbytereal'
mod_lag.f90:.text+0x5be5): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x5c05): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x5c25): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x5c45): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.f90:.text+0x5c65): undefined reference to `__netcdf__nf90_inq_varid'
mod_lag.o:mod_lag.f90:.text+0x5c85): more undefined references to `__netcdf__nf90_inq_varid' follow
mod_lag.o: In function `__mod_lag__set_lag':
mod_lag.f90:.text+0x5d60): undefined reference to `__netcdf__nf90_get_var_fourbytereal'
mod_lag.f90:.text+0x5dc2): undefined reference to `__netcdf__nf90_get_var_fourbytereal'
mod_lag.f90:.text+0x5e24): undefined reference to `__netcdf__nf90_get_var_fourbytereal'
mod_lag.f90:.text+0x5e86): undefined reference to `__netcdf__nf90_get_var_fourbyteint'
mod_lag.f90:.text+0x5ee8): undefined reference to `__netcdf__nf90_get_var_fourbyteint'
mod_lag.f90:.text+0x5f4a): undefined reference to `__netcdf__nf90_get_var_fourbytereal'
mod_lag.f90:.text+0x5fac): undefined reference to `__netcdf__nf90_get_var_fourbytereal'
mod_lag.f90:.text+0x600e): undefined reference to `__netcdf__nf90_get_var_fourbytereal'
mod_lag.f90:.text+0x6085): undefined reference to `__netcdf__nf90_close'
mod_lag.f90:.text+0x66f5): undefined reference to `__netcdf__nf90_strerror'
mod_lag.o: In function `__mod_lag__dump_lag_restart':
mod_lag.f90:.text+0x84fb): undefined reference to `__netcdf__nf90_create'
mod_lag.f90:.text+0x8563): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x85a9): undefined reference to `__netcdf__nf90_put_att_one_fourbyteint'
mod_lag.f90:.text+0x85cd): undefined reference to `__netcdf__nf90_put_att_one_fourbytereal'
mod_lag.f90:.text+0x85f1): undefined reference to `__netcdf__nf90_put_att_one_fourbyteint'
mod_lag.f90:.text+0x8613): undefined reference to `__netcdf__nf90_def_dim'
mod_lag.f90:.text+0x864d): undefined reference to `__netcdf__nf90_def_var_onedim'
mod_lag.f90:.text+0x8682): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x86af): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x86d9): undefined reference to `__netcdf__nf90_def_var_onedim'
mod_lag.f90:.text+0x8706): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.f90:.text+0x8733): undefined reference to `__netcdf__nf90_put_att_text'
mod_lag.o: In function `__mod_lag__dump_lag_restart':
mod_lag.f90:.text+0x8dae): undefined reference to `__netcdf__nf90_put_var_1d_fourbyteint'
mod_lag.f90:.text+0x8e25): undefined reference to `__netcdf__nf90_put_var_1d_fourbyteint'
mod_lag.f90:.text+0x8e34): undefined reference to `__netcdf__nf90_close'
mod_lag.f90:.text+0x90f5): undefined reference to `__netcdf__nf90_strerror'
collect2: ld returned 1 exit status
make: *** [fvcom] Error 1
[enxmabm@caunton FVCOM_source]$


GlennsPref 11-05-2008 07:57 PM

Thankyou for that clarification,

I haven't used the packages you mention, so I'll back off now.

Cheers, and all the best

Glenn

i92guboj 11-05-2008 09:49 PM

I think that the problem is still the one I described above. Since you did not comment anything about my other post, I assume you still didn't try.

Your compiler can't find the relevant symbols, and that might be just because you haven't properly configured the correct library paths for the fortran libs. The headers are found, and hence, it compiles find. But the dynamic libs can't be found, and that's why it fails miserably at linking stage. That's what the manuals and mailings that I link on the other post say, and that's what my experience suggests me as well. I can't test as I said because I am not too fond about recompiling gcc to enable fortran, which I intentionally disabled long ago.

So, if you can't find a solution, scroll back and re-read my previous posts, and the links I posted.


All times are GMT -5. The time now is 07:15 PM.