Building the scriptbasic compiler from source
From ScriptBasic
[edit] Building the ScriptBasic package from source
[edit] Make the build directory current
mkdir ~/build/scriba cd ~/build/scriba
[edit] Move the source tarball and patches to the build directory
mv ~/download/scriba-v2.0b0-source.tar.gz ./ mv ~/download/gcc4_fix.zip
[edit] Extract the source tarball
gunzip scriba-v2.0b0-source.tar.gz tar xf scriba-v2.0b0-source.tar
[edit] Change the source file permissions to allow updates
chmod u+w memory.c chmod u+w memory.h chmod u+w commands/function.c chmod u+w mt/interface.c
[edit] Extract the patch files
unzip gcc4_fix.zip
[edit] Remove the binary patches
rm -rf gcc4_fix/exe rm mt/mt.so
[edit] Apply the patch files
mv gcc4_fix/memory.c ./ mv gcc4_fix/memory.h ./ mv gcc4_fix/commands/function.c ./commands/ mv gcc4_fix/mt/interface.c ./mt/
[edit] Remove the cruft files
rm -rf gcc4_fix rm -rf scriba-v2.0b0-source.tar
[edit] Installing the esd.pm module
It is necessary to install the esd.pm module in order to compile the source code. This must be done with appropriate privileges:
su mkdir /usr/local/lib/site_perl perl jamal.pl -i exit
[edit] Enter a fakeroot environment for the source build
fakeroot
[edit] Compile the scriptbasic package
./setup
Note: various errors may occur during the build process. These are related to optional modules, and can be ignored.
[edit] Exit the fakeroot environment
exit
[edit] Gain root privileges
You will need to gain appropriate privileges to install the interpreter and support libraries.
su
[edit] Install the scriptbasic interpreter
cp bin/exe/scriba /usr/bin
[edit] Install the scriptbasic runtime libraries
mkdir /usr/lib/scriba cp bin/lib/*.a /usr/lib/scriba/
[edit] Drop root privileges
exit
