-
I am trying to brew install a small executable called "ets". The default install is version 0.1 of ets which is out of date. I have manually edited the ets formula ".rb" file with URL and SHA of the latest version of ets but it fails. I have tried a number of permutations but always get this:
This is the formula:
I'm totally lost. I can't figure out what thing or file is "not in a git directory". The source code was found and downloaded. So, what more is needed ? Does the developer have to upload something so Homebrew can find it ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 9 replies
-
What's the output of the following commands:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for that suggestion. I ran those three commands. The results were interesting. In particular, "brew config" reports "Rosetta 2: false". Rosetta 2 is installed on my Mac so, I don't know why Brew would says "false". "brew doctor" suggested running "brew link ets" which I did. But that didn't solve my problem. Anyway, here are the results:
I ran the brew install --debug ets a second time after creating the symlink. Slightly different response from that but ets is still not installed.
|
Beta Was this translation helpful? Give feedback.
-
No. I followed what I thought was the way to install Homebrew (from "https://brew.sh"):
I did that using an Admin account as only admins have sudo access. As you suggested, I've re-run the Homebrew installer. Of note, it said:
I then re-ran: brew install --debug ets with this result:
So, I deleted the "lock" file and tried yet again:
Which is the problem I was having before. I'm going to try the suggestion reported by brew doctor: git -C "/opt/homebrew" remote add origin https://github.com/Homebrew/brew |
Beta Was this translation helpful? Give feedback.
-
Ah hah ! Think I found the problem. The "remote add origin" command failed with this error:
I had to install Homebrew using an Admin account (because user accounts are not in the sudo list). But, that made the admin account owner of the opt/homebrew/ folder. So, I changed the owner to my user account (and applied that change to all contents of opt/Homebrew). Then I re-ran my original attempt to install ets:
Seems to me it would help to remind people to ensure correct ownership on the "opt/Homebrew" folder. gromgit: Many thanks for your help. Much appreciated. |
Beta Was this translation helpful? Give feedback.
-
I got into the same issue. Ran the command recommended by
|
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue Error: openjdk: Failed to download resource "openjdk" |
Beta Was this translation helpful? Give feedback.
-
brew update solved my problem |
Beta Was this translation helpful? Give feedback.
What's the output of the following commands: