How To Install GCC On macOS

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • A walk-through of how to install and configure the GNU Compiler Collection (GCC) for C++ development on MacOS using Homebrew package manager.
    GNU Compiler Collection Website: gcc.gnu.org
    Homebrew Website: brew.sh

КОМЕНТАРІ • 19

  • @adityaverma9572
    @adityaverma9572 23 дні тому

    only tutorial that worked for me thanks man

  • @mr_ell7151
    @mr_ell7151 2 місяці тому

    Thank you very much for this tutorial!

  • @dungnguyen5912
    @dungnguyen5912 2 місяці тому

    Thank you for posting this video. The best!

  • @TCMACK
    @TCMACK 8 місяців тому +3

    Hi. It worked up to me typing "brew install gcc," to which I got an error.

    • @rahuljay5999
      @rahuljay5999 3 місяці тому

      Hey did you solved the issue

    • @coldbyte7666
      @coldbyte7666 2 місяці тому

      @@rahuljay5999 Sounds like the homebrew installer didn't properly update the $PATH variable to include where homebrew got installed. You can add it yourself using one of the following commands:
      If using Apple Silicon: echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> $HOME/.zshrc
      If using Intel: echo 'eval $(/usr/local/bin/brew shellenv)' >> $HOME/.zshrc
      Make sure to close and re-launch the terminal after running the command

    • @FathimaRaeesah
      @FathimaRaeesah День тому +1

      yeah it says command not found

  • @SamaaSeif
    @SamaaSeif 7 днів тому

    when I tried to use the ln -s g++-14 g++, it says the file doesn't exist.. but then when I view filed in directory it there... what's the fix?

  • @FathimaRaeesah
    @FathimaRaeesah День тому

    worked

  • @OzodbekMakhammatov
    @OzodbekMakhammatov 8 місяців тому +3

    Hello, Can you please help me.
    I cant download GCC after installing brew. When I write "brew install gcc" it has like error - "command not found: brew". What can I do, can you please help to me

    • @MattsLecturesandTutorials
      @MattsLecturesandTutorials  8 місяців тому +3

      Sounds like the homebrew installer didn't properly update the $PATH variable to include where homebrew got installed. You can add it yourself using one of the following commands:
      If using Apple Silicon: echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> $HOME/.zshrc
      If using Intel: echo 'eval $(/usr/local/bin/brew shellenv)' >> $HOME/.zshrc
      Make sure to close and re-launch the terminal after running the command

    • @OzodbekMakhammatov
      @OzodbekMakhammatov 8 місяців тому

      Thank you so much, I will try that@@MattsLecturesandTutorials

  • @dianaburlacu5728
    @dianaburlacu5728 6 місяців тому

    great and easy tutorial, congrats and thank you!

  • @josephscotti3858
    @josephscotti3858 5 днів тому

    @MattsLecturesandTutorials when i'm about to download gcc terminal says the command brew isn't found, how do i solve it ? i'm in MacOs sonoma

    • @FathimaRaeesah
      @FathimaRaeesah День тому

      yep same problem. did u find a solution?

  • @ksjdudh1666
    @ksjdudh1666 8 місяців тому

    Hello there, for some reason the installation is stuck on make for some reason..

  • @ishaankulkarni49
    @ishaankulkarni49 8 місяців тому

    great tutorial! Can you also tell us how to configure the 'bits/stdc++.h' file please

  • @em_nikhil_007
    @em_nikhil_007 7 місяців тому

    thanks

  • @oumamaali8956
    @oumamaali8956 5 місяців тому

    👍