unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* getting started with guile dev
@ 2016-06-22  4:38 Tobin Harding
  2016-06-22  8:06 ` Andy Wingo
  2016-06-22 10:45 ` Taylan Ulrich Bayırlı/Kammer
  0 siblings, 2 replies; 3+ messages in thread
From: Tobin Harding @ 2016-06-22  4:38 UTC (permalink / raw)
  To: guile-devel

I am attempting to get started on some guile hacks. I am running Emacs, Geiser,
Guile (2.0.11) for Scheme development.

I have cloned the git repository for Guile (current commit d545e45). I can configure
and build this tree. I can run the executable

$ GUILE_TREE/libguile/guile --version
guile (GNU Guile) 2.1.3.11-d545e-dirty
Copyright (C) 2016 Free Software Foundation, Inc.

My question is this, please, how to replace the system version with the fresh
build.

make install does not achieve this.

Also I tried running
$ GUILE_TREE/libguile/guile -L $GUILE_TREE/modules/

but that does not seem to load the new modules.

thanks,
Tobin Harding.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: getting started with guile dev
  2016-06-22  4:38 getting started with guile dev Tobin Harding
@ 2016-06-22  8:06 ` Andy Wingo
  2016-06-22 10:45 ` Taylan Ulrich Bayırlı/Kammer
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Wingo @ 2016-06-22  8:06 UTC (permalink / raw)
  To: Tobin Harding; +Cc: guile-devel

On Wed 22 Jun 2016 06:38, Tobin Harding <me@tobin.cc> writes:

> I am attempting to get started on some guile hacks. I am running Emacs, Geiser,
> Guile (2.0.11) for Scheme development.
>
> I have cloned the git repository for Guile (current commit d545e45). I can configure
> and build this tree. I can run the executable
>
> $ GUILE_TREE/libguile/guile --version
> guile (GNU Guile) 2.1.3.11-d545e-dirty
> Copyright (C) 2016 Free Software Foundation, Inc.

Hi,

This is the development branch.  Probably if you are looking at building
on top of Guile you want to check out the stable-2.0 branch.

> My question is this, please, how to replace the system version with the fresh
> build.
>
> make install does not achieve this.
>
> Also I tried running
> $ GUILE_TREE/libguile/guile -L $GUILE_TREE/modules/
>
> but that does not seem to load the new modules.

To run Guile uninstalled, you run meta/guile from the build directory.

Cheers,

Andy



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: getting started with guile dev
  2016-06-22  4:38 getting started with guile dev Tobin Harding
  2016-06-22  8:06 ` Andy Wingo
@ 2016-06-22 10:45 ` Taylan Ulrich Bayırlı/Kammer
  1 sibling, 0 replies; 3+ messages in thread
From: Taylan Ulrich Bayırlı/Kammer @ 2016-06-22 10:45 UTC (permalink / raw)
  To: Tobin Harding; +Cc: guile-devel

Tobin Harding <me@tobin.cc> writes:

> My question is this, please, how to replace the system version with
> the fresh build.

Hi Tobin.  You can run 'sudo make install' in the source directory to
install the package.  If you haven't specified an explicit value for
$prefix when running ./configure, it will be installed in /usr/local, so
you will need to export e.g. PATH=/usr/local/bin:... and possibly some
more environment variables to be able to use it.

To uninstall again, you need to run 'sudo make uninstall' in the source
directory.  (If you delete the source directory, or clean it and thus
lose the Makefile, you won't be able to run that command.  Though
rebuilding the same version of Guile with the same ./configure options
should result in the same Makefile, so you can then run 'make uninstall'
again.)


Alternatively: this may seem overkill, but one way to get fresh versions
of Guile 2.1 and many other tools is to use GNU Guix, which can be
seamlessly installed as an extra package manager on top an existing
distro (it will *not* interfere with the existing system):

1. Follow the instructions at:
http://www.gnu.org/software/guix/manual/html_node/Binary-Installation.html

2. Install packages via the command "guix package -i foo bar baz ..."

3. At the end of the "guix package -i ..." command, you will be told
what environment variables you need to export for to be able to use
those packages seamlessly.

Alternatively to #3: you can run "guix environment --ad-hoc foo bar baz"
to launch a shell with environment variables already set up so that the
packages foo, bar, and baz are available.  (They will be downloaded or
locally built transparently.)

BTW the Guile 2.1 package is called "guile-next" in Guix.

Hope that helps,
Taylan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-22 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-22  4:38 getting started with guile dev Tobin Harding
2016-06-22  8:06 ` Andy Wingo
2016-06-22 10:45 ` Taylan Ulrich Bayırlı/Kammer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).