お次はperlをインストールします。
まずはデフォルトバージョンの確認
$ perl -v This is perl, v5.8.9 built for darwin-2level
続いてmacportsの確認
$ port search perl ・・・ perl5 @5.8.9 (lang) Wrapper port for perl 5.x perl5.10 @5.10.1 (lang) Perl 5.10.x - Practical Extraction and Report Language perl5.12 @5.12.2 (lang) Perl 5.12.x - Practical Extraction and Report Language perl5.8 @5.8.9 (lang) Perl 5.8.x - Practical Extraction and Report Language ・・・
とりあえず最新バージョンをインストールすることに。
関連モジュールの検索
$ port variants perl5.12 perl5.12 has the variants: dtrace: Build with DTrace probes mangle_names: mangle the installed names by appending -5.12 to avoid conflicting with perl5.8 and perl5.10 shared: Build shared perl library threads: Build with thread support universal: Build for multiple architectures
特にこれが必要!てのは無さそうなので、単体でインストールすることに。
$ sudo port install perl5.12 ・・・ Error: Target org.macports.activate returned: Image error: /opt/local/bin/a2p is being used by the active perl5.8 port. Please deactivate this port first, or use 'port -f activate perl5.12' to force the activation. Log for perl5.12 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.12/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
なんかエラーでた。
perl5.8 が port を使用中なので、そいつを停止させるか perl5.12 が使うように指示を出してください(?)
!!! そういえば、phpをインストールしたときにperlも一緒にインストールされていたような・・・。
やっぱり。。
念のため、今までにインストールされたパッケージを確認。
$ port installed The following ports are currently installed: apache-ant @1.8.1_0 (active) apache2 @2.2.16_0+preforkmpm apache2 @2.2.17_0+preforkmpm (active) apr @1.4.2_1 (active) apr-util @1.3.9_2 (active) autoconf @2.68_0 (active) autoconf213 @2.13_1 (active) automake @1.11.1_0 (active) bzip2 @1.0.6_0 (active) curl @7.21.2_1+ssl (active) curl-ca-bundle @7.21.2_0 (active) cyrus-sasl2 @2.1.23_3+kerberos (active) db46 @4.6.21_6 (active) expat @2.0.1_1 (active) freetype @2.4.3_0 (active) gawk @3.1.8_0 (active) gettext @0.18.1.1_2 (active) gperf @3.0.4_0 (active) gsed @4.2.1_0 (active) help2man @1.38.2_0 (active) jpeg @8b_0 (active) libiconv @1.13.1_0 (active) libidn @1.19_0 (active) libmcrypt @2.5.8_1 (active) libpng @1.2.44_0 (active) libtool @2.4_0 (active) libxml2 @2.7.7_0 (active) m4 @1.4.15_0 (active) mhash @0.9.9.9_0 (active) mysql5 @5.1.51_0 (active) mysql5-server @5.1.51_0 (active) ncurses @5.7_1 (active) ncursesw @5.7_1 (active) neon @0.29.5_0 (active) openssl @1.0.0a_0 openssl @1.0.0a_1 (active) p5-locale-gettext @1.05_3 (active) pcre @8.10_0 (active) perl5 @5.8.9_0 (active) perl5.12 @5.12.2_0 perl5.8 @5.8.9_3 (active) php5 @5.3.3_2+apache2+pear (active) php5-curl @5.3.3_0 (active) php5-gd @5.3.3_0 (active) php5-mbstring @5.3.3_0 (active) php5-mcrypt @5.3.3_0 (active) php5-mysql @5.3.3_0+mysqlnd (active) php5-sqlite @5.3.3_0 (active) php5-tidy @5.3.3_0 (active) php5-zip @5.3.3_0 (active) phpmyadmin @3.3.5.1_0 (active) pkgconfig @0.25_1 (active) readline @6.1.002_0 (active) serf @0.7.0_0 (active) sqlite3 @3.7.3_0 (active) subversion @1.6.13_0 (active) tidy @20090325_0 (active) zlib @1.2.5_0 (active)
perl5.12もちゃんとインストールされたけどactiveじゃないよ。ってことだね。
とりあえずOKにしておきましょう。5.12が必要になったらそのときにactiveにすればヨシ。
$ sudo port install perl5.12 Password: ---> Computing dependencies for perl5.12 ---> Fetching perl5.12 ---> Attempting to fetch perl-5.12.2.tar.bz2 from http://distfiles.macports.org/perl5.12 ---> Verifying checksum(s) for perl5.12 ---> Extracting perl5.12 ---> Applying patches to perl5.12 ---> Configuring perl5.12 ---> Building perl5.12 ---> Staging perl5.12 into destroot ---> Installing perl5.12 @5.12.2_0 ---> Activating perl5.12 @5.12.2_0 Error: Target org.macports.activate returned: Image error: /opt/local/bin/a2p is being used by the active perl5.8 port. Please deactivate this port first, or use 'port -f activate perl5.12' to force the activation. Log for perl5.12 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.12/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
投稿日: