Giter VIP home page Giter VIP logo

Comments (8)

leavesntwigs avatar leavesntwigs commented on August 13, 2024 1

from lrose-core.

leavesntwigs avatar leavesntwigs commented on August 13, 2024

Substituting libaec for szip in the lrose-core.rb leads to build errors. We probably need to swap some library names as described here
https://github.com/erget/libaec/blob/cmake-install-instructions/README.SZIP

from lrose-core.

leavesntwigs avatar leavesntwigs commented on August 13, 2024

//Path to a library.
HDF5_C_LIBRARY_sz:FILEPATH=/usr/local/opt/szip/lib/libsz.dylib

//Path to a library.
HDF5_C_LIBRARY_z:FILEPATH=/usr/lib/libz.dylib

from lrose-core.

leavesntwigs avatar leavesntwigs commented on August 13, 2024

Tried building from source without libszip and it builds fine, except titan had some build errors. Building on older mac, with python2 installed.
Tried modifying the lrose-core.rb formula to remove the dependence on szip, worked alright, but error with python command in build scripts.
The python error is related to Apple removing the system python in macOS 12.3, https://stackoverflow.com/questions/60298514/how-to-reinstall-python2-from-homebrew.
Tried to make an alias python="python3", but this didn't seem to work when I was testing in CircleCI. I then tried to make a symlink for python to python3 and this finally seemed to work.
So, two issues here: szip no longer installed by brew, and MacOS not installing python2 any longer, but the lrose-core build scripts use python, which defaults to python2.
The fix to install lrose-core is to build from source, without libszip, and making a symlink for python to python3.

from lrose-core.

leavesntwigs avatar leavesntwigs commented on August 13, 2024

building from source causes this error when building the apps:
Makefile:6: /build/make_include/lrose_make_macros: No such file or directory
Makefile:34: /build/make_include/lrose_make_recursive_dir_targets: No such file or directory
make: *** No rule to make target `/build/make_include/lrose_make_recursive_dir_targets'. Stop.

from lrose-core.

leavesntwigs avatar leavesntwigs commented on August 13, 2024

It looks like we may have a working brew formula file with a few fixes in the python3 branch of lrose-core. Download and install the lrose-core.rb file from here:
https://github.com/NCAR/lrose-release-test/releases/tag/20220514

from lrose-core.

syedhamidali avatar syedhamidali commented on August 13, 2024

Hi @leavesntwigs,
I want to say that I installed lrose-core by using the above link. However, it doesn't recognize lrose command even after rebooting the Mac. I want to ask if I have to add any path variable?
Screenshot 2022-07-11 at 3 00 47 PM
Screenshot 2022-07-11 at 3 01 48 PM

from lrose-core.

mike-dixon avatar mike-dixon commented on August 13, 2024

This has been finally resolved in the latest cmake-based builds for the mac, using homebrew.
The szip library is no longer a dependency on the mac.

from lrose-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.