ScriptBasic Pre-Release Install InstructionsI hope to have a fully automated installation script when the ScriptBasic 2.2 version is release. Until then, here is a guide to help you get ScriptBasic installed with extension module support. I will start off with the minimal requirements and touch on some of the more advanced configuration options as time permits.
ScriptBasic User GuideScriptBasic Developer GuideScriptBasic Configuration GuideBare BonesThe command line interpreter
scriba(.exe) can run scripts without the need of a configuration file. If the script is in the same directory as scriba then do the following.
./scriba yourscript <--- Linux
scriba yourscript <-- Windows
The first thing that should be done is add the search path to the ScriptBasic
bin directory/. This will allow scriba to run from anywhere. For this tutorial I will assume that you unzipped the SB 2.2 pre-release in the C:\scriptbasic or /home/me/scriptbasic directory. Under Windows you can edit the search path by going to control panel -> system -> advanced -> edit PATH. In Linux you can add the SB search path with the following. This can also be added to your login profile along with the other exports that will be discussed in this tutorial.
export PATH=$PATH:/home/me/scriptbasic/bin
The next step is to create a minimal ScriptBasic
SCRIBA.INI (binary format) configuration file for Windows installs. You need to use the admin console for this step to create the SCRIBA.INI in the WINDOWS system directory.
Under Linux, set the
SCRIBACONF environmental variable to point to where the basic.con file is located. This minimal configuration file will only indicate the type of shared object being used and the paths to the ScriptBasic
include and
modules directory. Using a text editor, create a file
basic.conf.txt in your SB bin directory with the following information.
Linuxdll ".so"
module "/home/me/scriptbasic/modules/"
include "/home/me/scriptbasic/include/"
Windowsdll ".dll"
module "C:/scriptbasic/modules/"
include "C:/scriptbasic/include/"
For Linux lets setup the
SCRIBACONF environmental variable to point where the ScriptBasic configuration file resides.
export SCRIBACONF=/home/me/scriptbasic/bin/basic.conf
From within your ScriptBasic
bin directory and where you created your
basic.conf.txt file, do the following to create the binary version
basic.conf file. We are ready to generate the binary
basic.conf which will be created in the path specified above. If the the SCRIBACONF variable isn't set, under Linux the file is created in the /etc/scriba/ and on Windows, SCRIBA.INI is created in the the system WINDOWS directory.
scriba -k basic.conf.txt
You now have a minimal ScriptBasic install that will allow you to use the IMPORT for extension modules without having to give a full path. I will continue to append to this tutorial showing some of the more advanced configuration options as I have time. This should get you going and allow you to contribute to the ScriptBasic project.