(Put package in your home dir (or wherever you want)
(uncompress it)
(use <tab> to complete the package name)
(whatever '' in name)
tar xvzf PureBasic...
Code: Select all
pi@raspberry:~ $ tar xvzf PureBasic_Linux_beta_ <tab>
export PUREBASIC_HOME=~/...
Code: Select all
pi@raspberry:~ $ export PUREBASIC_HOME=~/purebasic
(use vi, nano or anything else)
(here, mini: 'cat' command)
Code: Select all
pi@raspberry:~/purebasic/compilers $ cat > hello.pb
PrintN("Hello World!")
^C
Code: Select all
pi@raspberry:~/purebasic/compilers $ cat hello.pb
PrintN("Hello World!")
./pbcompiler hello.pb -e hello
Code: Select all
pi@raspberry:~/purebasic/compilers $ ./pbcompiler hello.pb -e hello
PureBasic 6.00 Beta 1 - C Backend (Linux - arm32)
Loading external modules...
Starting compilation...
Starting compilation...
3 lines processed.
Creating the executable.
- Feel the ..PuRe.. Power -
(test)
./hello
Code: Select all
pi@raspberry:~/purebasic/compilers $ ./hello
Hello World!