|
Usage |
install [-interactive] [-debug] [-cc <c_compiler>] [-skip_c_compilation]
The install command is the installation program for SmallEiffel
The GNU Eiffel Compiler.
This command (class install.e) is written entirely in Eiffel
and is the one recommended for installing SmallEiffel The GNU Eiffel Compiler.
The install.e source code as well as the generated C code install.c are in the SmallEiffel directory.
The very first step in installing SmallEiffel is to unpack the SmallEiffel directory somewhere on disk. The second step is to set the "SmallEiffel" environment variable to the full path leading to the "SmallEiffel/sys/system.se" file. The last step is to compile the install.c file and to run it from the SmallEiffel directory.
The install command will do the rest of the work and will try to report
possible problems.
See the examples below.
Example for UNIX |
As an example, we assume below that we want to install SmallEiffel in
the directory /foo/SmallEiffel/.
If you are using bash, add the following two lines to your
.bashrc file:
If you are using csh or tcsh, add the following two lines to your .cshrc file:export SmallEiffel=/foo/SmallEiffel/sys/system.se
export PATH=/foo/SmallEiffel/bin:$PATH
Don't forget to open a new terminal window in order to take into account the new settings of the SmallEiffel and PATH variables. Then, in this new terminal window, just type the following commands:setenv SmallEiffel /foo/SmallEiffel/sys/system.se
setenv PATH /foo/SmallEiffel/bin:$PATH
You now just have to wait for the compiler installation to complete. Actually, it may take some time because all of the tools are recompiled from scratch using the Eiffel source code of SmallEiffel itself.cd /foo
gunzip se.tgz
tar xvf se.tar
cd SmallEiffel
make
If you want to select manually the C compiler to be used (the default under UNIX is gcc), you should consider typing "make -interactive" instead of just "make" (see the description of the -interactive option below).
Example for Windows |
The first step under Windows is to get a C compiler working on your computer. If you don't already have a C compiler installed, I recommend the LCC-Win32 compiler (a free C compiler system for Windows by Jacob Navia, http://www.cs.virginia.edu/~lcc-win32/ or http://www.q-software-solutions.com/lccwin32/).
At this point, it is assumed you have a C compiler installed. Further, we assume below that we want to install SmallEiffel in the C:\SmallEiffel directory. The most difficult step now is to set the "SmallEiffel" variable to the appropriate value, which is actually: "C:\SmallEiffel\sys\system.se". Setting environment variables is different from one Windows system to another. For example, on Windows NT you have to look in the system windows to change environment variables. On Windows 95, you have to add the following two lines to your AUTOEXEC.BAT file:
set SmallEiffel=C:\SmallEiffel\sys\system.se
set PATH=C:\SmallEiffel\bin:%PATH%
The last step is to open a DOS command window and to type the following commands:
You now just have to wait for the compiler installation to complete. Actually, it may take some time because all of the tools are recompiled from scratch using the Eiffel source code of SmallEiffel itself.C:
cd SmallEiffel
install.exe
Example for other systems |
On other systems, the very first step for installation is to compile the install.c file in order to run it.
Options |