About

Made using the
Hammer Framework
XHTML Valid  CSS Valid

Certificate

Certificate

Gentoo PECL Fix

Posted On: 01/10/2010
Posted By: Keloran
 
This is to fix the very annoying bug in gentoo that means you cant run pecl, and so you have to wait for someone to port the lib to a gentoo friendly one


#!/bin/bash
lib=$1 #the libs name
getit=$(wget http://pecl.php.net/get/$1) #now download the lib
move=$(mv $1 $1.tgz) #move the file since it doesnt have an extension
extract=$(unfoo $1.tgz);
remove=$(rm $1.tgz package.xml) #remove the file nad its package.xml
filename=$(ls | awk -F / '{ print $1 }' )
cd $filename #move to the folder

#now actually do the stuff in order to make it
phpize
aclocal
libtoolize --force
autoheader
autoconf
configit=$(sh configure)
make
make install

cd ../
remove=$(rm -rf $filename)

Updated By Keloran