星期一, 五月 21, 2007

Ubuntu 7.04 amd64 版本flash问题解决方案

使用moziila-flash的插件,似乎也能运行flash,但功能不全。使用nspluginwrapper更好一点。

nspluginwrapper is an Open Source compatibility plugin for Netscape 4 (NPAPI) plugins. That is, it enables you to use plugins on platforms they were not built for. For example, you can use the Adobe Flash plugin on Linux/x86_64, NetBSD and FreeBSD platforms.


1:安装一系列不可或缺的软件包。这些包是为了能够和32位相兼容
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2

2:去nspluginwrapper主页下载最新的rpm包,然后使用alien转换成deb包。
sudo apt-get install alien
sudo alien nspluginwrapper-VerNum.x86_64.rpm
sudo alien nspluginwrapper-i386-VerNum.x86_64.rpm

sudo dpkg -i nspluginwrapper-VerNum.x86_64.deb
sudo dpkg -i nspluginwrapper-i386-VerNum.x86_64.deb

3:去adobe下载flash 9.

4:untar下载文件。将libflashplayer.so和flashplayer.xpt复制到~/.mozilla/plugins/,执行
nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so

5:(一)if it is all right, it would have to return to the prompt without no messages in the folder .mozilla/plugins/ 。in our /home we can see the file “npwrapper.libflashplayer.so”, created from the previous command.

Copy it into the folder /usr/lib/mozilla/plugins/ [Epiphany works] and create a link (or copy it) into the folder /usr/lib/mozilla-firefox/plugins/ [now Firefox works, too]

(二)nspluginwrapper -l
若返回:
/home/'whoami'/.mozilla/plugins/npwrapper.libflashplayer.so
Original plugin: .mozilla/plugins/libflashplayer.so
Wrapper version string: 0.9.91.2
类似信息,则OK。