[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Guile compilation on NetBSD mini-HOWTO

From: Masao Uebayashi
Subject: FYI: Guile compilation on NetBSD mini-HOWTO
Date: Fri, 27 Jul 2001 11:21:40 +0900

FWIW, but here comes a small memo about how to compile CVS guile on

1) Install latest Libtool (devel/libtool) and Readline
(devel/readline) as Pkgsrcs.  You may also need Gmake (devel/gmake).

You can test if these Pkgsrcs are installed correctly by a command
'pkg_info libtool' and 'pkg_info readline'

2) Install Autoconf 2.50 and Automake 1.4-p2.

These sources are found on popular GNU mirrors.  And installation is
easy.  But NetBSD Pkgsrc's Autoconf and Automake are not yet updated
to these latest version, so you have to install these separately from
Pkgsrc.  I'm installing these of two into /usr/local and I guess you
also choose this choice unless you have some special reasons.

3) Copy /usr/pkg/share/aclocal/libtool.m4 into /usr/local/share/aclocal.

Not-pkgsrc Autocnf ususally doesn't look into Pkgsrc's directories
(even doesn't know the existence).  So as to let Autoconf know libtool
macros, we have to do this.

4) Fetch CVS guile source.

I personally think that a branch for the upcoming release
(branch_release-1-6) is more stable and user friendly.  The following
command can get branch_release-1-6 branch.  (For more detail, please
refer to CVS's manuals.)

  % cvs -d :pserver:address@hidden:/cvsroot/guile \
      co -r branch_release-1-6 -P guile/guile-core

5) Run

Change directory to guile/guile-core and type simply './'.
If you get some errors like ``Hey, this macro doesn't seem to be
defined'', make sure that Autoconf has a .m4 file where the macro

6) Run configure.

GNU's configure script by default doesn't know NetBSD's Pkgsrc
directories, you also have to tell configure its existence so that
Pkgsrc libraries (e.g. Readline) can be found by the script.  (Such
environmental variables are also defined as CONFIGURE_ENV and used
when Pkgsrc packages are compiled.  See (cd /usr/pkgsrc/foo/bar; make

  % env \
      CPPFLAGS=-I/usr/pkg/include \
      "LDFLAGS= -Wl,-R/usr/local/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib" \
      LIBTOOL=/usr/pkg/bin/libtool \
      M4=/usr/bin/m4 \
      YACC=yacc \
    sh configure

7) Finally do make.

If /usr/bin/make fails, try /usr/pkg/bin/gmake.

You probably get an error or two of comilation failure of Texinfo
documents because of absent of version.texi, but this error is very
trivial and you can find that you already get a working guile binary!


---                                                       ____________
 |_  -|--|-                                              |_NO_SMOKING_|
_|__ /|\/|\                                                 |      |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]