顯示具有 AMD64 標籤的文章。 顯示所有文章
顯示具有 AMD64 標籤的文章。 顯示所有文章

2010年3月1日

ubuntu 9.10 (Karmic) 下 firefox 的64 bit flashplugin 安裝

以下程式碼是從 http://the3mingheats.blogspot.com/2009/12/64bit-flash-player-on-linux.html?zx=a7531bec64ff2e02 抓來修改的
將以下程式碼複製後, 存成文字檔, 例如 install.sh
在終端機下指令, 讓此檔變成可執行
chmod +x install.sh
然後執行
./install.sh

Youtube 中文字有亂碼則參見這一篇: Ubuntu 8.10 AMD64 安裝了flash播放器,中文是亂碼

64 bit flash player for Firefox 可從此處下載: http://labs.adobe.com/downloads/flashplayer10_64bit.html

---beginning of the script---
echo "Stopping any Firefox that might be running"
sudo killall -9 firefox

echo "Removing any other flash plugin previously installed:"
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper

echo "Installing Flash Player 10"
cd ~
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
 tar zxvf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/

echo "Linking the libraries so Firefox and apps depending on XULRunner (vuze, liferea, rsswol) can find it."
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/

# now doing some cleaning up:
sudo rm -rf libflashplayer.so
sudo rm -rf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
---end of the script---

2010年2月1日

安裝 Acrobat Reader 在 Ubuntu 9.10 (karmic koala) AMD64

到這裡抓

http://archive.canonical.com/ubuntu/pool/partner/a/acroread/

或設套件來源
deb http://archive.canonical.com/ubuntu karmic partner

然後
sudo apt-get update
sudo apt-get install acroread

在 ubuntu 9.10 (AMD64) 裝 自行打包的 gretl 1.8.7 with aptitude

gretl-1.8.7 for ubuntu 9.10 (AMD64)
This deb file can be installed successfully on ubuntu 9.10 (Karmic) AMD64. But some actions should be done before gretl works.
1. Installing this deb on ubuntu 9.10 (AMD64) should have no problem.
2. After installing the deb, copy /usr/local/bin/libgrel*.* to /usr/bin (with sudo)
3. Install liblapack-dev with "sudo aptitude install liblapack-dev
    This is because synaptic and apt-get don't work for solving dependences issue.
OK, it is now to run gretl.

gretl_1.8.6-1_amd64.deb 這個是我在 ubutnu 8.10 AMD64 版本打包的, 還沒在其它電腦試過
安裝後發現
1. /usr/local/bin/gretl_x11: error while loading shared libraries: libgretl-1.0.so.0:
同上將 /usr/local/lib 下, libgretl-1.0.so.0 等 4 個以 libgretl* 開頭的檔, 全部複製到 /usr/lib

2. 發現有嚴重的 dependences 問題, google 後, 有人建議用 aptitude, 它會提出降級解決方案, 如下

xxx@xxx-desktop:~$ sudo aptitude install liblapack-dev
正在讀取套件清單... 完成
正在重建相依關係         
正在讀取狀態資料... 完成
初始化套件狀態... 完成    
正在編輯延伸狀態訊息... 完成
以下的套件狀態為毀斷
  libgfortran3
以下新套件將會安裝:
  libatlas-base-dev{a} libatlas-headers{a} libatlas3gf-base{a}
  libblas-dev{a} libblas3gf{a} liblapack-dev liblapack3gf{a}
0 個套件升級, 8 個新安裝, 0 個將移除且 0 個不會升級.
需要下載 22.9MB 的歸檔檔案. 解裝後將用去 91.3MB.
以下套件含有相依性:
  libgfortran3: 相依關係: gcc-4.4-base (= 4.4.1-4ubuntu8) 但 4.4.1-4ubuntu9 已安裝
以下動作會解決這些相依問題:

降級 下列套件:
cpp-4.4 [4.4.1-4ubuntu9 (now) -> 4.4.1-4ubuntu8 (karmic)]
gcc-4.4 [4.4.1-4ubuntu9 (now) -> 4.4.1-4ubuntu8 (karmic)]
gcc-4.4-base [4.4.1-4ubuntu9 (now) -> 4.4.1-4ubuntu8 (karmic)]
lib32gcc1 [1:4.4.1-4ubuntu9 (now) -> 1:4.4.1-4ubuntu8 (karmic)]
lib32stdc++6 [4.4.1-4ubuntu9 (now) -> 4.4.1-4ubuntu8 (karmic)]
libgcc1 [1:4.4.1-4ubuntu9 (now) -> 1:4.4.1-4ubuntu8 (karmic)]
libgomp1 [4.4.1-4ubuntu9 (now) -> 4.4.1-4ubuntu8 (karmic)]
libstdc++6 [4.4.1-4ubuntu9 (now) -> 4.4.1-4ubuntu8 (karmic)]

分數是 172

是否接受該解決方案?[Y/n/q/?] y


執行完畢後, 就可以正常跑了!