Installing the Scriptol to C++ Compiler

and all required tools.

Mail: webmaster@scriptol.com
Home page: http://www.scriptol.com/


Node:Top, Next:, Previous:(dir), Up:(dir)

Table of Contents


Node:Installing under Windows, Next:, Previous:Top, Up:Top

Installing under Windows


Node:Installing Scriptol, Next:, Previous:Installing under Windows, Up:Top

Installing Scriptol

1) Extract the zip archive inside a directory, for example.

 c:\scriptol
This can be achieved by several free tools, ZipCentral, or 7-zip, or Advanced Explorer, for example.
Under Windows: run the install batch file.
Under Linux: run the setup script.
(See the README and CONTENT filed for details.)

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:\mydir
Under 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


Node:Installing the Borland Compiler, Next:, Previous:Installing Scriptol, Up:Top

Installing the Borland Compiler

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


Node:Installing MingW, Next:, Previous:Installing the Borland Compiler, Up:Top

Installing MingW

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


Node:Installing Visual C++, Next:, Previous:Installing MingW, Up:Top

Installing Visual C++

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


Node:Installing the Java extension, Next:, Previous:Installing Visual C++, Up:Top

Installing the Java extension

- 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...


Node:Installing under Linux, Next:, Previous:Installing the Java extension, Up:Top

Installing under Linux


Node:Installing Scriptol under Linux, Next:, Previous:Installing under Linux, Up:Top

Installing Scriptol under Linux

1) Extract the archive inside your personal directory:

	tar -zxvf scriptol-cpp.tar.gz
The 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:

	./setup
Header files are installed into /usr/include/scriptol.
Libraries are installed into: /usr/lib/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.


Node:Installing the Java extension under Linux, Next:, Previous:Installing Scriptol under Linux, Up:Top

Installing the Java extension under Linux

See at the Java documentation for details.


Node:Index, Previous:Installing the Java extension under Linux, Up:Top

Index