- Timestamp:
- 04/22/2006 09:12:34 PM (18 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 1e2e591
- Parents:
- 7112a9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/perl-modules.xml
r7112a9d rdbaa33d 1224 1224 <title>(Alternate) Auto Installation of Perl Modules.</title> 1225 1225 1226 <para>There is an alternate way of installing the modules using 1227 < application>Perl</application>'s built-in <command>install</command>1228 command . The command automatically downloads the source from the CPAN1229 archive, extracts it, runs the commands mentioned above, and removes the1230 build source tree. You may still need to install dependent library1231 packages before running the automated installation method.</para>1232 1233 <para>The first time you run this command, you'll be prompted to enter some 1234 information regarding download locations and methods. This information is1235 retained in files located in <filename class='directory'>~/.cpan</filename>.1236 Start the perl shell with the following command as the1237 < systemitem class="username">root</systemitem> user:</para>1238 1239 <screen role="root"><userinput>perl -MCPAN -e shell</userinput></screen> 1240 1241 < para>Each module may now be installed from this shell with the1242 command:</para>1226 <para>There is an alternate way of installing the modules using the 1227 <command>cpan</command> shell <command>install</command> command. The 1228 command automatically downloads the source from the CPAN archive, extracts 1229 it, runs the compilation, testing and installation commands mentioned 1230 above, and removes the build source tree. You may still need to install 1231 dependent library packages before running the automated installation 1232 method.</para> 1233 1234 <para>The first time you run <command>cpan</command>, you'll be prompted 1235 to enter some information regarding download locations and methods. This 1236 information is retained in files located in 1237 <filename class='directory'>~/.cpan</filename>. Start the 1238 <command>cpan</command> shell by issuing '<command>cpan</command>' as the 1239 <systemitem class="username">root</systemitem> user. Any module may now be 1240 installed from the 1241 <emphasis role='underlined'><prompt>cpan> </prompt></emphasis> 1242 prompt with the command:</para> 1243 1243 1244 1244 <screen role="root"><userinput>install <replaceable><Module::Name></replaceable></userinput></screen> 1245 1245 1246 <para>For additional commands and help, type <command>help</command>.</para> 1246 <para>For additional commands and help, issue '<command>help</command>' 1247 from the 1248 <emphasis role='underlined'><prompt>cpan> </prompt></emphasis> 1249 prompt.</para> 1247 1250 1248 1251 <para>Alternatively, for scripted or non-interactive installations, use the 1249 1252 following syntax as the 1250 <systemitem class="username">root</systemitem> user:</para> 1251 1252 <screen role="root"><userinput>perl -MCPAN -e 'install <replaceable><Module::Name></replaceable>'</userinput></screen> 1253 <systemitem class="username">root</systemitem> user to install one or more 1254 modules:</para> 1255 1256 <screen role="root"><userinput>cpan -i <replaceable><Module1::Name> <Module2::Name></replaceable></userinput></screen> 1257 1258 <para>Review the <filename>cpan.1</filename> man page for additional 1259 parameters you can pass to <command>cpan</command> on the command 1260 line.</para> 1253 1261 1254 1262 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.