CentOS5 64bitçã§mod_perlã®makeã§ã¨ã©ã¼
perlbrewã§ã¤ã³ã¹ãã¼ã«ããperlã§apacheã¨mod_perlãã½ã¼ã¹ãã«ããããã¨ããã
mod_perlã®makeã§ã¨ã©ã¼ãçºçã
以ä¸ã¯ãã®å¯¾å¿è¨é²ã
ã¨ã©ã¼å 容
libperl.a(op.o): relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a shared object; recompile with -fPIC libperl.a: could not read symbols: Bad value
ã°ã°ã£ã¦ã¿ãããããããHITããã
http://www.gossamer-threads.com/lists/modperl/modperl/101165
http://old.nabble.com/Compiling-Perl-+-mod_perl-on-64-bit-linux-td19153871.html
ã©ããCentOSã®64bitçã§ã®ã¿çºçããã£ã½ãã
ãªãã·ã§ã³ä»ãç´ãã¦perlãåã¤ã³ã¹ãã¼ã«ããå¿
è¦ãããï¼
perlãæ®éã«ãã¦ã³ãã¼ããã¦ãªãã«ã
ä¸è¨ã®ã¹ã¬ãããåèã«ãã¦ã
perlã®ã³ã³ãã£ã°ãªãã·ã§ã³ã以ä¸ã®ããã«ãã¦*1ãªãã«ãããã
mod_perlã®makeéã£ãï¼
sh ./Configure -de -Accflags='-fPIC' -Dloclibpth="/usr/lib64"
perlbrewã§ããããããâ¦
perlbrewã§ãä¸å¿ã³ã³ãã£ã°ãªãã·ã§ã³æ¸¡ããã¿ããã
-D pass through switches to the perl Configure script perlbrew install perl-5.10.1 -D=usemymalloc
ãããã½ã¼ã¹ãè¦ã¦ãã-Aããªãã·ã§ã³ãæå®ããç®æãç¡ãâ¦
ã®ã§ãç¬èªããããå½ã¦ãã
App::perlbrew 0.07
diff /usr/local/perlbrew/perls/perl-5.12.1/lib/site_perl/5.12.1/App/perlbrew.pm-org /usr/local/perlbrew/perls/perl-5.12.1/lib/site_perl/5.12.1/App/perlbrew.pm 209a210 > my @a_options = @{ $self->{A} }; 241c242 < "sh Configure $configure_flags " . join( ' ', map { "-D$_" } @d_options ), --- > "sh Configure $configure_flags " . join( ' ', map { "-D$_" } @d_options ) . " " . join( ' ', map { "-A$_" } @a_options ),
perlbrew 0.07
# diff /usr/local/perlbrew/bin/perlbrew-org /usr/local/perlbrew/bin/perlbrew 12a13 > A => [], 19a21 > 'A|A=s@' => $opt->{A},