Please Help

RudeCGI™ Open Source C++ CGI Library

Version 5.1.0


Linux Installation

This installation puts the header files and libraries into public places so they are easily accessed by all your programs. The public areas are usually /usr/include and /usr/lib OR /usr/local/include and /usr/local/lib. Please note: We have assumed /usr/lib and /usr/include for these instructions. If your directories are different, you will need to substitute your correct paths in the instructions given below.

NOTE: You may need to have super user priveleges (eg. logged in as root) to install Config. If you don't, see the Quick-n-Dirty section here.

1. If it doesn't already exist, create public rude lib and include directories under /usr/include and /usr/lib

>mkdir /usr/include/rude
>mkdir /usr/lib/rude

>chmod 755 /usr/include/rude
>chmod 755 /usr/lib/rude

2. unzip the package

>tar xzvf rudecgiparser.2.1-nnnnn.tar.gz

3. move into the unzipped directory

>cd rudecgiparser.2.1

4. Copy the header file (config.h) to the /usr/include/rude directory.

>cp cgiparser.h /usr/include/rude/cgiparser.h
>chmod 644 /usr/include/rude/cgiparser.h

5. Copy the libraries to the /usr/lib directory

For Shared Library:

>cp /usr/lib/
>chmod 644 /usr/lib/
>ln -s /usr/lib/ /usr/lib/

For Regular Library:

>cp rudeconfig.lib /usr/lib/rudecgiparser.lib
>chmod 644 /usr/lib/rudecgiparser.lib

Borland CBuilder 5.x (CBuilder and command line) Installation

If you just want to dive in and use the component, see the Quick-n-Dirty section here.

Otherwise, this installation puts the header file and library into public places so they are easily accessed by all your programs.
In order to do this, you will need to find Borland's Include and Lib directory. Depending, of course, on where you installed Borland, the paths will look something like:

C:\Program Files\Borland\CBuilder5\Include


C:\Program Files\Borland\CBuilder5\Lib

1. If it doesn't already exist, create a public rude include directory under Borland's include directory

>mkdir "C:\Program Files\Borland\CBuilder5\Include\rude"

2. Copy the header file (cgiparser.h) to the directory created above

>copy cgiparser.h C:\Program Files\Borland\CBuilder5\Include\rude

3. Copy the borland command line library (rudecgiparser.lib) to Borland's Lib Directory

>copy rudecgiparser.lib C:\Program Files\Borland\CBuilder5\Lib

4. Copy the borland CBuilder 5 library (rudecgiparser-cb.lib) to Borland's Lib Directory

>copy rudecgiparser-cb.lib C:\Program Files\Borland\CBuilder5\Lib

Microsoft Visual Studio Version 6

Note: Microsoft likes to move these configuration options to new menus and dialogs in each release of Visual C++, so you may need to look around a bit to find them in later versions.

After downloading the Visual Studio files, unzip them and move them to the following directories. (You need to make these directories if they don't already exist).

Copy cgiparser.h to C:\Program Files\Rude\include\rude\cgiparser.h
Copy ALL .lib files to C:\Program Files\Rude\lib\

  1. Global Install

    1. From the Tools menu, select Options (Figure 1)
    2. In the Options Dialogue box, select the "Directories" tab (Figure 2)
    3. Add C:\Program Files\Rude\include\rude to the list of Include Files directories (Figure 3)
    4. Select "Library Files" from the "Show directories for" pull-down menu (Figure 4)
    5. Add C:\Program Files\Rude\lib to the list of Library Files directories (Figure 5)



Figure 1

Figure 1


Figure 2

Figure 2


Figure 3

Figure 3



Figure 4


Figure 5

Figure 5

Quick -n- Dirty

If you do not have root priveleges or do not want to install the component, you can simply copy the header file (cgiparser.h) and the static library ( rudecgiparser.lib ) to the same directory as your source files. In your source-code files, you will need to include the header file using quotes (") instead of brackets ("<>").


#include "cgiparser.h"

instead of

#include <rude/cgiparser.h>