Re: How to install GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/13/18 9:22 AM, Mehrdad Tavassoli S225061 wrote:
Hello,

It is almost impossible to install GCC and it's ridiculously complicated no clue no nothing and the website is terrible.
No installing it is a personal issue.
I would like to help me through solving your puzzle (Don't take it as a compliment)
PS. My laptop is macbook pro with os high sierra 10.13.2 .

Best regards


Here is the track I follow:

1. Download the version of GCC I want to custom compile.
2. Change into the directory where I've decompressed the source
   and run the command:

           ./contrib/download_prerequisites

3. Create a build directory

           ./mkdir build-gcc-somefeature

4. Change into the build directory created in 3.
5. Figure out the options I want to include in my build:

            ../configure --help

    I often look at the current installation of gcc to see what's set:

             gcc -v

6. Issue the configure command. For instance, here's the one I used for gcc-7.2.0:

             ../configure --prefix=/usr/local/gcc-7.2.0 \
--enable-checking=release \
--enable-languages=c,c++,objc,obj-c++ \
--enable-shared \
                 --enable-threads=posix

7. make
8. make install

To me, gcc is one of the smoothest, and easiest installations and custom compilations out there. I actually love it and really appreciate the effort of the devs who have gotten it to the point of it being this straightforward.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux