guix-devel
[Top][All Lists]
Advanced

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

Re: [outreach] Help trying to create R package


From: Gábor Boskovits
Subject: Re: [outreach] Help trying to create R package
Date: Sat, 13 Oct 2018 19:58:29 +0200

Hello Laura,

Laura Lazzati <address@hidden> 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 via email to

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