and all required tools.
Mail: webmaster@scriptol.com
Home page: http://www.scriptol.com/
1) Extract the zip archive inside a directory, for example.
c:\scriptolThis can be achieved by several free tools, ZipCentral, or 7-zip, or Advanced Explorer, for example.
2) Make the solc compiler accessible
either by moving it into the php directory or by adding the Scriptol directory to the path.
See at the section on the Scriptol to Php compiler.
3) Install a C++ compiler
If no C++ compiler is installed, your scriptol program will be compiled to C++, but not as executable.
You have to copy solc.ms or solc.bcc or solc.gss over solc.ini according to the C++ compiler you are using.
4) Move Scriptol libraries
If you want to compile Scriptol source in another directory, and not inside the scriptol directory,
you must install Scriptol with this command (providing the name of the directory is "mydir":
install c:\mydirUnder Unix or Linux, the command is, for example:
./setup /home/me/mydir
5) Using the compiler
First, compile the program, just give for argument the name of the file containing
the "main" function or the name of the main file for a script.
solc -be hellocpp ... compile hellocpp ... execute
Download and install the Borland C++ compiler from "www.borland.com/cppbuilder".
An installer is provided.
Once the compiler is installed, you must update the win32.cfg file inside the bcc directory and the bcc32.cfg and
ilink32.cfg files for the path inside the bcc\bin directory.
If your version of Windows is prior Windows 2000 or NT5 or XP, win32.cfg must hold these switches:
-DWINVER=0x0400 -D_WIN32_WINNT=0x0400
Add the path of the bin directory of bcc to the PATH variable (see above).
The bcc32.cfg must point out include files and library files:
-I"c:\bcc55\include" -L"c:\bcc55\lib;c:\bcc55\lib\psdk"
The ilink32.cfg file must point out library files:
-L"c:\Bcc55\lib;c:\Bcc55\lib\psdk" -E24
Verify the compiler is installed, from the Scriptol directory, type:
bcc32
Download and install the MingW C++ compiler.
An installer is provided.
Add the path of the compiler to the PATH variable.
This variable must be set also:
SET GCC_EXEC_PREFIX=c:\gcc\lib\gcc-lib\Verify the compiler is installed, from the Scriptol directory, type:
g++ -v
Copy solc.gcc over solc.ini
If you don't own the Microsoft's compiler, a free version is available along with the .Net SDK or
on the demo CD of Visual Studio. See at Microsoft.
You have to define the environment variables:
set PATH="%PATH%";"c:\vc7\BIN" set INCLUDE=c:\vc7\INCLUDE;c:\vc7\ALTMFC\INCLUDE set LIB=c:\vc7\LIB;c:\vc7\ATLMFC\LIB
Copy solc.ms over solc.ini
- The jvm.dll must be in the path.
- The jvm.lib, jni.h, jni_md.h files must be in the directory of your Scriptol sources.
- The JAVA_HOME variable must be assigned the path of the JDK (ex: c:\jdk1.4).
- See the README file if you encounter problems...
1) Extract the archive inside your personal directory:
tar -zxvf scriptol-cpp.tar.gzThe scriptolc directory is created.
2) Enter the directory:
cd scriptolc
3) Enter super-user mode (give the password):
su
4) Install the libraries and include files:
./setupHeader files are installed into /usr/include/scriptol.
A syntax highlighter for Kate is also installed inside the .kde sub-directory.
This directory must stay in the root of your personal directory.
You can change all the paths providing the solc.ini or any xxx.cfg, configuration files, accordingly the path you have choosen.
See at the Java documentation for details.