i386-elf-gcc command not found after linuxbrew install

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Corn11
Posts: 2
Joined: Sat Feb 16, 2019 12:02 pm
Libera.chat IRC: Corn11

i386-elf-gcc command not found after linuxbrew install

Post by Corn11 »

I have installed linuxbrew with:

Code: Select all

sudo apt install linuxbrew-wrapper
I have installed i386-elf-gcc and i386-elf-binutils with:

Code: Select all

brew install i386-elf-gcc i386-elf-binutils
I also installed the dependencies and know this because

Code: Select all

brew info i386-elf-gcc
outputs:

Code: Select all

i386-elf-gcc: stable 8.2.0
The GNU compiler collection for i386-elf
https://gcc.gnu.org
/home/linuxbrew/.linuxbrew/Cellar/i386-elf-gcc/8.2.0 (552 files, 101.6MB) *
  Built from source on 2019-02-17 at 12:52:10
From: https://github.com/Linuxbrew/homebrew-core/blob/master/Formula/i386-elf-gcc.rb
==> Dependencies
Required: gmp ✔, i386-elf-binutils ✔, libmpc ✔, mpfr ✔
==> Analytics
install: 159 (30 days), 418 (90 days), 752 (365 days)
install_on_request: 156 (30 days), 404 (90 days), 721 (365 days)
build_error: 0 (30 days)
I'm relatively new to osde so thanks in advance for any help! :D
MichaelPetch
Member
Member
Posts: 798
Joined: Fri Aug 26, 2016 1:41 pm
Libera.chat IRC: mpetch

Re: i386-elf-gcc command not found after linuxbrew install

Post by MichaelPetch »

Have you added the Linuxbrew bin path to your PATH?
PTRNULL
Posts: 1
Joined: Tue Jan 01, 2019 3:46 am

Re: i386-elf-gcc command not found after linuxbrew install

Post by PTRNULL »

you should use `i386-elf-` as the prefix.
`i386-elf-gcc example.c -I$(LIB_DIR)`
Post Reply