Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew --build-from-source fails to find gcc on Linux #14

Open
rouson opened this issue Sep 27, 2022 · 1 comment
Open

brew --build-from-source fails to find gcc on Linux #14

rouson opened this issue Sep 27, 2022 · 1 comment

Comments

@rouson
Copy link

rouson commented Sep 27, 2022

brew tap fortran/lang && brew install fpm fails on Lubuntu Linux 21.10. The error message recommends building from source, but brew --build-from-source fpm fails and recommends executing brew install gcc. Executing the latter command puts gcc-12, g++-12, and gfortran in /home/linuxbrew/.linuxbrew/bin/ so I created soft links as follows:

cd /home/linuxbrew/.linuxbrew/bin/
ln -s gcc-12 gcc
ln -s g++-12 g++

after which brew install --build-from-source fpm works. Any advice on how to tell Homebrew to use gcc-12 and g++-12 or how to tell Homebrew to create the aforementioned soft links so that I don't have to create them by hand?

In each of the above commands, I actually used -s in place of --build-from-source. The two are equivalent.

@awvwgk
Copy link
Member

awvwgk commented Sep 28, 2022

This might be a question best asked at https://github.com/orgs/Homebrew/discussions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants