From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: [outreach] Help trying to create R package Date: Sat, 13 Oct 2018 19:58:29 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBOBY-00011v-5Q for guix-devel@gnu.org; Sat, 13 Oct 2018 13:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBOBX-00071f-11 for guix-devel@gnu.org; Sat, 13 Oct 2018 13:58:44 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Laura Lazzati Cc: Guix-devel , Ricardo Wurmus Hello Laura, Laura Lazzati ezt =C3=ADrta (id=C5=91pont: 201= 8. 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 pac= kages 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=3Dno --with-x=3Dno > > 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=3D"$HOME/.guix-profile/lib/locale" > substitute: > substitute: See the "Application Setup" section in the manual, for more i= nfo. > > 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-bzip= 2-1.0.6 > > And even at the bottom of my .bashrc I have: > > export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale" > export PATH=3D"/home/laura/.guix-profile/bin${PATH:+:}$PATH" > export CPATH=3D"/home/laura/.guix-profile/include${CPATH:+:}$CPATH" > export LIBRARY_PATH=3D"/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