Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2022 12:22:37 -0800
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD 12.3-RELEASE amd64, Perl, and URI::Escape
Message-ID:  <844db642-cc03-e87c-9ceb-bf0b887f0f90@holgerdanske.com>

next in thread | raw e-mail | index | archive | help
freebsd-questions:

I have a computer:

2022-02-21 12:09:21 toor@f4 ~
# freebsd-version ; uname -a
12.3-RELEASE
FreeBSD f4.tracy.holgerdanske.com 12.3-RELEASE FreeBSD 12.3-RELEASE 
r371126 GENERIC  amd64


I have installed Perl:

2022-02-21 12:09:28 toor@f4 ~
# pkg query -g %o perl*
lang/perl5.32


When I try to use the Perl module URI::Escape, Perl complains that 
URI::Escape is not installed:

2022-02-21 12:09:41 toor@f4 ~
# perl -MURI::Escape -e 1
Can't locate URI/Escape.pm in @INC (you may need to install the 
URI::Escape module) (@INC contains: 
/usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl 
/usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32).
BEGIN failed--compilation aborted.


If I search for a FreeBSD package containing URI::Escape:

2022-02-21 12:12:01 toor@f4 ~
# pkg search URI | grep -i p5 | grep -i escape
p5-Any-URI-Escape-0.01_1       Load URI::Escape::XS preferentially over 
URI::Escape
p5-URI-Escape-JavaScript-0.04_1 Perl implementation of JavaScript's 
escape()/unescape() functions
p5-URI-Escape-XS-0.14          Drop-In replacement for URI::Escape in XS


And install what appears to be the closest matches:

2022-02-21 12:12:21 toor@f4 ~
# pkg install p5-Any-URI-Escape p5-URI-Escape-XS
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed


URI::Escape is not installed (as above):

2022-02-21 12:17:05 toor@f4 ~
# perl -MURI::Escape -e 1
Can't locate URI/Escape.pm in @INC (you may need to install the 
URI::Escape module) (@INC contains: 
/usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl 
/usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32).
BEGIN failed--compilation aborted.


How do I determine what FreeBSD package contains URI::Escape?

2022-02-21 12:14:55 toor@f4 ~
# pkg which Escape.pm
/root/Escape.pm was not found in the database

2022-02-21 12:16:53 toor@f4 ~
# pkg which URI/Escape.pm
/root/URI/Escape.pm was not found in the database


David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?844db642-cc03-e87c-9ceb-bf0b887f0f90>