Re: trouble building gcc 4.7 on x64 ubuntu derivative

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

 



On 11 May 2012 19:18, Dylan Evans wrote:
> Any help would be great.  I apologize if I missed some important bit
> of documentation.  Essentially, I cannot find my newly compiled
> binaries gcc, g++, etc.
>
> I wanted a side-by-side install of 4.7 alongside the pre-existing gcc
> 4.6.1, so unpacked the tarball to /usr/local/bin/gcc-4.7.0.  I then
> created directories as directed, with objdir=/usr/local/gcc2install
> and dirname=/usr/local/gcc2.  From /usr/local/gcc2install, I ran
>
> sudo /usr/local/bin/gcc-4.7.0/cofigure --prefix=/usr/local/gcc2
> --program-suffix=47
>
> Then sudo make.  It yielded no critical errors that I could notice but
> the process did not write any files to /usr/local/gcc2.

You missed the "make install" step.

That should be clear from the documentation  at
http://gcc.gnu.org/install/ (it's step 6) and
http://gcc.gnu.org/wiki/InstallingGCC (it's the last command shown in
the example)

Also, only "make install" needs to be done as root, there's no reason
to use sudo to configure or compile GCC (or most other software).



[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