Pickup Knowledge for Perl and Version Upgrade

Pickup Knowledge for Perl and Version Upgrade
 
1. Installation
>perl -v
This is perl 5, version 12, subversion 4 (v5.12.4)
 
Upgrade the perl to latest version
> curl -L http://xrl.us/installperlosx | bash
 
Or 
 
Go to official website and download the latest version 5.16.3
 
Upgrade cpan
>cpan
cpan>upgrade
 
2. Old Docs
http://sillycat.iteye.com/blog/1012882   Installation, basic hello world and how to run, array&String&Number
http://sillycat.iteye.com/blog/1017632   String Handler,     Module and CPAN
 
Deployment 
 
Request and Header Info
 
3. Enable Nginx to Handle Perl
autoconf
configure & make & install
 
automake
libtool
 
Then try to install fcgiwrap
>autoreconf -i
 
Error Message during install fcgiwrap
configure.ac:32: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /Users/carl/tool/autoconf-2.69/bin/autoconf failed with exit status: 1
 
Solution:
 
Install pkg-config
> ./configure --prefix=/Users/carl/tool/pkg-config-0.28 --with-internal-glib
 
>autoreconf -i
Working fine
>./configure —prefix=/Users/carl/tool/fcgiwrap
 
Error Message:
checking for FCGX_Init in -lfcgi... no
configure: error: FastCGI library is missing
 
Solution:
Install the fastcgi
 
Finally, still fails to install  https://github.com/gnosek/fcgiwrap.
 
Try this
 
Still not working, it seems hard on MAC for me.
 
References:
 
 
 
 
 

猜你喜欢

转载自sillycat.iteye.com/blog/2193773