[fpc-pascal] El Capitan 10.11 installation
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Oct 21 16:58:47 CEST 2015
Yorgo Yeorgiou wrote on Wed, 21 Oct 2015:
> Could someone suggest me a way to install Pascal on a Mac running El
> capitan with XCode 7 IDE?
Download the installer from
http://www.freepascal.org/down/i386/macosx-netherlands.var and follow
the instructions on that page (the ones for 'Xcode 5+ compatibility'
and 'Unknown developer" error when installing (Mac OS X 10.7 and
later)'. That will install the compiler. It will not make it usable
from within Xcode itself.
While you can use FPC from inside Xcode, it's not recommended because
Xcode is on the one hand overly complicated and on the other hand has
very little to no Pascal-specific support.
If it is just to compile small programs, you have three options:
1) if you are familiar with Terminal: type them in a text editor, save
them and then compile them in a terminal window with "fpc
savedfile.pas" (replace "savedfile.pas" with the name of the file you
saved, and ensure you are in the correct directory
2) you can try the Lightweight IDE: http://www.ragnemalm.se/lightweight/
3) you can use Lazarus (more complex to use):
http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/Lazarus%201.4.4/ (once you've installed the compiler from the url mentioned at the start of this message, you have to additionally install the fpcsrc-2.6.4-20140421-i386-macosx.dmg and lazarus-1.4.4-20151003-i386-macosx.dmg files from that page). Follow the instructions at http://wiki.lazarus.freepascal.org/Console_Mode_Pascal#Console_mode_programming_with_Lazarus to create a simple text-based mode application with
Lazarus.
If you want to do other things besides writing simple console mode
programs, then install Lazarus and follow e.g.
http://wiki.freepascal.org/Lazarus_Tutorial
Jonas
More information about the fpc-pascal
mailing list