This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linux unable to find the correct gcc


On 26 August 2014 08:32, 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/
>
> But still the Linux find the gcc4.4.7 version and unable to find the
> newly compiled one.
>
> Ahsan

Wasn't this already explained three weeks ago?

https://gcc.gnu.org/ml/gcc-help/2014-08/msg00043.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]