picking a specific perl

Puneet Kishor punk.kish at gmail.com
Wed Oct 26 10:25:47 PDT 2011


Here is the short-version of the background story, as far as I can recollect --

1. I installed perl5.14
2. Installed something (don't remember) that chose to install and activate perl5.12 and make it the default perl
3. I went in and tinkered with the symlinks to ensure that perl5.14 became my default perl again

all is good.

But, now I have both perl5.12 and perl5.14 (that I use). Interestingly,

	punkish at mumbai ~$which perl
	/opt/local/bin/perl
	
	punkish at mumbai ~$perl -v
	This is perl 5, version 14, subversion 1 (v5.14.1) built for ..
	
	punkish at mumbai ~$port installed perl5.12
	The following ports are currently installed:
	  perl5.12 @5.12.3_2 (active)
	
	punkish at mumbai ~$port installed perl5.14
	The following ports are currently installed:
	  perl5.14 @5.14.1_1 (active)

So, obviously I can have both perls active while the default perl is perl5.14

Moving on, I want to install mod_perl2 which has variants for several different perl versions. So, how do I tell macports to install mod_perl2 with my perl5.14? Below is my experience so far

	punkish at mumbai ~$sudo port install mod_perl2
	--->  Computing dependencies for mod_perl2
	--->  Fetching archive for mod_perl2
	--->  Attempting to fetch mod_perl2-2.0.4_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/mod_perl2
	--->  Fetching mod_perl2
	--->  Attempting to fetch mod_perl-2.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/mod_perl2
	--->  Verifying checksum(s) for mod_perl2
	--->  Extracting mod_perl2
	--->  Configuring mod_perl2
	--->  Building mod_perl2
	Error: Target org.macports.build returned: shell command failed (see log for details)
	Log for mod_perl2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_mod_perl2/mod_perl2/main.log
	Error: Status 1 encountered during processing.
	To report a bug, see <http://guide.macports.org/#project.tickets>
		
Ok. Let's check out what went wrong...

	punkish at mumbai ~$less /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_mod_perl2/mod_perl2/main.log 
	version:1
	:debug:main epoch: in tree: 0 installed: 0
	:debug:main perl5 5.12.3_1 exists in the ports tree
	:debug:main perl5 5.12.3_1 +perl5_12 is the latest installed
	:debug:main perl5 5.12.3_1 +perl5_12 is active
	:debug:main Merging existing variants '+perl5_12' into variants
	:debug:main new fully merged portvariants: perl5_12 +

no, no, no... I want to use perl5.14 (which is also active). And, further down

	info:build cp lib/Apache/TestSort.pm ../blib/lib/Apache/TestSort.pm
	:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_mod_perl2/mod_perl2/work/mod_perl-2.0.4/src/modules/perl'
	:info:build make: *** [modperl_lib] Error 2
	:info:build make: *** Waiting for unfinished jobs....
	:info:build Manifying ../blib/man3/Apache::TestRun.3pm
	..
	:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_mod_perl2/mod_perl2/work/mod_perl-2.0.4/Apache-Test'
	:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_mod_perl2/mod_perl2/work/mod_perl-2.0.4'
	:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_mod_perl2/mod_perl2/work/mod_perl-2.0.4" && /usr/bin/make -j8 -w all " returned error 2
	:error:build Target org.macports.build returned: shell command failed (see log for details)
	:debug:build Backtrace: shell command failed (see log for details)
		while executing
	"command_exec build"
		(procedure "portbuild::build_main" line 8)
		invoked from within
	"$procedure $targetname"
	:info:build Warning: the following items did not execute (for mod_perl2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
	:notice:build Log for mod_perl2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_mod_perl2/mod_perl2/main.log
	(END) 


More information about the macports-users mailing list