The install command is the installation program for SmartEiffel
The GNU Eiffel Compiler.
The install.e source code as well as the generated C code install.c are in the SmartEiffel directory.
The very first step in installing SmartEiffel is to unpack the SmartEiffel directory somewhere on disk. The second step (not mandatory) is to set the SmartEiffel environment variable to the full path leading to the SmartEiffel/sys/system.se file. The last step is to compile the install.c file (it is pre-compiled for Windows) and to run it from the SmartEiffel directory.
For Unix, Elate and OpenVMS people, a Makefile is also provided, that does just that. Look at the comments in the Makefile itself for details.
The install command will do the rest of the work and will try to report possible problems. See the examples below.
See also at the end of the page for more
details on how to use the interactive installer.
As an example, we assume below that we want to install SmartEiffel in
the directory /foo/SmartEiffel/.
If you are using bash, add the following two lines to your
If you are using csh or tcsh, add the following two lines to your .cshrc file:
Don't forget to open a new terminal window in order to take into account the new settings of the SmartEiffel and PATH variables. Then, in this new terminal window, just 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 SmartEiffel itself.
If you want to use the menus (as explained below), you should consider typing make interactive instead of just make. If your system has no gcc installed, compile install.c yourself and run it.
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, we 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 SmartEiffel in the C:\SmartEiffel directory.
The last step is to open an explorer window, go to C:\SmartEiffel, and double-click INSTALL.EXE.
You now go along the menu options (as described below), then you 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 SmartEiffel itself.
For elate and OpenVMS systems, you can use make elate or
The installer helps you install SmartEiffel in the smartest way possible: yours :)
Except when using the plain make on Unix/Linux (which just picks default options and goes ahead), the installer asks help from you to install SmartEiffel. Of course, in many cases, the installer is Smart enough to choose good default values; those values are but defaults, though. It's up to you to tune them, or go along with them.
The install process is split in six phases, each of which is accessed via an entry in the main menu. The first three concern tuning the configuration; the rest deals with the installation itself.
Note that when a phase completes gracefully, the default option is to do the next one. Of course, you can skip phases, or go back to some, at your convenience (indeed, it's a menu) :) Also note that if the installer successfully computes acceptable default values, the first default value will be to verify the configuration (phase 3).
Furthermore, if SmartEiffel finds a valid configuration file (either at a default place or because you provided it via the SmartEiffel environment variable), the first default value will be to start the installation! You've been warned...
This phase can be automatically computed.
In that first phase, you are asked to provide:
This phase can be automatically computed.
In that menu you can add and modify C modes. Removing them are not allowed; be careful if you add a new one. Default C modes are provided, one for each assertion level.
This phase is skipped by default if the previous two were automatically computed.
In that phase, all the options you chose are displayed again, as a verification.
In that phase, the configuration file is written to the place you chose in phase one.
This is the most important phase! Indeed, now the installer can compile the SmartEiffel tools.
Just before starting the compilation, you are asked with which C mode the tools should be compiled. It is not always useful, except if you're in a hurry (not a good idea, that) :)
If you successfully installed SmartEiffel, then you can exit the installer and enjoy your new Eiffel compiler.
Copyright © Dominique COLNET and Suzanne COLLIN - <SmartEiffel@loria.fr>
Last modified: Sun Nov 28 06:50:51 CET 2004