optimizers / homebrew-fenics

Building FEniCS on OSX with Homebrew and Pip.
GNU General Public License v3.0
3 stars 4 forks source link

Renaming PETSc formula causes "No available formula for petsc" error #2

Closed goxberry closed 8 years ago

goxberry commented 10 years ago

Renaming the PETSc formula in https://github.com/optimizers/homebrew-fenics/commit/996b82cb6a16a6746be9e18aaa3214c77c0d6696 causes the error

bash-3.2$ brew install optimizers/fenics/petsc --env=std
Error: No available formula for petsc

Reverting the commit resolves the problem.

dpo commented 10 years ago

If you're only trying to install that version of PETSc, then the command would be brew install petsc-fenics. The point of renaming it is to phase it out, and use the one included with homebrew.

goxberry commented 10 years ago

Makes sense. I tried brew install optimizers/fenics/petsc-fenics at the time, and that didn't work for me. I'll close the issue; if I have any problems when I reinstall, I'll let you know.

goxberry commented 10 years ago

@dpo I still have to rename the formula. See:

Geoffs-MacBook-Pro:~ goxberry$ brew tap optimizers/fenics
Cloning into '/usr/local/Library/Taps/optimizers/homebrew-fenics'...
remote: Reusing existing pack: 225, done.
remote: Total 225 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (225/225), 52.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (126/126), done.
Checking connectivity... done.
Tapped 7 formula
Geoffs-MacBook-Pro:~ goxberry$ brew install petsc-fenics
Error: uninitialized constant PetscFenics
Please report this bug:
    https://github.com/Homebrew/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formulary.rb:15:in `const_get'
/usr/local/Library/Homebrew/formulary.rb:15:in `get_formula_class'
/usr/local/Library/Homebrew/formulary.rb:76:in `klass'
/usr/local/Library/Homebrew/formulary.rb:50:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:192:in `factory'
/usr/local/Library/Homebrew/formula.rb:397:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:41:in `install'
/usr/local/Library/brew.rb:105:in `send'
/usr/local/Library/brew.rb:105
dpo commented 8 years ago

Please brew update.