[Nexus] nexus f90 library

Campbell, Stuart scampbell at bnl.gov
Sun Jul 23 03:38:17 BST 2017


Hi Satayu,

Looking further into it, there are some issues with the default compiler (clang) and adding fortran using gcc (well gfortran).  So what I would suggest is to just build the library yourself which seems to work ok.

# Install the dependencies
brew install gcc
brew install cmake
brew install hdf5
brew install mxml
brew install hdf4

Download and extract the source code Source code (tar.gz)<https://github.com/nexusformat/code/archive/v4.4.3.tar.gz>

mkdir build
cd build
cmake <location you unzipped the source code> -DCMAKE_CXX_COMPILER=g++-7 -DCMAKE_C_COMPILER=gcc-7 -DENABLE_FORTRAN90 … plus whatever other options you want (there are instructions at https://github.com/nexusformat/code/blob/master/README.rst)

Then just “make”, “make install”…

What is the application that you are trying to use ?

Cheers
Stu


On Jul 20, 2017, at 1:01 PM, Campbell, Stuart <scampbell at bnl.gov<mailto:scampbell at bnl.gov>> wrote:

Hi Satayu,
It looks like we can easily add it to the homebrew package.  I’ll get back to you once I’ve tested it actually works!
Cheers
Stu

—
Dr Stuart Campbell
Group Leader, Data Acquisition, Management and Analysis
NSLS-II, Photon Sciences
Brookhaven National Laboratory
PO Box 5000 Upton, New York, 11973-5000

Phone: +1 (631) 344-5578
Email: scampbell at bnl.gov<mailto:scampbell at bnl.gov>

On Jul 20, 2017, at 12:55 PM, Satayu Techathitinan <k.satayu89 at gmail.com<mailto:k.satayu89 at gmail.com>> wrote:

Hello,

I installed nexus from homebrew, 'brew install nexusformat', but the program which I wants to install also require 'nexus f90 library' so I think it does not include in nexusformat. Could you give me an some advice?

Thanks,
Satayu
_______________________________________________
NeXus mailing list
NeXus at nexusformat.org<mailto:NeXus at nexusformat.org>
http://lists.nexusformat.org/mailman/listinfo/nexus

_______________________________________________
NeXus mailing list
NeXus at nexusformat.org<mailto:NeXus at nexusformat.org>
http://lists.nexusformat.org/mailman/listinfo/nexus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nexusformat.org/pipermail/nexus/attachments/20170723/038628b4/attachment.html>


More information about the NeXus mailing list