php服务器up,安装phpmotion用配置服务器开始到安装partOne

安装Ruby on Rails, subversion & ncurses

apt-get install subversion ruby libcurses-ruby

从svn上获得ffmpeg-php(之前我是用压缩包,但是我写这个文的时候那个下载地址找不到了,用svn也是一样的效果,除非有不兼容的情况,上帝保佑)

//svn checkout https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php ffmpeg-php 这2句 我不太肯定

svn co https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php ffmpeg-php

cd /usr/local/src/ffmpeg-php

//没有目录就mkdir一个吧 eg:mkdir ffmpeg-php

svn update

复制mplayer编码库文件

mkdir /usr/local/lib/codecs

mv /usr/local/src/essential-20071007/* /usr/local/lib/codecs/

chmod -R 755 /usr/local/lib/codecs/

一个临时目录

mkdir /usr/local/src/tmp

chmod 777 /usr/local/src/tmp

export TMPDIR=/usr/local/src/tmp

安装 lame

cd /usr/local/src/lame-3.97

./configure && make && make install

安装 libogg

cd /usr/local/src/libogg-1.1.3

./configure && make && make install

安装 libvorbis

cd /usr/local/src/libvorbis-1.2.0

./configure && make && make install

如果出现

/*********************************这里是分隔符**************************/

出错提示: *** Could not run Ogg test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding Ogg or finding the wrong *** version of Ogg. If it is not finding Ogg, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if that *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH configure: error: must have Ogg installed!

解决:

# vi /etc/ld.so.conf

include /etc/ld.so.conf.d/*.conf

/user/local/lib

# ldconfig –v

/*************************这里是分隔符**************************/

我就在这里卡了很久没弄明白,然后突然看到一个文=>>>>>>>>点

安装flvtool2

cd /usr/local/src/flvtool2-1.0.6/

ruby setup.rb config

ruby setup.rb setup

ruby setup.rb install

安装mplayer & mencoder

cd /usr/local/src/mplayer

./configure --enable-jpeg

make && make install

安装 AMR (for 3gp conversion)

cd /usr/local/src/amrnb-7.0.0.2

./configure && make && make install

cd /usr/local/src/amrwb-7.0.0.3

./configure && make && make install

安装 libtheora (for ogg video encoding)

cd /usr/local/src/libtheora-1.0beta3

./configure && make && make install

安装ffmpeg

cd /usr/local/src/ffmpeg-20081129

./configure --prefix=/usr/local --enable-memalign-hack --enable-libvorbis --disable-mmx --enable-shared

make && make install

ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52

ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52

ln -s /usr/local/lib/libavcodec.so.52 /usr/lib/libavcodec.so.52

ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49

ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0

ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

ln -s /usr/local/lib/libamrnb.so.3 /usr/lib/libamrnb.so.3

ln -s /usr/local/lib/libamrwb.so.3 /usr/lib/libamrwb.so.3

//用ln添加硬链接

安装ffmpeg-php

cd /usr/local/src/ffmpeg-php-0.5.0/

phpize

./configure && make

make install

修改php.ini

vim /etc/php5/apache2/php.ini

extension=ffmpeg.so (add this line to the end of the file)

重启apache2

/etc/init.d/apache2 force-reload

到这里大环境已经配置完成了~也花了一个下午才写好~悲剧啊

partTwo就是安装phpmotion 了,安装的时候还会有一个很bt的问题等着我们呢待续

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值