Created
August 8, 2012 14:01
-
-
Save chorrell/3295245 to your computer and use it in GitHub Desktop.
add ffmpeg-php to a smartosplus64 3.1.0 SmartMachine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install ffmpeg and autoconf from the pkgsrc repos | |
pkgin update | |
pkgin -y install ffmpeg autoconf gcc-compiler | |
mkdir src | |
cd src | |
# Download ffmpeg-php | |
curl -L -O http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2 | |
# Unpack | |
tar -xjf ffmpeg-php-0.6.0.tbz2 | |
# Build and install | |
cd ffmpeg-php-0.6.0/ | |
phpize | |
./configure --prefix=/opt/local -includedir=/opt/local/include | |
make | |
make install | |
# Add the extension: | |
echo "extension=ffmpeg.so" >> /opt/local/etc/php.ini | |
# Restart Apache | |
svcadm restart apache | |
# Verify that it's installed: | |
php -i | grep ffmpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment