While I was compiling PHP from source to install the latest PHP version 5.5.4 on the OSX (10.7.5 Lion). (BTW, try not to do this at home because this can be a tedious process! )
I got the following error:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) ‘mcrypt.so’ in Unknown on line 0
My php.ini is from previous version, and it is located at /etc/php.ini Continue reading “PHP “Invalid library” error related to ‘mcrypt.so’”
You need the Perl libraries in order to compile git, you also need the “gettext” package if you encounter the “msgfmt” error
sudo yum install perl-devel gettext curl-devel
Go to this page to select the latest git, and download it
tar -xvf git-1.8.4.tar.gz
There will be an error Continue reading “Compiling git from source on CentOS”
While I was trying install the latest git by compiling the source, I got the following error
/usr/bin/perl Makefile.PL PREFIX='/usr/local' INSTALL_BASE='' --localedir='/usr/local/share/locale'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
make: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2
Turns out the Perl headers are missing, using yum to install it solve the problem
Some said it’s related to the CPAN module, I have no idea what it is, if the above not work, try also install the CPAN by:
This is a very common effect, however the Android framework only provides the slide in animation. This is how I implement all the sliding transition animation. There’s in total 4 XMLs to define the animation, and with the use of overridePendingTransition() in appropriate location you can implement this easily.
pull_in_left.xml Continue reading “Android Activity transition slide in/out animation”