Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-01

Installing on mac

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darius Blaszyk

Hi,

I have done a sudo make clean all. The compiler and units are built correctly and installed in /usr/local/lib/fpc/2.7.1. The tools seems to be placed under /usr/local/bin.

However ./fpc from command-line gives me the old 2.4.4, therefore I changed my ./profile file. So now I have 2.7.1. However Lazarus still compiles with 2.4.4, even if I compile it from commandline. This has to mean that I shouldn't have modified the .profile, but create a symlink???

Any help is appreciated.

Regards, Darius

Reply by email

Jonas Maebe
to Darius Blaszyk
Darius Blaszyk wrote
I have done a sudo make clean all. The compiler and units are built correctly and installed in /usr/local/lib/fpc/2.7.1. The tools seems to be placed under /usr/local/bin. However ./fpc from command-line gives me the old 2.4.4, therefore I changed my ./profile file. So now I have 2.7.1. However Lazarus still compiles with 2.4.4, even if I compile it from commandline. This has to mean that I shouldn't have modified the .profile, but create a symlink???

"make install" never changed the default installed version on Unix-like platforms. To change that one, you indeed have to change the ppc386/ppcppc/ppcx64/... symlinks in /usr/local/bin to point to the version that you want to become default.

Alternatively, you can change the compiler binary that Lazarus uses in Tools->Options->Environment->Compiler path

Jonas

Reply by email

Darius Blaszyk
to Jonas Maebe
Jonas Maebe wrote 8 lines
On 12 Jan 2012, at 21:40, Darius Blaszyk wrote: > I have done a sudo make clean all. The compiler and units are built correctly and installed in /usr/local/lib/fpc/2.7.1. The tools seems to be placed under /usr/local/bin. > > However ./fpc from command-line gives me the old 2.4.4, therefore I changed my ./profile file. So now I have 2.7.1. However Lazarus still compiles with 2.4.4, even if I compile it from commandline. This has to mean that I shouldn't have modified the .profile, but create a symlink??? "make install" never changed the default installed version on Unix-like platforms. To change that one, you indeed have to change the ppc386/ppcppc/ppcx64/... symlinks in /usr/local/bin to point to the version that you want to become default.

Thanks Jonas, I missed the ppc symlink there for some reason. Now that it's updated everything works fine.

Regards, Darius

Reply by email