Hi!

I am new in using linux. I have just installed Linux Mandrake 7.0 and now
i'd like to install a Gnu pascal compiler but I don't manage to do it.

>Installing GNU Pascal
>*********************
>
>   The preferred way to distribute GNU software is distribution of the
>source code.  However, it can be a non-trivial exercise to build GNU
>Pascal on some non-UNIX systems, so we also provide ready-to-run
>binaries for a number of platforms. See *Note binary distributions:: how
>to install a binary distribution.
>
>   GPC is based on GNU CC; you will need the GCC sources to build it. It
>must be the same version as the one GPC is implemented with. Although
>you need GCC to build the GNU Pascal compiler, you don't need GCC to
>compile Pascal programs once GNU Pascal is installed. Because GNU Pascal
>shares its backend with GNU CC, it should run on any system supported by
>GNU CC. A full list of platforms supported by GNU CC can be found in
>*Note the GCC installation instructions: (gcc)Installation.
>
>   Here is the generic procedure for installing GNU Pascal on a UNIX
>system.  See *Note compilation notes:: for extra information needed to
>install GPC on certain platforms.
>
>  1. Unpack the source distributions.
>
>     From a directory of your choice (e.g. `/usr/local/src'), unpack
>     the GNU CC and GNU Pascal source distributions.  This will create
>     separate subdirectories for GCC and GPC.
>
>     `cd' to the GPC directory (`/usr/local/src/gpc' in the example
>     above) and move the contents (a subdirectory `p') to the GCC
>     directory (for instance `usr/local/src/gcc-2.8.1').
>
>     Next, go to the GCC source directory and apply the GCC patch
>     required by GNU Pascal:
>
>          % patch -s -p1 < p/diffs/gcc-2.8.1.diff

I first have had a problem at this step because i had to install patch. Now,
it is ok.

>     Note 1: If you omit this step, `configure' (see below) will prompt
>     you for doing this automatically.
>
>     Note 2: In the example above, GCC version 2.8.1 is assumed.  If
>     your version of GCC is other than 2.8.1, you have to get and apply
>     the appropriate patch.  If you run the patch automatically from
>     `configure', it will detect and work with some versions of EGCS.
>
>     Note 3: All changes to GCC are surrounded by `#ifdef GPC ..
>     #endif', so they should not interfere when you build a C compiler
>    from this source tree.
>
>     It is possible, though not required, to build the compiler in a
>     directory other than the one containing the sources.  (If you do
>     that, you do not need to write into the GCC source directory and
>     can build GPC for more than one platform from the same source
>    tree.)  In that case, you need a `make' that understands the VPATH
>     variable.  GNU make does, although at least GNU make version 3.71
>     has a bug in the way it treats VPATH.  GNU make version 3.75 is
>     known to work.
>
>     If you have built GNU Pascal previously in the same directory for a
>     different target machine, do `make distclean' to delete all files
>     that might be invalid.  One of the files this deletes is
>     `Makefile'; if `make distclean' complains that `Makefile' does not
>     exist, it probably means that the directory is already suitably
>     clean.
>
>  2. Configuring and building GNU CC GNU Pascal is automatically
>     configured with GNU CC.  Configuration of GNU CC is treated in
>     depth in *Note the GCC installation instructions:
>     (gcc)Installation.
>
>     Chdir to the GCC object directory.  (This can be a directory of
>     your choice, including the GCC source directory.)  From there, run
>     the `configure' script in the GCC source directory.  If both
>     directories are the same, the command
>
>          % ./configure
>
>     is sufficient to configure GCC in most cases.  If they are
>     different, something like
>
>          % ../gcc-2.8.1/configure
>
>     will do the job.  This creates all the necessary config files,
>     links and Makefile in the GCC object directory.

Now, my trouble is here. When I do this, the following message appear:
"checking cache./config.cache
checking host system type... configure : error : can not guess host type;
you must specify one"

What does it mean?
Is someone can help me?

thanks a lot in advance,

Nathalie Jarosz


Reply via email to