Advertisement
Guest User

Untitled

a guest
Dec 24th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. [dan@localhost ~]$ curl -LO http://xrl.us/perlbrew
  2. % Total % Received % Xferd Average Speed Time Time Time Current
  3. Dload Upload Total Spent Left Speed
  4. 100 90796 100 90796 0 0 35110 0 0:00:02 0:00:02 --:--:-- 300k
  5. [dan@localhost ~]$ chmod +x perlbrew
  6. [dan@localhost ~]$ ./perlbrew install
  7.  
  8. install [options] perl-<version>
  9. install [options] <version>
  10. Build and install the given version of perl.
  11.  
  12. Version numbers usually look like "5.x.xx", or "perl-5.xx.x-RCx" for
  13. release candidates.
  14.  
  15. The specified perl is downloaded from the offical CPAN website or
  16. from the mirror site configured before.
  17.  
  18. To configure mirror site, invoke `mirror` command.
  19.  
  20. install [options] perl-blead
  21. install [options] blead
  22. A special way to install the blead version of perl, which is
  23. downloaded from this specific URL regardless of mirror settings:
  24.  
  25. http://perl5.git.perl.org/perl.git/snapshot/blead.tar.gz
  26.  
  27. install [options] /path/to/perl/git/checkout/dir
  28. Build and install from the given git checkout dir.
  29.  
  30. install [options] /path/to/perl-5.14.0.tar.gz
  31. Build and install from the given archive file.
  32.  
  33. install [options] http://example.com/mirror/perl-5.12.3.tar.gz
  34. Build and install from the given URL. Supported URL schemes are
  35. "http://", "https://", "ftp://" and "file://".
  36.  
  37. Options for "install" command:
  38.  
  39. -f --force Force installation
  40. -j $n Parallel buildng and testing. ex. C<perlbrew install -j 5 perl-5.14.2>
  41. -n --notest Skip testing
  42.  
  43. --as Install the given version of perl by a name.
  44. ex. C<perlbrew install perl-5.6.2 --as legacy-perl>
  45.  
  46. -D,-U,-A Switches passed to perl Configure script.
  47. ex. C<perlbrew install perl-5.10.1 -D usemymalloc -U uselargefiles>
  48.  
  49. --sitecustomize $filename
  50. Specify a file to be installed as sitecustomize.pl
  51.  
  52. By default, all installations are configured after their name like this:
  53.  
  54. sh Configure -de -Dprefix=$PERLBREW_ROOT/perls/<name>
  55.  
  56. [dan@localhost ~]$ ./perl5/perlbrew/bin/perlbrew init
  57. bash: ./perl5/perlbrew/bin/perlbrew: No such file or directory
  58.  
  59. [dan@localhost ~]$ echo "source ./perl5/perlbrew/etc/bashrc" >> ~/.bashrc
  60. [dan@localhost ~]$ source ~/.bashrc
  61. bash: ./perl5/perlbrew/etc/bashrc: No such file or directory
  62.  
  63. dan@localhost ~]$ perlbrew install perl-5.12.2 <- what instructions say to enter (mistake)
  64.  
  65. bash: perlbrew: command not found
  66.  
  67. ./perlbrew install perl-5.12.2
  68. Fetching perl 5.12.2 as /home/dan/perl5/perlbrew/dists/perl-5.12.2.tar.bz2
  69. Unable to open config (/home/dan/perl5/perlbrew/Config.pm): No such file or directory at /loader/0x1e74658/App/perlbrew.pm line 53.
  70.  
  71. ^ what should be entered (everything fails)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement