pyroms problem install_pyroms.sh

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
farolap

pyroms problem install_pyroms.sh

#1 Unread post by farolap »

Hi everyone,

I am not too sure if this is where I can post problems, but... anyways

I am pretty much new to everything regarding ROMS or Pyroms. I am trying, unsuccessfully, to install pyroms in my machine (OS: Ubuntu 14.04). My biggest problem is when i run:

$sudo sh install_pyroms.sh

it retrieves me a bunch of stuff:

checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking nn.h usability... yes
checking nn.h presence... yes
checking for nn.h... yes
checking csa.h usability... yes
checking csa.h presence... yes
checking for csa.h... yes
checking for main in -lm... yes
checking for main in -lnn... yes
checking for main in -lcsa... yes
checking for ANSI C header files... (cached) yes
checking for strcasecmp... yes
checking for strerror... yes
checking for isnan... yes
configure: creating ./config.status
config.status: creating makefile
config.status: creating gridutilsconfig.h
config.status: gridutilsconfig.h is unchanged
installing libgu.a
installing libgu.so
installing gridmap.h
installing gucommon.h
installing gridnodes.h
installing getbound
installing getnodes
installing insertgrid
installing setbathy
installing subgrid
installing xy2ij
installing gridbathy
Using prefix /usr/local
Using libdir /usr/local/lib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ar... ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for main in -lm... yes
checking for tgamma... yes
checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes
checking for clog... yes
checking for cexp... yes
checking for keyword _Complex... yes
checking gridnodes.h usability... yes
checking gridnodes.h presence... yes
checking for gridnodes.h... yes
checking for gridnodes_readnextpoint in -lgu... yes
configure: creating ./config.status
config.status: creating makefile
config.status: creating config.h
config.status: config.h is unchanged
make: Nothing to be done for `lib'.
make: Nothing to be done for `shlib'.
installing gridgen
installing gridgen.h
installing libgridgen.a
installing libgridgen.so
cp: cannot stat ‘scrip.so’: No such file or directory (HERE IS WHERE IT BEGINS)
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘found.’: No such file or directory
cp: cannot stat ‘Remapping’: No such file or directory
cp: cannot stat ‘function’: No such file or directory
cp: cannot stat ‘will’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘be’: No such file or directory
cp: cannot stat ‘available’: No such file or directory
installing scrip...
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o timers.o remap_write.o scrip.o -I/home/dinamo/pkgs/gfortran/netcdf4/include -o ./scrip
netcdf.o: In function `__netcdf_mod_MOD_netcdf_error_handler':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./netcdf.f:67: undefined reference to `nf_strerror_'
grids.o: In function `__grids_MOD_grid_init': (SPECIALLY HERE)
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:213: undefined reference to `nf_open_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:216: undefined reference to `nf_open_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:219: undefined reference to `nf_inq_dimid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:221: undefined reference to `nf_inq_dimlen_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:224: undefined reference to `nf_inq_dimid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:226: undefined reference to `nf_inq_dimlen_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:229: undefined reference to `nf_inq_dimid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:231: undefined reference to `nf_inq_dimlen_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:234: undefined reference to `nf_inq_dimid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:236: undefined reference to `nf_inq_dimlen_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:239: undefined reference to `nf_inq_dimid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:241: undefined reference to `nf_inq_dimlen_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:244: undefined reference to `nf_inq_dimid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:246: undefined reference to `nf_inq_dimlen_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:253: undefined reference to `nf_get_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:257: undefined reference to `nf_get_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:285: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:287: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:290: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:293: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:296: undefined reference to `nf_inq_varid_'
grids.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:299: more undefined references to `nf_inq_varid_' follow
grids.o: In function `__grids_MOD_grid_init':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:302: undefined reference to `nf_get_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:305: undefined reference to `nf_get_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:309: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:313: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:317: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:321: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:326: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:329: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:351: undefined reference to `nf_get_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:373: undefined reference to `nf_get_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:393: undefined reference to `nf_close_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:404: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:406: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:409: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:412: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:415: undefined reference to `nf_inq_varid_'
grids.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:418: more undefined references to `nf_inq_varid_' follow
grids.o: In function `__grids_MOD_grid_init':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:421: undefined reference to `nf_get_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:424: undefined reference to `nf_get_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:428: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:432: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:436: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:440: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:445: undefined reference to `nf_inq_varid_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:448: undefined reference to `nf_get_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:470: undefined reference to `nf_get_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:492: undefined reference to `nf_get_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./grids.f:512: undefined reference to `nf_close_'
remap_write.o: In function `__remap_write_MOD_write_remap_csm':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:882: undefined reference to `nf_create_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:889: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:896: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:903: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:910: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:918: undefined reference to `nf_put_att_text_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:934: more undefined references to `nf_put_att_text_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_csm':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:959: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:962: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:977: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:980: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:996: undefined reference to `nf_def_dim_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1000: more undefined references to `nf_def_dim_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_csm':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1075: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1079: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1094: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1099: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1108: undefined reference to `nf_def_var_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1113: more undefined references to `nf_def_var_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_csm':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1162: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1166: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1170: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1174: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1178: undefined reference to `nf_put_att_text_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1182: more undefined references to `nf_put_att_text_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_csm':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1198: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1202: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1206: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1210: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1219: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1223: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1228: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1232: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1241: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1245: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1250: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1254: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1263: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1268: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1273: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1282: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1290: undefined reference to `nf_enddef_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1367: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1370: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1374: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1378: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1395: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1398: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1401: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1404: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1419: undefined reference to `nf_put_var_double_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1422: more undefined references to `nf_put_var_double_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_csm':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1492: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1496: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1510: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1513: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1519: undefined reference to `nf_close_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1465: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1469: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1483: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1486: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:1501: undefined reference to `nf_put_var_double_'
remap_write.o: In function `__remap_write_MOD_write_remap_scrip':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:266: undefined reference to `nf_create_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:273: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:280: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:287: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:294: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:302: undefined reference to `nf_put_att_text_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:318: more undefined references to `nf_put_att_text_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_scrip':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:344: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:348: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:364: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:368: undefined reference to `nf_def_dim_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:384: undefined reference to `nf_def_dim_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:388: more undefined references to `nf_def_dim_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_scrip':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:414: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:418: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:433: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:438: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:447: undefined reference to `nf_def_var_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:452: more undefined references to `nf_def_var_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_scrip':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:498: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:502: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:506: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:510: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:514: undefined reference to `nf_put_att_text_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:518: more undefined references to `nf_put_att_text_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_scrip':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:534: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:538: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:542: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:546: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:555: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:559: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:564: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:568: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:577: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:581: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:586: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:590: undefined reference to `nf_put_att_text_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:599: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:604: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:612: undefined reference to `nf_def_var_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:619: undefined reference to `nf_enddef_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:695: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:698: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:702: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:706: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:723: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:726: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:729: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:732: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:747: undefined reference to `nf_put_var_double_'
remap_write.o:/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:750: more undefined references to `nf_put_var_double_' follow
remap_write.o: In function `__remap_write_MOD_write_remap_scrip':
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:805: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:809: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:813: undefined reference to `nf_put_var_double_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:817: undefined reference to `nf_close_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:793: undefined reference to `nf_put_var_int_'
/home/dinamo/Documents/pyroms-master/pyroms/external/scrip/source/./remap_write.f:797: undefined reference to `nf_put_var_int_'
collect2: error: ld returned 1 exit status
make: *** [scrip] Error 1
f2py --fcompiler=gnu95 --f90flags='-g -fdefault-real-8 -ffixed-form -O2 -fPIC' \
-L/home/dinamo/pkgs/gfortran/netcdf4/lib -lnetcdf -lnetcdff -lhdf5 -lhdf5_hl -I/home/dinamo/pkgs/gfortran/netcdf4/include -m scrip \
-c kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o remap_read.o remap.o timers.o remap_write.o pyscrip.f90
Traceback (most recent call last):
File "/usr/local/bin/f2py", line 3, in <module>
import f2py2e
File "/usr/local/lib/python2.7/dist-packages/f2py2e/__init__.py", line 10, in <module>
import f2py2e
File "/usr/local/lib/python2.7/dist-packages/f2py2e/f2py2e.py", line 26, in <module>
import crackfortran
File "/usr/local/lib/python2.7/dist-packages/f2py2e/crackfortran.py", line 1586
as=b['args']
^
SyntaxError: invalid syntax
make: *** [scrip.so] Error 1
/bin/cp ./scrip /usr/local/bin
/bin/cp: cannot stat ‘./scrip’: No such file or directory
make: *** [install] Error 1
cp: cannot stat ‘scrip.so’: No such file or directory
cp: cannot stat ‘scrip.so’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘found.’: No such file or directory
cp: cannot stat ‘Remapping’: No such file or directory
cp: cannot stat ‘function’: No such file or directory
cp: cannot stat ‘will’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘be’: No such file or directory
cp: cannot stat ‘available’: No such file or directory

Done installing pyroms...
pyroms make use of the so-called gridid file to store
grid information like the path to the grid file, the
number of vertical level, the vertical transformation
use, ...
Please set the environment variable PYROMS_GRIDID_FILE
to point to your gridid file. A gridid file template
is available here:
/python/pyroms/pyroms/gridid.txt
Press any key to continue or Ctrl+C to quit this installinstall_pyroms.sh: 56: read: arg count

It has been weeks that I am trying to install pyroms, but only now i am giving up and asking for help. Thank you :)

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: pyroms problem install_pyroms.sh

#2 Unread post by kate »

I have an Ubuntu system at home and I could try installing pyroms onto it this weekend. Meanwhile, do you need scrip? What do you hope to do with pyroms?

farolap

Re: pyroms problem install_pyroms.sh

#3 Unread post by farolap »

Hello kate,

and thank you for your reply. I want to be able to create grid and bathymetry to apply in ROMS using an open-source language software. It has been some years that I am using MATLAB, but nowadays I want to be able to learn and manipulate new languages and be more flexible. Unfortunately I still am an undergraduate and I am basically learning through books and guides. Its challenging.

I do have downloaded SCRIP from "http://oceans11.lanl.gov/trac/SCRIP". But I did not find it useful so far since my pyroms already had SCRIP in it. I do not understand why these 'undefined references' seems to appear. I have seen that these are related to netcdf, however, I have netcdf4 installed and the path for netcdf on scrips makefile seems to be in order. Thank you

By the way, I was able to correct the f2py now. So beyond the undefined references problem:

Code: Select all

collect2: error: ld returned 1 exit status
make: *** [scrip] Error 1
f2py --fcompiler=gnu95 --f90flags='-g -fdefault-real-8 -ffixed-form -O2 -fPIC' \
	-L/home/dinamo/pkgs/gfortran/netcdf4/lib -lnetcdf -lnetcdff -lhdf5 -lhdf5_hl -I/home/dinamo/pkgs/gfortran/netcdf4/include -m scrip \
	-c kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o remap_read.o remap.o timers.o remap_write.o  pyscrip.f90
Reading .f2py_f2cmap ...
	Mapping "real(kind=dbl_kind)" to "double"
	Mapping "integer(kind=int_kind)" to "int"
	Mapping "logical(kind=log_kind)" to "char"
Succesfully applied user defined changes from .f2py_f2cmap
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "scrip" sources
f2py options: []
f2py:> /tmp/tmpompV3f/src.linux-x86_64-2.7/scripmodule.c
creating /tmp/tmpompV3f/src.linux-x86_64-2.7
Reading fortran codes...
	Reading file 'pyscrip.f90' (format:fix)
Post-processing...
	Block: scrip
			Block: compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module kinds_mod info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module grids info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module remap_distance_weight info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module remap_bicubic info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module remap_bilinear info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module remap_write info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module remap_vars info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module remap_conservative info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module timers info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module iounits info used by compute_remap_weights
In: :scrip:pyscrip.f90:compute_remap_weights
get_useparameters: no module constants info used by compute_remap_weights
			Block: test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module kinds_mod info used by test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module grids info used by test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module remap_read info used by test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module netcdf_mod info used by test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module remap_mod info used by test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module remap_vars info used by test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module iounits info used by test_remap_weights
In: :scrip:pyscrip.f90:test_remap_weights
get_useparameters: no module constants info used by test_remap_weights
			Block: remap
In: :scrip:pyscrip.f90:remap
get_useparameters: no module kinds_mod info used by remap
In: :scrip:pyscrip.f90:remap
get_useparameters: no module constants info used by remap
Post-processing (stage 2)...
Building modules...
	Building module "scrip"...
		Constructing wrapper function "compute_remap_weights"...
		  compute_remap_weights(namelist_file)
		Constructing wrapper function "test_remap_weights"...
		  test_remap_weights(namelist_file)
		Constructing wrapper function "remap"...
		  remap(dst_array,map_wts,dst_add,src_add,src_array,[num_links,src_grid_size,dst_grid_size,src_grad1,src_grad2,src_grad3])
	Wrote C/API module "scrip" to file "/tmp/tmpompV3f/src.linux-x86_64-2.7/scripmodule.c"
  adding '/tmp/tmpompV3f/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding '/tmp/tmpompV3f/src.linux-x86_64-2.7' to include_dirs.
copying /usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpompV3f/src.linux-x86_64-2.7
copying /usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpompV3f/src.linux-x86_64-2.7
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler using build_ext
building 'scrip' extension
compiling C sources
C compiler: x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/include -fPIC

creating /tmp/tmpompV3f/tmp
creating /tmp/tmpompV3f/tmp/tmpompV3f
creating /tmp/tmpompV3f/tmp/tmpompV3f/src.linux-x86_64-2.7
compile options: '-I/home/dinamo/pkgs/gfortran/netcdf4/include -I/tmp/tmpompV3f/src.linux-x86_64-2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c'
x86_64-linux-gnu-gcc: /tmp/tmpompV3f/src.linux-x86_64-2.7/scripmodule.c
In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
                 from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /tmp/tmpompV3f/src.linux-x86_64-2.7/fortranobject.h:13,
                 from /tmp/tmpompV3f/src.linux-x86_64-2.7/scripmodule.c:18:
/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
/tmp/tmpompV3f/src.linux-x86_64-2.7/scripmodule.c:144:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
 static int f2py_size(PyArrayObject* var, ...)
            ^
x86_64-linux-gnu-gcc: /tmp/tmpompV3f/src.linux-x86_64-2.7/fortranobject.c
In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
                 from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /tmp/tmpompV3f/src.linux-x86_64-2.7/fortranobject.h:13,
                 from /tmp/tmpompV3f/src.linux-x86_64-2.7/fortranobject.c:2:
/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
compiling Fortran sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-underscore -g -fdefault-real-8 -ffixed-form -O2 -fPIC -fPIC -O3 -funroll-loops
compile options: '-I/home/dinamo/pkgs/gfortran/netcdf4/include -I/tmp/tmpompV3f/src.linux-x86_64-2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c'
gfortran:fix: pyscrip.f90
pyscrip.f90:1191.20:

      grid2_count = zero                                                
                    1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1)
/usr/bin/gfortran -Wall -L$DESTDIR/lib /tmp/tmpompV3f/tmp/tmpompV3f/src.linux-x86_64-2.7/scripmodule.o /tmp/tmpompV3f/tmp/tmpompV3f/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpompV3f/pyscrip.o kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o remap_read.o remap.o timers.o remap_write.o -L/home/dinamo/pkgs/gfortran/netcdf4/lib -lnetcdf -lnetcdff -lhdf5 -lhdf5_hl -lgfortran -o ./scrip.so
/usr/bin/ld: cannot find -lhdf5
/usr/bin/ld: cannot find -lhdf5_hl
collect2: error: ld returned 1 exit status
/usr/bin/ld: cannot find -lhdf5
/usr/bin/ld: cannot find -lhdf5_hl
collect2: error: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -L$DESTDIR/lib /tmp/tmpompV3f/tmp/tmpompV3f/src.linux-x86_64-2.7/scripmodule.o /tmp/tmpompV3f/tmp/tmpompV3f/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpompV3f/pyscrip.o kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o remap_read.o remap.o timers.o remap_write.o -L/home/dinamo/pkgs/gfortran/netcdf4/lib -lnetcdf -lnetcdff -lhdf5 -lhdf5_hl -lgfortran -o ./scrip.so" failed with exit status 1
make: *** [scrip.so] Error 1
/bin/cp ./scrip /usr/local/bin
/bin/cp: cannot stat ‘./scrip’: No such file or directory
make: *** [install] Error 1
cp: cannot stat ‘scrip.so’: No such file or directory
cp: cannot stat ‘scrip.so’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘found.’: No such file or directory
cp: cannot stat ‘Remapping’: No such file or directory
cp: cannot stat ‘function’: No such file or directory
cp: cannot stat ‘will’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘be’: No such file or directory
cp: cannot stat ‘available’: No such file or directory

Done installing pyroms...
pyroms make use of the so-called gridid file to store
grid information like the path to the grid file, the
number of vertical level, the vertical transformation
use, ...
Please set the environment variable PYROMS_GRIDID_FILE
to point to your gridid file. A gridid file template
is available here:
/python/pyroms/pyroms/gridid.txt
Press any key to continue or Ctrl+C to quit this installinstall_pyroms.sh: 56: read: arg count
Interesting thing is, when one problem is solved 500 new ones arise.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: pyroms problem install_pyroms.sh

#4 Unread post by kate »

Odd, I'm getting a completely different set of problems. As for yours, did you install HDF5? Did you build netcdf to be based on it?

Cutting and pasting the install script lines into a window running sh/bash, mine is barfing on "python setup.py build --fcompiler=gnu95;" with things like:

Code: Select all

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/_isomodule.o: In function `int_from_pyobj':
/home/kate/pyroms/pyroms/build/src.linux-x86_64-2.7/_isomodule.c:174: undefined reference to `PyNumber_Int'
/home/kate/pyroms/pyroms/build/src.linux-x86_64-2.7/_isomodule.c:180: undefined reference to `PyComplex_Type'
/home/kate/pyroms/pyroms/build/src.linux-x86_64-2.7/_isomodule.c:180: undefined reference to `PyType_IsSubtype'
Maybe I can get my husband to look at this.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: pyroms problem install_pyroms.sh

#5 Unread post by kate »

OK, update on this insanity:

For me, the first part of the install script needs:

Code: Select all

export LDFLAGS='-L$DESTDIR/lib -shared'
Then nn through gridgen want:

Code: Select all

export LDFLAGS='-L$DESTDIR/lib'
Finally, scrip wants:

Code: Select all

export LDFLAGS='-L$DESTDIR/lib -shared'
Also, for me, netcdf installed such that "nc-config --flibs" gives nothing. The Makefile for scrip needs:

Code: Select all

NC_CONFIG = nf-config

farolap

Re: pyroms problem install_pyroms.sh

#6 Unread post by farolap »

Thank you very much, Kate! You were right! I was having problem with my HDF5. However, this is a little embarrassaing, now I reinstalled it, and got basically the same problems as yours. So, I changed the variable NC_CONFIG (as nc-config --flibs also did not give me anything) in the makefile scrip/source directory to nf-config*.

well, anyway, if I change the LDFLAGS in install_pyroms.sh file to '-L$DESTDIR/lib -shared', I get the following error in the line python setup.py build --fcompiler=gnu95, I think:

Code: Select all

checking whether the C compiler works... configure: error: cannot run C compiled programs.
If i do not change it at all, and leave as it is, it displays the following:

Code: Select all

...
make: Nothing to be done for `lib'.
make: Nothing to be done for `shlib'.
  installing gridgen
  installing gridgen.h
  installing libgridgen.a
  installing libgridgen.so
cp: cannot stat ‘scrip.so’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘found.’: No such file or directory
cp: cannot stat ‘Remapping’: No such file or directory
cp: cannot stat ‘function’: No such file or directory
cp: cannot stat ‘will’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘be’: No such file or directory
cp: cannot stat ‘available’: No such file or directory
installing scrip...
make: Nothing to be done for `all'.
make: Nothing to be done for `f2py'.
/bin/cp ./scrip /usr/local/bin
/bin/cp ./scrip_test /usr/local/bin
/bin/cp ./scrip.so /usr/local/lib
cp: warning: source file ‘scrip.so’ specified more than once
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘found.’: No such file or directory
cp: cannot stat ‘Remapping’: No such file or directory
cp: cannot stat ‘function’: No such file or directory
cp: cannot stat ‘will’: No such file or directory
cp: cannot stat ‘not’: No such file or directory
cp: cannot stat ‘be’: No such file or directory
cp: cannot stat ‘available’: No such file or directory
If i look at the makefile in nn, and gridgen, the LDFLAGS shows exactly as you said (LDFLAGS = -L$DESTDIR/lib), therefore, i am not too sure if should make any changes there.

Oh gosh! Should I actually download and compile SCRIP?

*My nf-config --flibs says the following: -L/home/dinamo/pkgs/gfortran/netcdf4/lib -lnetcdff -L/home/dinamo/pkgs/gfortran/netcdf4/lib/ -lnetcdf -lnetcdf (which is the path where I installed netcdf4)

Thank you again for all your help! Hopefully through all this suffering I will get the hang of it! :)

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: pyroms problem install_pyroms.sh

#7 Unread post by kate »

I was cutting and pasting lines from the install script into another window running a sh/bash session. That way I could turn that -shared thing on and off as needed.

User avatar
ngarg
Posts: 19
Joined: Fri Jul 12, 2013 5:46 pm
Location: NTU

Re: pyroms problem install_pyroms.sh

#8 Unread post by ngarg »

I was able to compile pyroms, but i changed few things in the install_pyroms.sh file. I edited the install_pyroms.sh file by adding extra

export LDFLAGS='-L$DESTDIR/lib -shared'

export LDFLAGS='-L$DESTDIR/lib'

export LDFLAGS='-L$DESTDIR/lib -shared'

terms wherever necessary. Just to check if fcompiler is gfortran or gnu95. Also, if you got the DESTDIR pointing to correct location. I am not so sure, but if your fcompiler is gfortran, then you can change gnu95 to gfortran.

good luck

Post Reply