Project

General

Profile

CDO formula in Homebrew (OS X)

Added by Luiz Irber almost 12 years ago

Hello,

some days ago I requested inclusion in Homebrew (https://github.com/mxcl/homebrew) of a formula I made for CDO (https://github.com/mxcl/homebrew/blob/master/Library/Formula/cdo.rb). It was approved, and to install it after you have Homebrew on your computer it is as simple as

$ brew install cdo

or, if you want grib2 support,

$ brew install cdo --enable-grib2

I'm following release news to update the formula when needed.


Replies (14)

RE: CDO formula in Homebrew (OS X) - Added by Ralf Mueller almost 12 years ago

This is good news! There are some optional dependencies missing. Do you know, who I can ask for adding them?

RE: CDO formula in Homebrew (OS X) - Added by Ralf Mueller almost 12 years ago

Already contacted homebrew-developers via github and added your hint to the MacOS tips site.

RE: CDO formula in Homebrew (OS X) - Added by Luiz Irber almost 12 years ago

Hello,

made a new commit for version 1.5.5, and added OpenMP support as suggested by Ralf Mueller. Pull request is opened in https://github.com/mxcl/homebrew/pull/12281.

RE: CDO formula in Homebrew (OS X) - Added by Luiz Irber about 9 years ago

An update:

Currently the CDO formula is maintained in the homebrew-science repository:
https://github.com/Homebrew/homebrew-science/blob/master/cdo.rb

You can install it either by doing a
$ brew install homebrew/science/cdo

or, if you want other formulas from this repository,
$ brew tap homebrew/science
$ brew install cdo

I use the second version, since I need other packages available there.

More info:
https://github.com/Homebrew/homebrew-science#getting-started

RE: CDO formula in Homebrew (OS X) - Added by Jean Luc Nelias over 8 years ago

hello
i use yosemite on Mac and i try to install CDO.
I am able to install CDO with "Brew install CDO " but it is not working with the Grib2.
if i try to use "brew install cdo --with-grib2" to get the GRIB-API compiled i have a freeze in the terminal(in the computer more or less) after the command make
any idea?
best regards

RE: CDO formula in Homebrew (OS X) - Added by Ralf Mueller over 8 years ago

Without a log file, it's hard to comment on that

cheers
ralf

RE: CDO formula in Homebrew (OS X) - Added by Jean Luc Nelias over 8 years ago

Hi Ralf
Thank you for your reply
how i can generate a log file to get a comment?
Cheers
jean-Luc

RE: CDO formula in Homebrew (OS X) - Added by Ralf Mueller over 8 years ago

Although I do not use OSX, I guess, basic unix output redirect should work

bew install cdo --with-grib2 1>build.log 2>&1

there might be an internal log file written by homebrew, but that's just guessing. Is macPorts a no-go?

RE: CDO formula in Homebrew (OS X) - Added by Luiz Irber over 8 years ago

Hi,

you can run homebrew with the -v flag:

brew -v install cdo --with-grib2 1>build.log 2>&1

and attach the build.log file here.

I tried this command in my Yosemite install and CDO works, let's see what you build.log says.

RE: CDO formula in Homebrew (OS X) - Added by Jean Luc Nelias over 8 years ago

Hi Luiz
you are very kind to help me.
I am not an expert in anything:( . I am a sailor(racing) and i need CDO to work on the gribs. I have already in the past use cdo on my mac but i tried 1 month ago to install the new beta os el capitan. Just after i tried to use CDO but it was not working anymore.
I downgraded my computer back to Yosemite and since that time i try to install CDO with gribs 2 again with no success.
i try this morning your command brew -v install cdo --with-grib2 1>build.log 2>&1 but after 10 mn all the computer freeze. 2 hours later it still in the same situation most of the time freezing and nothing seem to move in the terminal windows. I have to use ctrl+Z to stop the process and be able to use the computer again.
i have attached a screen capture of Terminal before ctrl Z, a screen capture of Terminal when i close it and the build log i found.
cheers

RE: CDO formula in Homebrew (OS X) - Added by Sanita Dhaubanjar about 6 years ago

Hi,

When trying to reinstall CDO after fixing issues in my HDF5 installation I realized that the homebrew/science tap has now been deprecated (see: https://github.com/Homebrew/homebrew-science/issues/6616).

Where/how the cdo formula can be accessed with homebrew for next? Please do update this in https://code.mpimet.mpg.de/projects/cdo/wiki/MacOS_Platform

Thanks!

RE: CDO formula in Homebrew (OS X) - Added by Ralf Mueller about 6 years ago

not sure, but this one got a recent update. you might check it and let me know, if it works.

RE: CDO formula in Homebrew (OS X) - Added by Luiz Irber about 6 years ago

Hello,

I created the homebrew formula in 2012
https://github.com/Homebrew/homebrew-core/commit/cfd53114924eef6ceb4d1371e5e33a039f7ee6d6
when homebrew was macOS-only. Later they moved the CDO formula to homebrew-science
https://github.com/Homebrew/homebrew-science/commit/aa433c9309e8a5ce24a4f563b0938093b7d562a5
and now, with the deprecation of the homebrew-science
https://github.com/Homebrew/homebrew-science/issues/6616
there is a new org called brewsci that have the last version of the CDO formula
https://github.com/brewsci/homebrew-science/blob/master/Formula/cdo.rb

But brewsci is focused more on bioinformatics (for now),
so they are not actively maintaining any formulas in brewsci/homebrew-science
If there is interest from other areas, they are open to adding other taps
(as long as there are maintainers)
https://github.com/brewsci/homebrew-science/issues/10

TL;DR: for now you can still do
brew install brewsci/science/cdo
or
brew upgrade brewsci/science/cdo
but if new updates to the formula are needed (on new CDO versions) a new tap
must be maintained.

RE: CDO formula in Homebrew (OS X) - Added by Sanita Dhaubanjar about 6 years ago

Thanks Luiz and Ralf. The brewsci/science/cdo worked smoothly for me.

    (1-14/14)