Freebsd Install Perl Package

初めての方は初めまして。
いろんな界隈の片隅に咲くドクダミの花、相良☆無意味です。

こちらはPerl 5 Advent Calendar 2016 - Qiita19日目の記事です。
(Qiita内なので下にも出るはずですが)前回は@ozissanさんの「PerlでPDFにQRコード(画像)を埋め込む」でした。
私もつい数年前にpdfjでカラー画像をゴリゴリと並べるシステムを構築したのが、現職でMovableType以外のPerl(+php)でほぼ唯一ゼロから組んだシステム。
もはや遠い昔のことのようです。
次回は@touba_rumbaさんの「yapcjapanについて」改め「学生視点のYAPC::Hokkaido」の予定です。
北海道は行けませんでしたが、一応kansai.pmメンバーなので大阪には行くはずです。

さくらのクラウド上のFreeBSDを11.0-RELEASEにアップグレードし、pkgにおけるPerl5の状況を確認しました。
実は手元にインストール済みのサーバもあるのですが、こちらはバリバリカスタムする可能性もあります(まだしてない。
復習とクーポンの活用を兼ねてこちらで作業を行いました。

本当はMovableTypeの立ち上げまでやってそちらで投稿しようかと思ったのですが、今冬中に安定公開まで持っていくのが厳しそうなので今回は見送りました。

昭和世代には基本的なことからですが、改めて簡単に説明します。

我らがLarryの母校でもあるUCBで生まれたOSの直系と言っていいOSであり、本物の「unix」でもあります。
新機能の追加も活発ながらそれなりに後方互換性も保持しており、「404 Blog Not Found」の情報がまだ役に立つこともあります。

Click the following button: and you will be given an offline activation code.offline activation code. LINQPad 5.31.0 Crack Full Version is a powerful database manager software for windows. The software works uses LINQ Queries devoting to simply interact with the database using LINQ queries. LINQPad Premium Full Version enable you to instantly test any C#/F#/VB snippet or program. LINQPad 5 Premium Edition Crack With Activation Key Download. LINQPad 5 Premium Edition Crack With Activation Key Download – This is a powerful Integrated Development Environment (IDE) which used to manipulate LINQ & Lambda Expressions.It’s not just for Language Integrated Query (LINQ) queries, but also allows you to manipulate any C#/F#/VB expression. Activation Key. I thinking of purchasing the premium version, but first I have a question. I am a free lancer and simultaneously working in a few companies, if I purchase this license can I apply it to all of my 'Linqpad-instance-in-each-company' including my home Linqpad? 0 Share on Twitter Share on Facebook. You can activate it. Linqpad examples.

OS標準コマンドとその設定ファイルは「/bin」「/etc」などルート直下のディレクトリに存在し、後ほど紹介するpkgや、ソースベースパッケージ管理システムportsで導入したコマンドとその設定ファイル「/usr/local/bin」「/usr/local/etc」など「/usr/local」に隔離されます。

I found that the dragonfly package does not include the open-vm-tools and the vmware workstation does not have the perl vmware-tools for freebsd anymore. To install the vmware drivers: Then disable the xorg, by rm /tmp/.X0-lock, then run /usr/local/bin/Xorg -configure.

標準ツールのpython移行が完了しており、標準でperlが入っていません!!
まぁLarryもLinuxを使っているのでおあいこです(?)。
逆に言うと、自由にバージョンを選びやすいとも言えます。
[追記]コメントでご指摘いただきました。ちゃんと確認しないとダメですね。なんでこんな勘違いを……

さくらのクラウドではパブリックISOイメージから以下のバージョンがインストールできるほか、10.3-RELEASEの環境を構築した20GBのパブリックアーカイブを利用することができます。
1.FreeBSD 9.3-RELEASE 64bit
2.FreeBSD 10.3-RELEASE 64bit
3.FreeBSD 11.0-RELEASE 64bit

freebsd-update

今回はすでにパブリックアーカイブで10.3-RELEASEを構築して放置していますので、こちらをアップグレードしました。
11.0-RELEASEへのアップグレードはOpenSSLのセキュリティ脆弱性が重なった関係もあり、少々厄介です。
実際の作業自体はそこまででもないのですが、詳細はBSD界隈四方山話 第72回に詳しいのでそちらに譲ります。
(作業ログが取れていないのは秘密)

2、3回はやっているはずなのですが、ブラウザのバーチャルコンソールから行ったために少々手こずってしまいました。
しかし、下記のように無事バージョンが更新できました。

pkg

FreeBSD 10から標準のパッケージ管理システムです。
以前のバイナリベースのパッケージ管理システムpackagesや、ソースベースのportsの他OSへの移植版であるpkgsrcと区別しやすいように、pkgng(next generation)と呼ばれていました。
バイナリインストールのパッケージ管理システムとして最後発の部類に入り、とても使い勝手が良いです。

では、実際にperlが登録されているか調べてみましょう。

149件?
あ、これモジュールとかも入ってますね。
では改めて。

5.18〜24までの安定バージョンと5.25が登録されており、pkg install perl5とすると5.20が入ることがわかります。
しかし、できればperl的にもモダンな管理ツールが使いたいところ。
こちらも登録されているかどうか確認しましょう。

perlbrewはありますが、さすがにplenvはありません。
plenvを覚えてあわよくばpkgメンテナになる、なんて妄想も悪くないですね。
ただ一つ問題があり、一度運用に失敗しています。

plenvの紹介記事は大概bash前提で書かれています。
まぁLinux全盛のご時世で仕方のないことですが、FreeBSDの標準シェルはtcshなのです。
(だから一般ユーザのプロンプトが%なのです)
まぁ私は自分で選んでいますし、いっそzsh使えって話もありますが。

gitインストール

ともあれ、plenvを入れるために、まずはgitが入っていなければ入れましょう。
長いですが一気に載せます。

これでgit2.9.2_2がインストールされたわけですが……
お気づきでしょうか?
依存関係があり、Perl5.20が入ってしまいました。

逆に言うと、自由にバージョンを選びやすいとも言えます。

私が上で書いたこれ、なんだったんでしょうか(汗

ともあれ、これでOSのメインPerlは5.20になりました。
あとはplenvなりperlbrewを導入して、使いやすい環境にしていきましょう。

そう言えば土曜日に電車内で帽子の上から悪魔のツノをつけているおじさんを見ました。
彼もバークレイストだったのでしょうか……
なお、私はYAPC::Asia Tokyo 2015(まだ終わらせていない奴がここにいます)のトートを肩にかけ、キンジ・タキガワのテンガロンハット(ブラック)に百円ショップのクリップ留めする紐をつけて被っていました。

閑話休題

plenvを使用するならpkgから入れることはまずありませんが、cpanminusも用意されています。

せっかくなのでperl6もみてみましょう。
下記のとおりです。

Hi Experts,
I have installed freeBSD 7.1.
then I installed perl-5.8.8_1 from Ports, I read somewhere that If I install perl from port then it will automatically install bsdpan. But it did not work out.
Practical Extraction and Report Language
postgresql-plperl-8.3.3_1 Write SQL functions for PostgreSQL using Perl5
Now I want install below package of bsdpan.

bsdpan-Apache-DB-0.14 Apache:: DB - Run the interactive Perl debugger under mod_pe
bsdpan-Apache-DBI-1.07 Apache:: DBI - Initiate a persistent database connection
bsdpan-Apache-Test-1.30 Apache::Test - Test.pm wrapper with helpers for testing Apa
bsdpan-Archive-Tar-1.48 Archive::Tar - module for manipulations of tar archives
bsdpan-Archive-Zip-1.26 Archive::Zip - Provide an interface to ZIP archive files.
bsdpan-CPAN-1.9304 CPAN - query, download and build perl modules from CPAN sit
bsdpan-Class-Loader-2.03 Class::Loader - Load modules and create objects on demand.
bsdpan-Compress-Raw-Bzip2-2.019 Compress::Raw::Bzip2 - Low-Level Interface to bzip2 compres
bsdpan-Compress-Raw-Zlib-2.019 Compress::Raw::Zlib - Low-Level Interface to zlib compressi
bsdpan-Config-General-2.42 Config::General - Generic Config Module
bsdpan-Convert-ASCII-Armour-1.4 Convert::ASCII::Armour - Convert binary octets into ASCII a
bsdpan-Convert-ASN1-0.22 Unknown perl module
bsdpan-Convert-PEM-0.07 Convert::PEM - Read/write encrypted ASN.1 PEM files
bsdpan-Crypt-Blowfish-2.10 Crypt::Blowfish - Perl Blowfish encryption module
bsdpan-Crypt-CBC-2.30 Crypt::CBC - Encrypt Data with Cipher Block Chaining Mode
bsdpan-Crypt-DES-2.05 Crypt:: DES - Perl DES encryption module
bsdpan-Crypt-DES_EDE3-0.01 Crypt:: DES_EDE3 - Triple-DES EDE encryption/decryption
bsdpan-Crypt-DSA-0.14 Crypt:: DSA - DSA Signatures and Key Generation
bsdpan-Crypt-SSLeay-0.57 Crypt::SSLeay - OpenSSL support for LWP
bsdpan-DBD-Pg-2.13.1 DBD::Pg - PostgreSQL database driver for the DBI module
bsdpan-DBI-1.608 DBI - Database independent interface for Perl
bsdpan-Data-Buffer-0.04 Data::Buffer - Read/write buffer class
bsdpan-Digest-BubbleBabble-0.01 Digest::BubbleBabble - Create bubble-babble fingerprints
bsdpan-Digest-HMAC-1.01 Digest::HMAC - Keyed-Hashing for Message Authentication
bsdpan-Digest-MD2-2.03 Digest::MD2 - Perl interface to the MD2 Algorithm
bsdpan-Digest-SHA-5.47 Digest::SHA - Perl extension for SHA-1/224/256/384/512
bsdpan-Digest-SHA1-2.11 Digest::SHA1 - Perl interface to the SHA-1 algorithm
bsdpan-Email-Date-Format-1.002 Email:: Date::Format - produce RFC 2822 date strings
bsdpan-File-HomeDir-0.86 File::HomeDir - Find your home and other directories, on an
bsdpan-File-Temp-0.21 File::Temp - return name and handle of a temporary file saf
bsdpan-File-Which-0.05 File::Which - Portable implementation of the `which' utilit
bsdpan-Getopt-Long-2.38 Getopt::Long - Extended processing of command line options
bsdpan-HTML-Parser-3.60 HTML::Parser - HTML parser class
bsdpan-HTML-Tagset-3.20 HTML::Tagset - data tables useful in parsing HTML
bsdpan-IO-Compress-2.019 IO::Compress::Base - Base Class for IO::Compress modules
bsdpan-IO-Zlib-1.09 IO::Zlib - IO:: style interface to L<Compress::Zlib>
bsdpan-IO-stringy-2.110 IO-stringy - I/O on in-core objects like strings and arrays
bsdpan-Log-Log4perl-1.23 Log::Log4perl - Log4j implementation for Perl
bsdpan-MIME-Lite-3.024 MIME::Lite - low-calorie MIME generator
bsdpan-MIME-Types-1.27 Unknown perl module
bsdpan-MailTools-2.04 Unknown perl module
bsdpan-Math-BigInt-1.89 Math::BigInt - Arbitrary size integer/float math package
bsdpan-Math-BigInt-FastCalc-0.19 Math::BigInt::FastCalc - Math::BigInt::Calc with some XS fo
bsdpan-Net-SSH-0.09 Net::SSH - Perl extension for secure shell
bsdpan-Net-Server-0.97 Unknown perl module
bsdpan-Number-Format-1.72 Number::Format - Perl extension for formatting numbers
bsdpan-OLE-Storage_Lite-0.18 OLE::Storage_Lite - Simple Class for OLE document interface
bsdpan-Parse-RecDescent-1.94 Unknown perl module
bsdpan-Pg-1.9.0 Pg - Perl5 extension for PostgreSQL
bsdpan-Pod-Parser-1.38 Pod::Find - find POD documents in directory trees
bsdpan-RPC-XML-0.64 RPC::XML - A set of classes for core data, message and XML
bsdpan-Readonly-1.03 Readonly - Facility for creating read-only scalars, arrays,
bsdpan-Scalar-List-Utils-1.20 List::Util - A selection of general-utility list subroutine
bsdpan-Sort-Versions-1.5 Sort::Versions - a perl 5 module for sorting of revision-li
bsdpan-Spreadsheet-WriteExcel-2.25 Spreadsheet::WriteExcel - Write to a cross-platform Excel b
bsdpan-String-CRC32-1.4 Unknown perl module
bsdpan-Switch-2.14 Switch - A switch statement for Perl
bsdpan-Term-ReadLine-Perl-1.0302 Unknown perl module
bsdpan-TermReadKey-2.30 Term::ReadKey - A perl module for simple terminal control
bsdpan-Test-Pod-1.26 Test::Pod - check for POD errors in files
bsdpan-Test-Simple-0.86 Test::Simple - Basic utilities for writing tests.
bsdpan-Text-CSV_XS-0.65 Text::CSV_XS - comma-separated values manipulation routines
bsdpan-Tie-EncryptedHash-1.24 Tie::EncryptedHash - Hashes (and objects based on hashes) w
bsdpan-Time-Local-1.1901 Time::Local - efficiently compute time from local and GMT t
bsdpan-TimeDate-1.16 Time::Zone -- miscellaneous timezone manipulations routines
bsdpan-URI-1.37 URI - Uniform Resource Identifiers (absolute and relative)
bsdpan-XML-Parser-2.36 XML::Parser - A perl module for parsing XML documents
bsdpan-YAML-0.68 YAML - YAML Ain't Markup Language (tm)
bsdpan-libapreq-1.34 Apache::Cookie - HTTP Cookies Class
bsdpan-libwww-perl-5.826 LWP - The World-Wide Web library for Perl
bsdpan-mod_perl-1.30 Apache - Perl interface to the Apache server API

I want to know, How to install these packages??
Thanks,
Regards,
Mukund Ranjan