This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linux unable to find the correct gcc
- From: Markus Trippelsdorf <markus at trippelsdorf dot de>
- To: Syed Ahsan Ali Bokhari <ahsan at pmd dot gov dot pk>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 26 Aug 2014 09:36:25 +0200
- Subject: Re: Linux unable to find the correct gcc
- Authentication-results: sourceware.org; auth=none
- References: <CAOjP03Xx0T_QUFGSpqK1MurAQNMu+pVbvv6fCwH5hO-1hBNPiQ at mail dot gmail dot com>
On 2014.08.26 at 12:32 +0500, Syed Ahsan Ali Bokhari wrote:
> I have compiled gcc 4.9 in CentOS 6.5 which had gcc 4.4.7 by default.
> the default gcc is contained is /usr/bin directory. I have compiled a
> newer version gcc 4.9 in /usr/local/gcc4.9 directory and added this
> path in .bashrc as folllow
>
> export PATH=$PATH:/usr/local/gcc-4.9.1/bin
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/gcc-4.9.1/lib/
You probably want: export PATH=/usr/local/gcc-4.9.1/bin:$PATH
You can also use "make CC=/usr/local/gcc-4.9.1/bin/gcc" to build the
kernel.
--
Markus