Changes between Version 20 and Version 21 of howto/cpan2port


Ignore:
Timestamp:
Mar 1, 2019, 10:02:55 PM (5 years ago)
Author:
hyperbole (hyperbole)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/cpan2port

    v20 v21  
    55 * Audience: Perl users
    66 * Requires additional Perl modules (available as MacPorts perl ports: see step [#Step4:Getcpan2port Get cpan2port])
     7 * I assume you are building your modules in a standard location, so commands that will write files in standard locations are preceded with 'sudu'.
     8 *   If you are building file in directories you own, leave off the 'sudo' when using these commands.
     9
    710
    811
     
    1619You can either step through the questions, or let it auto-configure.
    1720{{{
    18 $ cpan
     21$ sudo cpan
    1922CPAN is the world-wide archive of perl resources. It consists of about
    2023[...]
     
    3437   CPAN_USERID  GBARR (Graham Barr <gbarr@pobox.com>)
    3538   CPAN_VERSION 2.30
    36    CPAN_FILE    G/GB/GBARR/TimeDate-1.20.tar.gz
     39   **CPAN_FILE    G/GB/GBARR/TimeDate-1.20.tar.gz**
    3740   DSLIP_STATUS Rdpf? (released,developer,perl,functions,)
    3841   MANPAGE      Date::Parse - Parse date strings into time values
     
    117120
    118121{{{
    119 $ port build
     122$ sudo port build
    120123Warning: MacPorts running without privileges. You may be unable to complete certain actions (e.g. install).
    121124--->  Computing dependencies for p5-timedate
     
    130133--->  Building p5-timedate
    131134}}}
     135
     136If you get an error similar to:
     137{{{ Error: p5-timedate depends on p5.28-timedate }}}
     138when trying to build, try the following command
     139{{{ sudo port build subport=p5.28-timedate }}}
    132140
    133141=== Step 8: '''Fix the Portfile''' ===
     
    163171{{{
    164172$ cd ~/macports/perl/p5-timedate
    165 $ port build
     173$ sudo port build
    166174}}}
    167175