brew install specific version of a package fails - homebrew

For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
After some investigations, I concluded that brew has new style of .rb files and old versions may not be compatible. To fix it, I run brew style --fix icu4c.rb which seemed to fix the style issues. However, now, I got the following error:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
I saw a number of places that this might be due to curl or xcode command line tools. I updated both of them but could not proceed further. Any help would be greatly appreciated.

Related

Can't get luarocks to install lua-cjson; Failed compiling module cjson.dll

I am trying to install lua-cjson using luarocks. I have installed mingw32 as well as set a environment variable in system. I keep getting error: I've tried re-directing my lua folder to user public (as another post suggested), however that didn't help, only to get the same error.
I've even verified that MinGW is installed by using the --version command in CMD prompt, which works.
Error: Build error: Failed compiling module cjson.dll
I don't know what else to do as there are absolutely no posts on stackoverflow covering this issue.
lua_objlen was removed. If you want this module to be working try
luarocks install lua-cjson "CFLAGS=-DLUA_COMPAT_5_3"
Output
Reference

Unable to install agda via homebrew in mac os x M1 chip

I was following the instruction here and it said to do:
brew install agda
agda-mode setup
I believe it should be working since I was able to compile the hello-world.agda and run the binary executable with ./hello-world.
But the output says there are error:
(meta_learning) brandomiranda~ ❯ brew install agda
Warning: No available formula with the name "agda".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
In fact, I don't know what changed since my last compilation of hello world but indeed I cannot compile it (and thus run it) anymore:
(meta_learning) brandomiranda~/coq4brando/cs598 ❯ agda --compile hello-world.agda
/Users/brandomiranda/.agda/libraries:1: Failed to read library file /usr/local/lib/agda/standard-library.agda-lib.
Reason: /usr/local/lib/agda/standard-library.agda-lib: openFile: does not exist (No such file or directory)
Why? Does someone know how to fix this?

xcode-select: error: no developer tools were found, and no install could be requested (perhaps no UI is present)

When I tried to install Xcode command line tools with
xcode-select --install
I got the error
xcode-select: error: no developer tools were found, and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'
I found a similar question here, but this does not work for me.
Any ideas? Thanks first.

Installing Infer Using Brew Failed (No Bottle)

I am trying to install Infer, a static analysis tool developed by Facebook. I tried following the tutorial for Mac at this link: https://fbinfer.com/docs/getting-started/. I used the "brew install infer" command, however, I keep getting the following error:
Error: infer: no bottle available!
You can try to install from source with:
brew install --build-from-source infer
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
I don't know what I'm doing wrong since I just followed the instruction. Please help! Thank you
Please take a look at my modified brew formula to install it on macOS 12 + Apple Silicon.
It works using commit 5fd2f95 (HEAD) and not v1.1.0.

'pkg-config' is not recognized as an internal or external command when installing package

So I'm getting this error when attempting to install OpenCV on my computer.
'pkg-config' is not recognized as an internal or external command
I've been searching around for this pkg-config package and I can't seem to find a proper download source anywhere.
The only one I did find was pkg-config-lite. I tired to see if that one would work but no luck.
The original pkg-config release is available here:
http://www.freedesktop.org/wiki/Software/pkg-config

Resources