Installing Curses Sharp on Linux
This page contains instructions for building Curses Sharp in Unix-like systems. The build process has been tested in Ubuntu 9.04 and FreeBSD 7.2.
- Subversion - if you intend to build Curses Sharp from SVN repository. If you use the source code package, you don't need Subversion.
- autoconf/automake/libtool - only if you are building from SVN. You don't need these tools if you use the source code package.
- Standard development tools - a C compiler (e.g. GCC) and GNU make (gmake).
- Ncurses library and headers (development files) - typically this package is called ncurses-dev.
- Mono - the .NET runtime and development framework
- pkg-config - typically required by Mono, but make sure it's installed
1. Getting Curses Sharp
There are two ways to get the source code:
- checking it out from the SVN repository
- downloading the source code package
The following section describes the former case. If you downloaded the source code package, extract it and you may skip to step 4.
2. SVN checkout
Execute the following command:
svn checkout https://curses-sharp.svn.sourceforge.net/svnroot/curses-sharp/trunk curses-sharp
You may substitute the final curses-sharp for any other directory of your liking.
In order to proceed with the build, you will have to create the configure script. Cd into the directory containing Curses Sharp sources and execute the following command:
In the top source directory execute the command:
By default Curses Sharp is installed in /usr/local. To change the target directory, you need to call:
You can also use other options. For a complete list execute:
After you executed configure, run (in the same directory):
To compile the source code.
Execute the command:
This will install Curses Sharp. Make sure you have appropriate privileges.
By default Curses Sharp will install a few demonstration programs. At this time, these are: FireworkDemo and RainDemo. You can try running the demos to check if Curses Sharp works.