unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gábor Boskovits" <boskovits@gmail.com>
To: Laura Lazzati <laura.lazzati.15@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>,
	Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: Re: [outreach] Help trying to create R package
Date: Sat, 13 Oct 2018 19:58:29 +0200	[thread overview]
Message-ID: <CAE4v=phhZsjfoFY1h4gFpjksXO+iaTBvfQD6tEoORwkgp=m+tw@mail.gmail.com> (raw)
In-Reply-To: <CAPNLzUMuG2iEjtHjuB=Qu+zfewqdzKuM1RSNx0xZkq5YTb1EBg@mail.gmail.com>

Hello Laura,

Laura Lazzati <laura.lazzati.15@gmail.com> ezt írta (időpont: 2018.
okt. 13., Szo, 15:37):
>
>  Hi!
> I'm creating a new thread so that it does not end up messy.
> I am reading about defining new packages, and since I have always
> installed R with apt, I am trying to do so with ./configure make make
> install to have it running on my VM, and then try to create the
> package and check if both works
>

It seems to me that there is some misunderstanding. R, the language itself is
packaged:
(see the variable r-with-test near the top of
gnu/packages/statistics.scm, if you are interested, but I would leave
that for later).
You should try packaging some R package, for example from CRAN.
See https://cran.r-project.org/web/packages/available_packages_by_name.html for
a package list. Please select something that is not already packaged. R packages
in guix are named like r-*. Once you have a candidate, you can use the
cran importer
to generate the package definition.

See it here: https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-import.html

> I am having trouble with the ./configure part. I find missing
> dependencies, that I try to solve using guix package -i PACKAGE
>
> I am running
>
>  ./configure --with-readline=no --with-x=no
>
> First I faced not having gfortran, so I run
> guix install -i fortran
> ran ./configure again, and ended up installing
> zlib and bzlip2 (both with guix package)
> Now, after running ./configure, I get the error:
> configure: error: "liblzma library and headers are required"
> but I cannot find that with guix package.
> Any Ideas about what I should do?
>

Most probably what you are looking for is provided by package xz, but
as I said, you don't need this.

> besides, I don't  know why I still get every time I run guix package
> -i, for instance:
> The following package will be installed:
>    bzip2    1.0.6    /gnu/store/rw1ilvs76rf2p4p0bi1fx3bffprwwb7g-bzip2-1.0.6
>
> substitute: guile: warning: failed to install locale
> substitute: hint: Consider installing the `glibc-utf8-locales' or
> `glibc-locales' package and
> substitute: defining `GUIX_LOCPATH', along these lines:
> substitute:
> substitute:      guix package -i glibc-utf8-locales
> substitute:      export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
> substitute:
> substitute: See the "Application Setup" section in the manual, for more info.
>
> When I run guix package -I I get:
> hello    2.10    out    /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10
> recutils    1.7    out
> /gnu/store/6h02na6yz9smc7c7g62ss03kp4yhqpc1-recutils-1.7
> glibc-locales    2.27    out
> /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
> glibc-utf8-locales    2.27    out
> /gnu/store/mbns811n696fl7g060cx6jqjh75mlj8i-glibc-utf8-locales-2.27
> gfortran    7.3.0    out
> /gnu/store/mw65pcca7x7mmq8v2r427f3plrahhyxl-gfortran-7.3.0
> zlib    1.2.11    out    /gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11
> bzip2    1.0.6    out    /gnu/store/rw1ilvs76rf2p4p0bi1fx3bffprwwb7g-bzip2-1.0.6
>
> And even at the bottom of my .bashrc I have:
>
>   export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
>     export PATH="/home/laura/.guix-profile/bin${PATH:+:}$PATH"
>     export CPATH="/home/laura/.guix-profile/include${CPATH:+:}$CPATH"
>     export LIBRARY_PATH="/home/laura/.guix-profile/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
>
> Could you help me clarify this?
>

I will have a look at this, and get back to you, but this is not
critical ,you can go on with packaging.

> -Recall I am running everything under an Ubuntu distro -
> Regards,
> Laura

  reply	other threads:[~2018-10-13 17:58 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-13 13:36 [outreach] Help trying to create R package Laura Lazzati
2018-10-13 17:58 ` Gábor Boskovits [this message]
2018-10-13 18:25 ` Catonano
2018-10-14  0:40   ` Laura Lazzati
2018-10-15 22:47     ` Laura Lazzati
2018-10-16  5:44       ` Björn Höfling
2018-10-16  6:23         ` Björn Höfling
2018-10-16  8:28           ` Gábor Boskovits
2018-10-16 13:13             ` Laura Lazzati
2018-10-16 22:18               ` Björn Höfling
2018-10-17  1:01                 ` Laura Lazzati
2018-10-17  7:17                   ` Björn Höfling
2018-10-17  8:21                     ` Gábor Boskovits
2018-10-17 14:27                       ` Laura Lazzati
2018-10-17 16:38                         ` Laura Lazzati
2018-10-17 17:13                           ` Clément Lassieur
2018-10-17 17:50                             ` Laura Lazzati
2018-10-18  1:36                     ` Laura Lazzati
2018-10-18  6:54                       ` Björn Höfling
2018-10-18  7:50                         ` Gábor Boskovits
2018-10-18 14:49                           ` Laura Lazzati
2018-10-18 15:15                             ` Gábor Boskovits
2018-10-18 15:25                               ` Laura Lazzati
2018-10-18 15:40                                 ` Gábor Boskovits
2018-10-18 16:18                                   ` Laura Lazzati
2018-10-18 17:26                                     ` Laura Lazzati
2018-10-18 17:41                                       ` Björn Höfling
2018-10-18 18:14                             ` Ricardo Wurmus
2018-10-18 18:17                               ` Laura Lazzati
2018-10-19  1:05                                 ` Laura Lazzati
2018-10-19  3:47                                   ` Laura Lazzati
2018-10-19  6:21                                     ` Gábor Boskovits
2018-10-19  7:09                                   ` Ricardo Wurmus
2018-10-19  7:29                                     ` Gábor Boskovits
2018-10-19 18:37                                       ` Laura Lazzati
2018-10-19 18:45                                         ` Gábor Boskovits
2018-10-19 20:35                                           ` Laura Lazzati
2018-10-19 21:25                                             ` Gábor Boskovits
2018-10-19 23:10                                               ` Laura Lazzati
2018-10-20  6:08                                                 ` Björn Höfling
2018-10-20  6:34                                                   ` Gábor Boskovits
2018-10-20 13:47                                                     ` Laura Lazzati
2018-10-20 14:01                                                   ` Ludovic Courtès
2018-11-02 19:44           ` Laura Lazzati
2018-11-02 20:12             ` Gábor Boskovits
2018-11-02 20:17               ` Laura Lazzati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAE4v=phhZsjfoFY1h4gFpjksXO+iaTBvfQD6tEoORwkgp=m+tw@mail.gmail.com' \
    --to=boskovits@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=laura.lazzati.15@gmail.com \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).