这几个问题解决后,但在安装Gsopcast时出现了问题,下载回来的i386的deb包无法安装,提示架构不一样,没办法,只能编译源码安装了,根据http://code.google.com/p/gsopcast/source的提示,需要先安装subversion(因为他使用了sub命令来下载源码嘛):
代码: 全选
sudo apt-get install subversion
代码: 全选
sudo apt-get install build-essential
代码: 全选
sudo apt-get install automake
代码: 全选
sudo apt-get install autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc automake1.10-doc
代码: 全选
svn checkout http://gsopcast.googlecode.com/svn/trunk/ gsopcast
进入gsopcast目录:
代码: 全选
cd gsopcast
代码: 全选
./autogen.sh
打开新立得,搜索安装:“libgtk2.0”,将搜索出的带common和dev的都标记安装上,再搜索alsa,因为是要安装库,我标记了lib32asound2-dev和libasound2-dev这两个就OK了。Requirements:
sp-sc, alsa-lib, gtk+2.0, and a media player capable of playing wmv file.
现在再执行:
代码: 全选
./autogen.sh
(PS:可能此处的提示不一样,因为我前面的操作虽然提示错误,但还是生成了configure文件。如果是提示生成了configure文件,并没有让直接输入make进行编译包,则在make前需要执行./configure命令进行配置)……
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/gsopcast.desktop.in
config.status: creating data/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
Now type `make' to compile Package
也就是我们这一步已经通过了,直接输入make来编译包就可以了,执行命令:
代码: 全选
make
代码: 全选
sudo make install
现在虽然gsopcast安装上了,但由于sp-sc这个核心还没有安装,所以还要到http://download.sopcast.org/download/sp-sc.tgz
下载sp-sc的包,下载回来解包:
代码: 全选
tar xvf sp-sc.tgz
然后将解包出来的sp-sc目录下的sp-sc文件拷贝到/usr/bin目录下
进入sp-sc目录:
代码: 全选
cd sp-sc
代码: 全选
sudo cp sp-sc /usr/bin
但这时因为默认是安装到/usr/local下的,所以应用程序的影音下没有它的快捷方式,如果想在应用程序的影音下添加上Gsopcast的快捷方式,可以到/usr/local下把生成的gsopcast.desktop文件和gsopcast.png图标文件拷贝到相应目录下:
代码: 全选
cd /usr/local/share/applications/
sudo cp gsopcast.desktop /usr/share/applications/
cd /usr/local/share/pixmaps
sudo cp gsopcast.png /usr/share/pixmaps/
PS:
看了ROOTS兄的http://dengpeng.name/blog/2006/12/07/gsopcast/的文章后,才发现自己为了解决autogen.sh的错误安装的库多了些,大家可以按ROOTS兄的方法安装所需软件包试试。
附:自己也试着学着Roots兄做了个AMD64的deb包,大家试试吧。注意:还是需要自己按这里的步骤拷贝文件来添加影音下的快捷方式。还有,记得下载sp-sc并把它解包拷贝到/usr/bin目录下呀。
Warning:千万记得要安装32位包:
代码: 全选
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2