ibrewster / homebrew-avo Goto Github PK
View Code? Open in Web Editor NEWAVO related homebrew formulas
AVO related homebrew formulas
According to the AVO-G2S README, there's a bug in NRLMSISE-00 that needs to manually fixed: https://github.com/usgs/volcano-avog2s/blob/master/README.md#nrlmsise-00
Might be clunky to do in the formula, and I'm not sure how crucial it is to address (we can ask Hans), but if it's easy to programmatically fix that might be good. Or we could fork the repo, fix bug, and make formula from there?
Command:
brew install avog2s
Error:
==> Installing ibrewster/avo/avog2s dependency: ibrewster/avo/volcano-ash3d-metreader
==> autoconf
==> ./configure --prefix=/usr/local/Cellar/volcano-ash3d-metreader/0.4_4
==> make
Last 15 lines from /Users/ldtoney/Library/Logs/Homebrew/volcano-ash3d-metreader/03.make:
2022-10-07 18:11:27 +0000
make
/usr/local/opt/gcc/bin/gfortran -x f95-cpp-input -DUSENETCDF -DUSEGRIB -DUSEGRIB -c MetReader.F90
/usr/local/opt/gcc/bin/gfortran -O3 -w -fno-math-errno -funsafe-math-optimizations -fno-trapping-math -fno-signaling-nans -fcx-limited-range -fno-rounding-math -fdefault-real-8 -L/usr/lib64 -L/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/lib -L/usr/local/lib -I/usr/include -I/usr/lib64/gfortran/modules -I/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/include -I/usr/local/include -I/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/include -L/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/lib -leccodes -leccodes_f90 -L/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/lib -I/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/include -lhourssince -lprojection -c MetReader_GRIB_index.f90
/usr/local/opt/gcc/bin/gfortran -O3 -w -fno-math-errno -funsafe-math-optimizations -fno-trapping-math -fno-signaling-nans -fcx-limited-range -fno-rounding-math -fdefault-real-8 -L/usr/lib64 -L/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/lib -L/usr/local/lib -I/usr/include -I/usr/lib64/gfortran/modules -I/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/include -I/usr/local/include -I/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/include -L/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/lib -lnetcdf -lnetcdff -c tools/makegfsncml.f90
/usr/local/opt/gcc/bin/gfortran -O3 -w -fno-math-errno -funsafe-math-optimizations -fno-trapping-math -fno-signaling-nans -fcx-limited-range -fno-rounding-math -fdefault-real-8 makegfsncml.o -L/usr/lib64 -L/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/lib -L/usr/local/lib -I/usr/include -I/usr/lib64/gfortran/modules -I/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/include -I/usr/local/include -I/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/include -L/usr/local/Cellar/volcano-ash3d-metreader/0.4_4/lib -lnetcdf -lnetcdff -o tools/makegfsncml
ld: library not found for -lnetcdff
collect2: error: ld returned 1 exit status
make: *** [makegfsncml] Error 1
make: *** Waiting for unfinished jobs....
Missing dependency?
running
brew install avog2s
gives the following error:
Error: An exception occurred within a child process:
FormulaUnavailableError: No available formula with the name "/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/shtools.rb".
(dev_avog2s) awitsil@ARD-FAUCI:~/Desktop/ncpaprop_sandbox$ brew install avog2s
Not sure if it is relevant but I looked at the SHTOOLS GitHub page (https://github.com/SHTOOLS/homebrew-shtools) where it states, "The homebrew tap is no longer supported."
I am not a brew
expert but I hope there is a way to keep using brew
to install avog2s because it is A LOT easier than the alternative! Thanks for any help!
This is perhaps related to #5. After trying to install volcano-ash3d-hourssince from the install instructions
brew install usgs/volcano-ash3d-hourssince
, the following error is returned:
`Error: No available formula with the name "usgs/volcano-ash3d-hourssince"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.`
ran brew install avog2s
and got the following output (attached).
avog2s_error_log.txt
With these warnings and errors:
Warning: Building gcc from source as the bottle needs:
Warning: Building ncurses from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building gettext from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building libidn2 from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building ruby from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building util-linux from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building openldap from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building krb5 from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building eccodes from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Warning: Building open-mpi from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ajwitsil/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ajwitsil/.linuxbrew)
Error: avog2s: SHA256 mismatch
Expected: 6ed2130eed7b741df3b19052b29b3324601403581c7b9afb015e0370e299a2bd
Actual: 5b906e79a66bce5fbf8ac1e9d55fcc3366a86cb42762f910331a06794596fbf2
File: /home/ajwitsil/.cache/Homebrew/downloads/258a8fae83c0b8a362e27579c115a9251c4bdd9738846e7c930f2a8bc73ae2ac--SHTOOLS-4.7.1.tar.gz
To retry an incomplete download, remove the file above.
I tried removing the file: /home/ajwitsil/.cache/Homebrew/downloads/258a8fae83c0b8a362e27579c115a9251c4bdd9738846e7c930f2a8bc73ae2ac--SHTOOLS-4.7.1.tar.gz
as was suggested and then reinstalling, but the install failed again.
Any ideas on how I could install avog2s?
Also, I should note I am trying to install on a remote server, on which I don't have sudo privileges.
Upon installing Ruby according to the Homebrew install instructions, I received the following error:
liamtoney/homebrew-volcano-ash3d-hourssince does not exist! Run brew untap liamtoney/homebrew-volcano-ash3d-hourssince
to remove it.
When attempting to install hourssince
, a SHA256 mismatch error occurs.
==> Installing hourssince from ibrewster/avo ==> Downloading https://github.com/usgs/volcano-ash3d-hourssince/archive/master.tar.gz ==> Downloading from https://codeload.github.com/usgs/volcano-ash3d-hourssince/tar.gz/master ######################################################################## 100.0% Error: SHA256 mismatch Expected: 56e42abc1431239b1b772f8e6eee6d43386b114d2e00400548e9ff9a58dfcaf3 Actual: 2a4b1fb6e872ac49e45ccef7758186c8b78c64e71e58cc8dd23dea610ef43793
I am trying to install avog2s on my linux machine with:
brew install avog2s
but it fails when installing the hourssince dependency. See below log for details:
2020-10-20 20:02:27 -0600
make
all
FC=/usr/local/bin/gfortran
/usr/local/bin/gfortran -O3 -w -fno-math-errno -funsafe-math-optimizations -fno-trapping-math -fno-signaling-nans -fcx-limited-range -fno-rounding-math -fdefault-real-8 -L/usr/lib64 -I/usr/include -I/usr/lib64/gfortran/modules -c HoursSince.f90
make: /usr/local/bin/gfortran: Command not found
make: *** [makefile:101: HoursSince.o] Error 127
HOMEBREW_VERSION: 2.5.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: abf214c01ff1edb57acf7e23d5eb24a777335e11
Last commit: 9 days ago
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
Core tap HEAD: 651446ef2e09e8fe9b3fcd527d981d893d5584d7
Core tap last commit: 4 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_MAKE_JOBS: 1
Homebrew Ruby: 2.6.3 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: single-core 64-bit icelake
Clang: 11.0 build (parse error)
Git: 2.25.1 => /usr/bin/git
Curl: 7.68.0 => /usr/bin/curl
Kernel: Linux 5.4.0-52-generic x86_64 GNU/Linux
OS: Linux Mint 20 (ulyana)
Host glibc: 2.31
/usr/bin/gcc: 9.3.0
/usr/bin/ruby: N/A
glibc: N/A
gcc: 5.5.0_7
xorg: N/A
HOMEBREW_CC: gcc-5
HOMEBREW_CXX: g++-5
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /home/linuxbrew/.linuxbrew
HOMEBREW_GIT: git
ACLOCAL_PATH: /home/linuxbrew/.linuxbrew/share/aclocal
PATH: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/home/linuxbrew/.linuxbrew/opt/gcc/bin:/home/linuxbrew/.linuxbrew/opt/binutils/bin:/usr/bin:/bin:/usr/sbin:/sbin
From what I can tell, this error is triggered when running the makefile within the HoursSince repo (https://github.com/usgs/volcano-ash3d-hourssince). Within this file, gfortran is hard referenced as:
FC=/usr/local/bin/gfortran
However on my machine, I've installed gfortran via brew and its location is given as:
/home/linuxbrew/.linuxbrew/bin/gfortran
If I download the repo and manually change the reference to gfortran as:
FC=/home/linuxbrew/.linuxbrew/bin/gfortran
and run make, I get this error:
make: Nothing to be done for 'lib'.
Finally, just for giggles, I tried running make while leaving
FC=/usr/local/bin/gfortran
which presented a different error:
/usr/bin/gfortran -O0 -g3 -Wall -fbounds-check -pedantic -fimplicit-none -Wunderflow -Wuninitialized -ffpe-trap=invalid,zero,overflow -fdefault-real-8 -L/usr/lib64 -I/usr/include -I/usr/lib64/gfortran/modules -c HoursSince.f90
f951: Warning: Nonexistent include directory ‘/usr/lib64/gfortran/modules’ [-Wmissing-include-dirs]
This error was interesting because I couldn't find any directory on my machine that had a path similar to 'gfortran/modules'
Is there anyway to change the gfortran hard reference from /usr/local/bin/gfortran to something more dynamic depending on where gfortran is installed on the local machine? Also, same question for directory /usr/lib64/gfortran/modules.
Any help on the matter would be much appreciated! Thanks!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.