I have installed fpc from sources before but it's been a while and I've forgotten how to get it done, or perhaps something has changed and need some help.<div><br></div><div>When i am trying to do is install and run the latest version of fpc from my home folder. Here is what I did:</div>
<div><br></div><div># first I got a working version of fpc installed using</div><div>sudo apt-get install fpc</div><div><br></div><div># then i made a ~/fpc and got a copy fpc sources there</div><div><div>svn co <a href="http://svn.freepascal.org/svn/lazarus/trunk">http://svn.freepascal.org/svn/lazarus/trunk</a> lazarus</div>
</div><div><br></div><div># finally did a make all follow by make install to my home folder</div><div>make all</div><div>make install </div><div>make install INSTALL_PREFIX=/home/myusername</div><div><br></div><div>Great success! Now I have a ~/bin (/home/myusername/bin) folder with all the fpc binaries as well as ~/share and ~/lib. Then put /home/myusername/bin in my path.</div>
<div><br></div><div>Problem:</div><div><br></div><div>When I type fpc I get:</div><div><br></div><div><div>Free Pascal Compiler version 2.4.4-2ubuntu1 [2011/09/27] for i386</div><div>Copyright (c) 1993-2010 by Florian Klaempfl</div>
<div>/usr/lib/fpc/2.4.4/ppc386 [options] <inputfile> [options]</div></div><div><br></div><div>And not the version I just built and installed in my ~/bin folder. When I open a terminal and cd to ~/bin and execute ./fpc ... I get the same result.</div>
<div><br></div><div>Help: </div><div><br></div><div>How do I setup fpc to use the compiler in my ~/bin folder?</div>