How does one go about compiling and installing GPC under Linux in such a way as to not interfere with the GCC 4 one already has? I've ended up installing and ripping out GPC on the Linux side on three different occasions (always Slackware) because I was no longer able to use GCC 4 (as much as I hate C, it is useful to have a C compiler around for compiling free software). Seems that the GCC 3 libraries GPC needs end up pre-empting the GCC 4 libraries. If people need exact error messages, I can go ahead and redo the install, so I can remember what they are (it's been a while).
I did recently install that other free Pascal compiler, only to discover that it wouldn't compile my nearly completed project from 5 years ago (not even my Borland-style units), so I really would like to have GPC back on my Linux boxes without the hassle of changing distros.
BTW: As much as I appreciate Kevan Hashemi's making a pre-compiled Linux GPC binary available, my preference would be for a 64-bit build.
--------------------------| John L. Ries | Salford Systems | Phone: (619)543-8880 x107 | or (435)867-8885 | --------------------------|
On 19 Apr 2009 at 1:44, John L. Ries wrote:
How does one go about compiling and installing GPC under Linux in such a way as to not interfere with the GCC 4 one already has?
configure --prefix=/usr/local (or some other dir outside the system GCC's path) .... ... ...
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
On Sun, 19 Apr 2009, Prof A Olowofoyeku (The African Chief) wrote:
That's what configure wants to do by default. What I run up against is that (either) gcc4 ends up looking in /usr/local/lib first and not finding what it needs, or gpc ends up looking in /usr/lib first and not finding what it needs (depending on what $LD_LIBRARY_PATH looks like). Looks like I am going to have to try this again and hope I don't need help (if I do, I'll provide specific examples).
Thanks.
--------------------------| John L. Ries | Salford Systems | Phone: (619)543-8880 x107 | or (435)867-8885 | --------------------------|