The install.txt claims there are two options for installing PB:
Option A simply does not work as expected. I download the dmg file and move the included PureBasic folder to "/Applications/Coding/". When I run PB, it can not compile files other than the included example source files. Ok, a PATH error then I assumed. So much for option A as a fully functional install (even though it claims to be). I turn to option B.A) Using it from the IDE (easy installation)
1) Drag the PureBasic directory where you want.
2) Double-click on 'PureBasic' application, it will launch the IDE.
3) Drag the 'PureBasic' icon to your dock to have it permanently (optional).
B) Using it from terminal/shell (experienced users)
1) Drag the PureBasic directory in your home directory.
1) Open a terminal and enter the following:
$ bash
$ export PUREBASIC_HOME=~/purebasic
$ export PATH=$PATH:$PUREBASIC_HOME/compilers
These 3 lines do the following:
a) launch the bash shell, which is more apriopriate then the default one (should be the default on OS X 10.3 or above)
b) set the home variable for purebasic, so the purebasic compiler can know where the components lies
c) add the purebasic/compilers/ directory to the path, which means than the executables found in the compilers/ directory will be availabe from anywhere
if all works correctly, you can put this in your ~/.bashrc file (config file for bash)
After fiddling in the shell I realized that the first "export" line in option B assumes I put the PureBasic applications directory in the user root (without mentioning this fact). It might seem trivial but I am fairly new to the mac experience. I change the lines to
Code: Select all
export PUREBASIC_HOME=/Applications/Coding/PureBasic
export PATH=$PATH:$PUREBASIC_HOME/compilers
Oh, the symptom when I compile my own code stored in ~/code/test.pb is that the entire IDE freeze up while two messages appear on top of each other, "Compiling in progress…" and "The required compiler cannot be found: PureBasic". The PB application stops responding and a Force Quit is the only way to close it down.

