help-guix
[Top][All Lists]
Advanced

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

Re: Installing Perl module with C library dependencies


From: Ludovic Courtès
Subject: Re: Installing Perl module with C library dependencies
Date: Fri, 11 Oct 2019 10:33:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello Jone,

Jone <address@hidden> skribis:

> 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:

In general building and using a Guix package is preferable.  :-)

> (define-module (gnu packages perl)

You cannot call your module this way.  If you do, it will shadow the
“real” (gnu packages perl), which provides the variable ‘perl’ for the
Perl package.

Also, you need to add ‘perl-term-readline-gnu’ at the end of the file so
that it actually returns the package you’ve defined, which will then
allow “guix package -p perl-term-readline-gnu.scm” to work.

HTH!

Ludo’.



reply via email to

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