Rudiments should build on relatively modern versions of Linux, Unix or Unix-like systems including Solaris, FreeBSD, NetBSD, OpenBSD, Mac OS X, Haiku and Cygwin.
x86 and x86_64 platforms are supported, as are non-x86 architectures such as ARM, Sparc, Mips, PPC and others.
uClibc/linux-based systems are also supported.
Most of Rudiments builds natively on Windows using Visual Studio. Everything isn't implemented yet, but there is quite a bit that does work.
PrerequisitesTo build on a unix-like platform, Rudiments requires a working compiler toolchain and the make utility.
If OpenSSL and/or the Perl Compatible Regular Expression library are present on a unix-like platform then the build process will detect them and include support for them but they are not required.
To build natively on Windows, you need to install Microsoft Visual Studio or Microsoft Visual Studio Express. Versions 2005 and greater should work.
OpenSSL and the Perl Compatible Regular Expressions library are not currently supported on Windows.
You can download the most current source distribution of Rudiments from http://rudiments.sourceforge.net.
For Linux, Unix or Cygwin installations, download the tar.gz file.
Extracting RudimentsTo extract the distribution on Unix or Linux, move the file to a location on your machine that you have read/write access to and execute the following commands:
gunzip rudiments-X.XX.tar.gz
tar xf rudiments-X.XX.tar
(Where X.XX is replaced with the version of Rudiments that you downloaded.)
This will create a rudiments-X.XX directory.
Building RudimentsTo build Rudiments, navigate to the directory that was created by the extraction and execute the following commands:
configure
make
The configure script takes lots of command line options, most of which tell it which features to enable or disable or where to find prerequisite software in case any of it is installed in non-standard locations. It also takes the --prefix option in case you want to install it somewhere other than /usr/local/firstworks. For example:
configure --prefix=/usr/local
This invocation would cause the libraries to be installed in /usr/local/lib, the header files in /usr/local/include, the binaries and scripts to be installed in /usr/local/bin, etc.
There are also options for using cross-compilers and enabling debug and profiling. To see the full list of available options, run:
configure --help
There are several things to note when using Cygwin.
By default, on Unix or Linux, everything is installed under /usr/local/firstworks by default. You should either create that directory and give yourself full access permissions or install as root.
To install Rudiments run:
make install
To uninstall Rudiments run:
make uninstall
You can download the most current source distribution of Rudiments from http://rudiments.sourceforge.net.
For a native Windows installation, download the zip file.
Extracting RudimentsTo extract the distribution, move the zip file to your desktop or a location on your machine that you have read/write access, right click on the file and select "Extract All".
This will create a rudiments-X.XX directory where X.XX is replaced with the rudiments version number.
Building RudimentsTo build Rudiments on Windows, open the Visual Studio Command Prompt.
To build a 32-bit version of Rudiments, open the Visual Studio Command Prompt for x86. To build a 64-bit version of Rudiments, open the Visual Studio Command Prompt for x64.
Navigate to the directory that was created when Rudiments was extracted, and execute the following commands:
cscript /nologo configure.vbsInstalling Rudiments
nmake
By default, on Windows, everything is installed under C:\Program Files\Firstworks. You should either create that directory and give yourself full access permissions or install as Administrator.
To install Rudiments run:
nmake install
To uninstall Rudiments run:
nmake uninstall