unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Jone <yeger9@gmail.com>
To: help-guix <help-guix@gnu.org>
Subject: Installing Perl module with C library dependencies
Date: Fri, 11 Oct 2019 01:53:04 +0000	[thread overview]
Message-ID: <CAH6o9V89SLVDSWw2=7+M1OcykydVF9Y9DoCLaES1yEE6=cfrtA@mail.gmail.com> (raw)

Hi community!
My problem:
❯ cpanm -i Term::ReadLine::Gnu
  Configure failed... See build.log for details.
      Could not find neither libtermcap, libtinfo, libncurses, or libcurses.
❯ guix package -p /run/current-system/profile -I | grep ncurses
   ncurses    6.1    out
/gnu/store/4h03mp5nggsblscs6j0n7s6sbpfy6kxh-ncurses-6.1

I do not know what to do in this case.
Well.. maybe build a package? Ok:

(define-module (gnu packages perl)
  #:use-module (srfi srfi-1)
  #:use-module (guix licenses)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system perl)
  #:use-module (gnu packages base)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages less)
  #:use-module (gnu packages perl-check)
  #:use-module (gnu packages perl-compression)
  #:use-module (gnu packages perl-web)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages textutils))
(define-public perl-term-readline-gnu
  (package
   (name "perl-term-readline-gnu")
   (version "1.36")
   (source
    (origin
     (method url-fetch)
     (uri (string-append
           "mirror://cpan/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-"
           version
           ".tar.gz"))
     (sha256
      (base32
       "09b9mcmp09kdfh5jaqdr528yny8746hvn3f185aqd6rw06jgf24s"))))
   (build-system perl-build-system)
   (home-page "https://metacpan.org/release/Term-ReadLine-Gnu")
   (synopsis "Perl extension for the GNU Readline/History Library")
   (description "@code{Term::ReadLine::Gnu} extension for the GNU
Readline/History Library.")
   (license (package-license perl))))

❯ guix package -f  perl-term-readline-gnu.scm
   perl-term-readline-gnu.scm:25:4: error: perl: unbound variable
   hint: Did you forget a `use-modules' form?

Hmm, there's something wrong here. But section 'define-module' is a from
perl.scm. And what to do?

             reply	other threads:[~2019-10-10 22:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-11  1:53 Jone [this message]
2019-10-11  8:33 ` Installing Perl module with C library dependencies Ludovic Courtès

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='CAH6o9V89SLVDSWw2=7+M1OcykydVF9Y9DoCLaES1yEE6=cfrtA@mail.gmail.com' \
    --to=yeger9@gmail.com \
    --cc=help-guix@gnu.org \
    /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.
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).