how to install gcc-arm-none-eabi at Mojave MacOS - macos

i'm now using MacOS Mojave.
i want to use gcc-arm-none-eabi for ergodox.
but i cannot install it by brew.
vikke#kosanji:~/vcswork/qmk_firmware
[master]$ brew search gcc-arm-none-eabi
No formula or cask found for "gcc-arm-none-eabi".
Closed pull requests:
gcc-arm-none-eabi 8-2019-q3-update (new formula) (https://github.com/Homebrew/homebrew-core/pull/45780)
gcc-arm-embedded 9-2019-q4-major (new formula) (https://github.com/Homebrew/homebrew-core/pull/46584)
WIP: arm-none-eabi-gcc 8-2018-q4-major (new formula) (https://github.com/Homebrew/homebrew-core/pull/39869)
libelf: remove libelf and dependents (https://github.com/Homebrew/homebrew-core/pull/39871)
libelf 0.8.12 (downgrade to solve linkrot) (https://github.com/Homebrew/homebrew-core/pull/39910)
Revert "Update gcc-arm-embedded to 6-2017-q1" (https://github.com/Homebrew/homebrew-cask/pull/30433)
Update gcc-arm-embedded to 6_2-2016q4,20161216 (https://github.com/Homebrew/homebrew-cask/pull/28143)
arm-none-eabi-gcc 20150921 (new formula) (https://github.com/Homebrew/legacy-homebrew/pull/45236)
Adding recipe for Pebble SDK 2.0-BETA5 (https://github.com/Homebrew/legacy-homebrew/pull/24834)
vikke#kosanji:~/vcswork/qmk_firmware
[master]$ brew install gcc-arm-none-eabi
Error: No available formula with the name "gcc-arm-none-eabi"
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
Error: No similarly named formulae found.
==> Searching taps on GitHub...
==> Searching for similarly named formulae...
==> Searching taps...
Error: No formulae found in taps.
How to do it?

i resolved.
download https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads and install.

If you got here looking for a way to install arm-none-eabi-gcc on macos, use the ARMmbed brew formulae:
brew install armmbed/formulae/arm-none-eabi-gcc

Homebrew does not work all the time. If you are on an older mac it is also likely that your operating system version is no longer supported by Homebrew.
So for people who are not having success with the other answers, Arm provide a proper signed macOS packaged version of the arm-none-eabi-gcc tool chain here
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

Related

Homebrew error while trying to install pyenv

I recently installed Homebrew via terminal, but I get some errors when I try to use it to install other programs.
This is an example situation when I try to install pyenv.
brew install pyenv
This is the output of above command:
Running `brew update --preinstall`...
Warning: No available formula with the name "ca-certificates".
==> 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.
Error:
homebrew-cask is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
Error: pyenv: undefined method `cellar' for #<BottleSpecification:0x00007fd7720b4360>
I had the exact same problem.
What solved my issue on macOS Monterey 12.1 was to investigate the problem with brew doctor and then do as the output recommended.
The output of brew doctor informed me that the homebrew/homebrew-core hasn't been tapped properly and recommended the following commands:
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Then I just continued with Pyenv's installation process and everything worked.

Home Brew install package getting could not resolve HEAD to a revision

I just installed the latest homebrew with version Homebrew 2.7.3. I have git pre-install on my Mac OS, and I was trying to install brew install git-crypt & brew install git-gui and getting an error on fatal: Could not resolve HEAD to a revision. It looks like it failed on any packages.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "git-crypt".
==> 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.
I tried uninstall then re-install homebrew using their command line : https://github.com/homebrew/install#uninstall-homebrew
By running brew doctor, I am getting some warnings :
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master
I checked this directory
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
and realize there's no Formula folder.
Any help would be appreciate.
I had this error and solved with
git -C $(brew --repo homebrew/core) checkout master

Installing Homebrew + nginx + rtmp in macOS Movaje 10.14

I was able to install Homebrew + nginx + rtmp in macOS High Sierra 10.13. Now I want do the same on macOS Mojave 10.14.
So let's start ... istallation of Homebrew, first we need Xcode in terminal...
xcode-select –install
than. We need homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
than install nginx + rtmp
And here's the problem
I tried:
brew install nginx-full --with-rtmp-module
but it won't work
the result:
Updating Homebrew...
Usage: brew install [options] formula
Install formula. Additional options specific to formula may be appended to the command.
Unless HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will then be run for
the installed formulae or, every 30 days, for all formulae.
-d, --debug If brewing fails, open an interactive
debugging session with access to IRB or a
shell inside the temporary build directory.
--env If std is passed, use the standard build
environment instead of superenv. If super
is passed, use superenv even if the formula
specifies the standard build environment.
--ignore-dependencies An unsupported Homebrew development flag to
skip installing any dependencies of any
kind. If the dependencies are not already
present, the formula will have issues. If
you're not developing Homebrew, consider
adjusting your PATH rather than using this
flag.
--only-dependencies Install the dependencies with specified
options but do not install the formula
itself.
--cc Attempt to compile using the specified
compiler, which should be the name of the
compiler's executable, e.g. gcc-7 for GCC
7. In order to use LLVM's clang, specify
llvm_clang. To use the Apple-provided
clang, specify clang. This option will
only accept compilers that are provided by
Homebrew or bundled with macOS. Please do
not file issues if you encounter errors
while using this option.
-s, --build-from-source Compile formula from source even if a
bottle is provided. Dependencies will still
be installed from bottles if they are
available.
--force-bottle Install from a bottle if it exists for the
current or newest version of macOS, even if
it would not normally be used for
installation.
--include-test Install testing dependencies required to
run brew test formula.
--devel If formula defines it, install the
development version.
--HEAD If formula defines it, install the HEAD
version, aka. master, trunk, unstable.
--fetch-HEAD Fetch the upstream repository to detect if
the HEAD installation of the formula is
outdated. Otherwise, the repository's HEAD
will only be checked for updates when a new
stable or development version has been
released.
--keep-tmp Retain the temporary files created during
installation.
--build-bottle Prepare the formula for eventual bottling
during installation, skipping any
post-install steps.
--bottle-arch Optimise bottles for the specified
architecture rather than the oldest
architecture supported by the version of
macOS the bottles are built on.
-f, --force Install without checking for previously
installed keg-only or non-migrated
versions.
-v, --verbose Print the verification and postinstall
steps.
--display-times Print install times for each formula at the
end of the run.
-i, --interactive Download and patch formula, then open a
shell. This allows the user to run
./configure --help and otherwise
determine how to turn the software package
into a Homebrew package.
-g, --git Create a Git repository, useful for
creating patches to the software.
-h, --help Show this message.
Error: invalid option: --with-rtmp-module
so i tried:
brew install nginx --with-rtmp-module
but.....result:
Updating Homebrew...
Error: No available formula with the name "–with-rtmp-module"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
so I decided to try install nginx first and than rtmp module
brew install nginx
and than i tried:
brew install nginx libnginx-mod-rtmp (copying from Linux)
brew install rtmp-module
brew install module-rtmp
But none of the above worked. How do I resolve it?
You should tap a nginx formulae before try install nginx-full
Well you can try denji/nginx, since homebrew/nginx tap has been deprecated, That's:
brew tap denji/nginx
then
brew install nginx-full --with-rtmp-module
That works for me.

Brew + suite-sparse421

I have installed brew on OSX and I have installed successfully several things.
However when I try to install suite-sparse421 (hard constraint on the version):
brew tap homebrew/versions
brew install suite-sparse421
I get the following error:
Error: No available formula with the name "suite-sparse421"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
Running brew doctor shows no problem (Your system is ready to brew.)
Running brew update shows no problem (Already up-to-date.)
Any idea?
Have a look at this
https://github.com/Homebrew/homebrew-science/blob/master/suite-sparse.rb
Homebrew-science/suite-sparse.rb has updated it url to download the 4.5.3 package, "http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.3.tar.gz"
If you want a specific version , why not download and build on your own.
The commands to build are pretty self explanatory there in the rb script.
As you can see in the error message there’s no formula named suite-sparse421. There’s nothing wrong with your Homebrew installation; it just doesn’t exist. See this other SO answer on how to install a previous version of a formula.
In addition to the previous right answers, the formula suite-sparse421 was removed. And all archived versions of SuiteSparse are listed on the official website.

"brew install osm2pgsql" failed

I'm using mac and I want to install osm2pgsql to import OSM data into PostgreSQL.
I execute brew install osm2pgsql in the terminal. (I have already executed brew update).
Here is the output:
==> Downloading https://github.com/openstreetmap/osm2pgsql/archive/v0.82.0.zip
Already downloaded: /Library/Caches/Homebrew/osm2pgsql-0.82.0.zip
==> ./autogen.sh
==> ./configure --with-proj=/usr/local/opt/proj
checking for fork... yes
checking for xml2-config... /usr/bin/xml2-config
checking for xml2 libraries... yes
checking for zlib compression library... no
configure: error: required library not found
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
And here is the output of executing brew doctor:
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libMonoPosixHelper.dylib
/usr/local/lib/libSFFileMonitor.32.dylib
/usr/local/lib/libSFIPC.32.dylib
/usr/local/lib/libSFIPC.I.dylib
/usr/local/lib/libSFsqlite3.7.4.dylib
/usr/local/lib/libSFSyncEngine.I.dylib
I don't know these dylibs and should I delete them?
What should I do to linstall osm2pgsql?
Or should I give up osm2pgsql and use some other tool to import OSM data into PostgreSQL?
[EDIT 1]
According to http://www.zlib.net/, zlib is already included as part of Mac OS X.
And when I search it in google, I found this https://github.com/josegonzalez/homebrew-php/issues/205 and this https://github.com/josegonzalez/homebrew-php/issues/538
So I execute the following two commands:
brew tap homebrew/dupes
brew install zlib
And the result output is:
==> Downloading http://zlib.net/zlib-1.2.8.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/zlib/1.2.8
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/zlib/lib
CPPFLAGS: -I/usr/local/opt/zlib/include
==> Summary
It seems that I don't have to install zlib.
Again I execute brew install osm2pgsql, but it still doesn't work.
[Edit 2]
I give up homebrew and install osm2pgsql via a binary installer.
FYI:
http://wiki.openstreetmap.org/wiki/Osm2pgsql#Binary_Installer
https://github.com/openstreetmap/osm2pgsql/issues/15
I don't know anything about brew but according to the error message you are missing the zlib library. Try to install it first.
And you should keep to osm2pgsql because it is the standard tool to import OSM data into a PostgreSQL database.
You have to edit the formula by using the following command:
brew edit <formula_name>
Then, you have to make the exports needed in the brew env, the best place to do this is in the install function just before the call of
system "./configure", *args
Here are the lines to append
ENV.append 'LDFLAGS', "-L/usr/local/opt/zlib/lib"
ENV.append 'CPPFLAGS', "-I/usr/local/opt/zlib/include"
When it is finished, you just have to run the brew installation again and it will works
I edited the formula, as it was not running on Mac OS X Mavericks either. See the gist which made it install successfully.
https://gist.github.com/christoph-buente/e18584e312bcadfe82e5
And i filed a pull request to the homebrew repository. Hopefully it will be merged:
https://github.com/Homebrew/homebrew/pull/29862

Resources