In coordination with the ACCESS team, XSEDE has paused the processing of Startup, Education, and other allocation requests from August 17-31. This pause will ensure that no requests are lost while we are making infrastructure updates behind the scenes and handing things over to ACCESS. If you have questions, contact help@xsede.org. The ACCESS team will resume taking allocation requests on September 1 via https://access-ci.org/.

The discussion forums in the XSEDE User Portal are for users to share experiences, questions, and comments with other users and XSEDE staff. Visitors are welcome to browse and search, but you must login to contribute to the forums. While XSEDE staff monitor the lists, XSEDE does not guarantee that questions will be answered. Please note that the forums are not a replacement for formal support or bug reporting procedures through the XSEDE Help Desk. You must be logged in to post to the user forums.

« Back

Where is the udunits library installed?

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Where is the udunits library installed?
tools stampede r modules
Answer
11/6/13 4:53 PM
I am new to using modules. But, how can specify a path required to compile a program?

I think that I need to figure out where the module udunits/2.1.24 is installed but I am not finding any paths from module spider, module whatis

When I try to install the R package "udunits2":


$ module load module load gsl hdf5 parallel-netcdf/4.2.1.1 netcdf nco udunits/2.1.24 R_mkl/3.0.1
$ R
> install.packages("udunits2")


I get the following error:


checking for unistd.h... yes
checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking for ut_read_xml in -ludunits2... no
-----Error: libununits2.a not found-----
If the udunits2 library is installed in a non-standard location,
use --configure-args='--with-udunits2=/usr/local/lib' for example,
or --configure-args='--with-udunits2-include=/usr/include/udunits2'
replacing paths with appropriate values for your installation.
If udunits2 is not installed, please install it.
It is required for this package.
ERROR: configuration failed for package ‘udunits2’



so, the solution is to specify the path like install.packages("udunits2", configure.args='--with-udunits2-include=/path/to/udunits2/' )

But Is there a bettter way to find this than $ find / -name libununits2 2> /dev/null ?

A related project-specific bug is here: https://github.com/PecanProject/pecan/issues/71

RE: Where is the udunits library installed?
Answer
11/6/13 6:14 PM as a reply to David LeBauer.
David,

I typically just use the "module show" command. For example:

module show module udunits/2.1.24

This will list all of the environment variables that are changed by the module. This includes the PATH variable which will tell you where the software is installed.

Does that answer your question?

- Dirk

RE: Where is the udunits library installed?
Answer
11/6/13 7:08 PM as a reply to Dirk Joel L Colbry.
Thanks! this is what works:

install.packages("udunits2", configure.args='--with-udunits2=/opt/apps/intel13/udunits/2.1.24/ --with-udunits2-include=/opt/apps/intel13/udunits/2.1.24/include')