为什么QQ和奔流tar包无法直接运行(AMD64)?

上网、浏览、聊天、下载等
回复
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

为什么QQ和奔流tar包无法直接运行(AMD64)?

#1

帖子 Flashboy » 2008-10-07 22:50

为什么QQ和奔流tar包无法直接运行(AMD64)?好像坛子里有deb包,可以直接运行(AMD64)。
希望听一下解释。
先谢谢了。
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#2

帖子 Flashboy » 2008-10-08 9:06

看了个消息,不知是否是真的?

QQ for Linux支持64位处理器吗?
答:支持。

== qq supports i386 linux runs on a AMD64 CPU
!= qq supports amd64 linux runs on a AMD64 CPU


如果是,64 deb包怎么实现的?
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#3

帖子 Flashboy » 2008-10-08 9:11

QQ FOR LINUX 可到QQ网站上下载,有RPM、DEB、tar.gz三种版本。
我系统是UBUNTU8.04 AMD64版的,因为QQ没有出64位版的,所以只能先安装ia32位包,然后可以强制安装QQ deb包了。安装方法
sudo apt-get install ia32*
sudo dpkg --force-architecture -i linuxqq*.deb
安装完了,如果登录不上QQ,重新启动一下机器就OK了。

[转帖]http://www.ix88.com/jichu/Linun/jichu/37058.html
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#4

帖子 yaoms » 2008-10-08 9:13

你很执着。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#5

帖子 Flashboy » 2008-10-08 9:15

IA32 : 32 bits Intel Architecture (32位带宽Intel构架)
IA64 : 64 bits Intel Architecture (64位带宽Intel构架)

i386 : Intel 386 ( 老的386机器,也泛指IA32体系的CPU)
i486 : Intel 486
i586 : Intel 586 ( Pentium ,K6 级别CPU )
i686 : Intel 686 ( Pentium II, Pentium III , Pentim 4, K7 级别CPU )

以上的86 也可以叫做 x86, 通称说 x86也是指 IA32构架CPU
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#6

帖子 Flashboy » 2008-10-08 9:19

[在debian-amd64系统中安装和使用ia32位的程序]
注:ubuntu属于debian系列,本文对ubuntu应该也是可用的,但我没有尝试

如今许多人拥有64的机器。但是64的应用程序相对匮乏。SUSE和UBUNTU等版本的64位系统整合了32位程序,但是我最喜爱的DEBIAN却没有。因此参考了一些资料胡乱写了这个东东,希望对安装了64DEBIAN又想使用32位程序的朋友有所帮助。

我的父系统是DEBIAN-AMD64/SID
1、aptitude install linux32 ia32-libs debootstrap
2、debootstrap --arch i386 sarge /chroot/sarge-i386 http://debian.cn99.com/sarge
3、chroot /chroot/sarge-i386
4、aptitude update;aptitude upgrade
5、aptiutde install locales
设定locale 我设为zh_CN.UTF-8

6、tzconfig设定时区

7、设置系统(在父系统中执行)
挂载必要的目录

挂载些你需要在 chroot 中使用的目录,首先编辑父系统的/etc/fstab (警告:错误的编辑此文件可能导致系统无法开机)在/etc/fstab文件的最后加上以下几行:

# ia32 chroot
/home /chroot/sarge-i386/home none bind 0 0
/tmp /chroot/sarge-i386/tmp none bind 0 0
proc /chroot/sarge-i386/proc proc defaults 0 0

8、存档,然后挂载这些系统(在父系统中)
sudo mount /chroot/sarge-i386/home
sudo mount /chroot/sarge-i386/tmp
sudo mount /chroot/sarge-i386/proc

9、设定使用者
为了在a32-chroot 中也能使用你目前的帐号,需要将 AMD64 系统中的用户材料拷贝到chroot中。(在父系统中执行以下命令)

sudo cp /etc/passwd /chroot/sarge-i386/etc/
sudo cp /etc/shadow /chroot/sarge-i386/etc/
sudo cp /etc/group /chroot/sarge-i386/etc/

10、在chroot的sarge-i386系统中安装软件。aptitude install ttf-arphic-uming openoffice.org(爱装什么装什么,不必安装xserver)

11、在父系统中安装dchroot 执行32位的程序
sudo aptitude install dchroot
sudo nano /etc/dchroot.conf

在文件最后加上:
# ia32 chroot
ia32 /chroot/sarge-i386

在父系统中用以下命令执行ia32位的程序

dchroot -c ia32 -d (应用程序)

12、 在桌面建立ia32应用程序启动器。
在对话框的“命令”一行中填入:dchroot -c ia32 -d (应用程序)
如:dchroot -c ia32 -d gmplayer

注:openoffice应先在ia32中做个链接。在ia32系统中ln -s /usr/lib/openoffice/program/soffice /usr/bin/soffice
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#7

帖子 Flashboy » 2008-10-08 9:23

在 Ubuntu AMD64 上執行 IA32 應用程式。2008-05-17 01:00原文:

http://wiki.ubuntu.org.tw/index.php?tit ... &oldid=141
http://wiki.ubuntu.org.cn/DebootstrapChroot


前言
本文描述如何在 Ubuntu AMD64 上執行 IA32 應用程式。

使用 IA32-libs
Ubuntu AMD64 已經預先安裝了 IA32-libs,這使你可以在 Ubuntu AMD64 中使用已編譯好的 32bit 應用程式。你可以透過 Linux32 執行 32bit 應用程式,首先安裝 Linux32 套件:

sudo apt-get install linux32
然後你可以透過這個指令來執行 32bit 應用程式:

linux32 <應用程式>
透過 Linux 32 執行應用程式時,機器會被辨識為 32bit 系統,你可以試試這兩個指令

uname -mlinux32 uname -m
前者會顯示"x86_64",後者則會顯示"i686"。這表示透過 Linux32 執行程式時,該程式會以為它在一個 IA32 架構,而非 AMD64。

使用 IA32 Chroot
IA32-libs 很簡易且能執行大部分的 32bit 應用程式,但要編譯或安裝 32bit 應用程式,特別是 Debian Package 時並不容易。因此,你可以選擇建立 IA32 chroot。

使用 Debootstrap 建立 IA32 chroot


Installing and configuring dchroot 安装配置 Dchroot
dchroot is a convenient means of managing chroot environments; with this tool you can have both Breezy, Dapper, and even Debian Sid chroots in your Ubuntu install, and using a chroot environment is a simple as dchroot -c dapper -d ;)

To get it dchroot working in your system, just do the following in a Terminal:

sudo apt-get install dchrootsudo mkdir /chroot/hardy-i386 # Remember, we assume our chroot is heresudo editor /etc/dchroot.conf
Then append this line in /etc/dchroot.conf:

mychroot /chroot/hardy-i386


sudo apt-get install debootstrapsudo debootstrap --arch i386 breezy /chroot/breezy-i386 http://apt.ubuntu.org.tw/ubuntusudo debootstrap --variant=buildd --arch i386 hardy /chroot/hardy-i386 http://cn.archive.ubuntu.com/ubuntu/
稍待片刻之後,debootstrap 已經為你安裝好基本的系統了。接著透過 chroot 切換到該系統下設定語系、時區並安裝必要的 library。

sudo cp /etc/apt/sources.list /chroot/breezy-i386/etc/apt/sudo chroot /chroot/breezy-i386

設定 Locales
dpkg-reconfigure locales
接著你會看到如下圖的設定畫面
Image:Locale config.png
使用空白鍵選擇你需要的語系,如果你不知道你需要哪一些,請找到並選擇以下四者。

en_US ISO-8859-1en_US.UTF-8 UTF-8zh_TW BIG5zh_TW.UTF-8 UTF-8
完成後按下<Enter>,下一個畫面會詢問你以哪一個 locale 作為預設值,將游標移到 zh_TW.UTF-8(如下圖)後按<Enter>。 Image:Locale config 2.png
稍待片刻後,系統已經產生並設定好 locales。

設定時區
tzselect
系統會詢問是否要變更時區,請回答 'y'

Your current time zone is set to UTCDo you want to change that? [n]: y
系統將會列出幾個地理位置,請回答'5'

Please enter the number of the geographic area in which you live: 1) Africa 7) Australia 2) America 8) Europe 3) US time zones 9) Indian Ocean 4) Canada time zones 10) Pacific Ocean 5) Asia 11) Use System V style time zones 6) Atlantic Ocean 12) None of the aboveThen you will be shown a list of cities which represent the time zonein which they are located. You should choose a city in your time zone.Number: 5
系統會列出該地區的時區地名,請回答'Taipei'

Aden Almaty Amman Anadyr Aqtau Aqtobe Ashgabat Ashkhabad Baghdad BahrainBaku Bangkok Beirut Bishkek Brunei Calcutta Choibalsan Chongqing ChungkingColombo Dacca Damascus Dhaka Dili Dubai Dushanbe Gaza Harbin Hong_KongHovd Irkutsk Istanbul Jakarta Jayapura Jerusalem Kabul Kamchatka KarachiKashgar Katmandu Krasnoyarsk Kuala_Lumpur Kuching Kuwait Macao MacauMagadan Makassar Manila Muscat Nicosia Novosibirsk Omsk Oral Phnom_PenhPontianak Pyongyang Qatar Qyzylorda Rangoon Riyadh Riyadh87 Riyadh88Riyadh89 Saigon Sakhalin Samarkand Seoul Shanghai Singapore TaipeiTashkent Tbilisi Tehran Tel_Aviv Thimbu Thimphu Tokyo Ujung_PandangUlaanbaatar Ulan_Bator Urumqi Vientiane Vladivostok Yakutsk YekaterinburgYerevanPlease enter the name of one of these cities or zonesYou just need to type enough letters to resolve ambiguitiesPress Enter to view all of them againName: [] Taipei
看到以下回應表示設定已經完成。

Your default time zone is set to 'Asia/Taipei'.Local time is now: 二 2月 28 13:54:37 CST 2006.Universal Time is now: 二 2月 28 05:54:37 UTC 2006.

安裝其他元件
apt-get updateapt-get upgradeapt-get install libx11-6apt-get install language-support-zh

設置系統

掛載必要的目錄
掛載一些你需要在 chroot 中使用的目錄,首先編輯 /etc/fstab (警告:錯誤的編輯此檔案可能導致無法開機)。 請在 /etc/fstab 的最後面加上這幾行:

# ia32 chroot/home /chroot/breezy-i386/home none bind 0 0/tmp /chroot/breezy-i386/tmp none bind 0 0proc /chroot/breezy-i386/proc proc defaults 0 0
存檔離開,然後掛載這些目錄。

sudo mount /chroot/breezy-i386/homesudo mount /chroot/breezy-i386/tmpsudo mount /chroot/breezy-i386/proc
如果你有需要額外的目錄,請依照上述方式自行掛載。

設定使用者
為了在 ia32-chroot 中也能使用你目前的帳號,需要將 AMD64 系統中的使用者資訊複製到 ia32-chroot中。

sudo cp /etc/passwd /chroot/breezy-i386/etc/sudo cp /etc/shadow /chroot/breezy-i386/etc/sudo cp /etc/group /chroot/breezy-i386/etc/

安裝你需要的應用程式
使用 apt 安裝應用程式
獨立的 ia32-chroot 環境意味著你可以在 ia32-chroot 內使用 apt/dpkg 來安裝/管理套件,就像平常你在 AMD64 系統上使用的方式。你可能會想安裝某些軟體,建議你一併安裝 gnome-icon-theme 以及 gnome-themes,也建議你安裝 Firefly New Sung 字型,這可以讓 ia32-chroot 上的程式運行時外觀和你在 AMD64 系統上使用的無異。

apt-get install gnome-icon-theme gnome-themes ttf-arphic-newsung
如果你想安裝 firefox、OpenOffice.org 也可以透過相同方式

apt-get install firefoxapt-get install ooo2-firefly
如果你希望能播放 wmv,也可以在 ia32-chroot 中依照 HowtoSupportMoreVideoCodecs 的方式安裝。

如果您安裝 ooo2-firefly,並且使用 scim 輸入法架構,請在 ia32-chroot 多做一件事情:
mv /opt/openoffice.org2.0/program/libstdc++.so.6 /opt/openoffice.org2.0/program/libstdc++.so.6_backupln -s /usr/lib/libstdc++.so.6 /opt/openoffice.org2.0/program/libstdc++.so.6
原因在此篇討論串。

執行 32bit 應用程式
本文提供三種方法讓你執行 ia32-chroot 中的應用程式,其中最方便的是第三種。

在 ia32-chroot 中執行應用程式
sudo chroot /chroot/breezy-i386su - <username>export DISPLAY=:0<執行應用程式>
<username> 是你的使用者名稱。

使用 dchroot 執行 32bit 應用程式
sudo apt-get install dchrootsudo gedit /etc/dchroot.conf
在檔案最後面加上:

# ia32 chrootia32 /chroot/breezy-i386
以後只要用以下方式即可執行應用程式

dchroot -c ia32 -d <應用程式>

快速執行 32bit 應用程式的方法
如上文安裝 dchroot 並設定 /etc/dchroot.conf 後,執行:

sudo gedit /usr/local/bin/do_dchroot
在檔案內填入:

#!/bin/shARGS=""for i in "$@" ; doARGS="$ARGS '$i'"doneexec dchroot -c ia32 -d -q "`basename $0`" "$ARGS"
將該檔案設為可執行:

sudo chmod 755 /usr/local/bin/do_dchroot
如果你希望能執行 32bit firefox,只要:

cd /usr/local/binsudo ln -s do_dchroot firefox
以後你就可以直接在 console 下 firefox 指令來執行 32bit firefox,Gnome 面板上的 firefox 啟動圖示也會變成 32bit firefox(由於預設的 PATH 變數中 /usr/local/bin 在 /usr/bin 之前)。其他應用程式也可以用相同方式執行。

建立啟動圖示
當你在 ia32-chroot 中透過安裝應用程式時,你可能希望它的圖示也能出現在 Gnome 應用程式選單中,你可以透過手動方式達到此目的。

建立啟動圖示
在安裝完應用程式之後,將 ia32-chroot 中的應用程式啟動圖示複製到 AMD64 系統中。在 Ubuntu 中應用程式的啟動圖示會被放到 /usr/share/applications 目錄,啟動圖示的 icon 則放在 /usr/share/pixmaps 目錄,因此只要將 ia32-chroot 中這兩個資料夾的 *.desktop/*.xpm/*.png 項目複製到系統中的相同位置即可:

cp /chroot/breezy-i386/usr/share/applications/*.desktop /usr/share/applications/cp /chroot/breezy-i386/usr/share/pixmaps/*.xpm /usr/share/pixmaps/cp /chroot/breezy-i386/usr/share/pixmaps/*.png /usr/share/pixmaps/

使用本機系統的裝置
使用印表機
若您要在 ia32-chroot 中使用本機系統的印表機,請在 ia32-chroot 中以 root 執行以下命令:

apt-get install libgnomecups1.0-1 libgnomecupsui1.0-1
這將會安裝 cups 的 library,然後你就能透過 ia32-chroot 的應用程式使用本機系統的印表機。

其他注意事項
在 ia32-chroot 中使用 sudo 會有錯誤訊息,請直接以 root 執行(使用 chroot /chroot/breezy-i386 時就已經是 root 了)。
如果你想在 ia32-chroot 中安裝 scim,方法與 UbuntuL10n#中文輸入 的方式相同。但「設定 scim 啟動檔」部份,你應該編輯 AMD64 系統中的檔案。也就是說,「設定 scim 啟動檔」段落的所有指令應該在 AMD64 系統中執行,而不是在 ia32-chroot 中執行。
使用exit退出chroot

[转帖]http://hi.baidu.com/agoods/blog/item/05 ... 13a11.html
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#8

帖子 Flashboy » 2008-10-08 9:26

应该知道怎么运行i386的可执行文件了。
头像
eagle5678
帖子: 1865
注册时间: 2006-07-08 14:07

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#9

帖子 eagle5678 » 2008-10-10 10:27

sudo apt-get install linux32

??
注意,选取 util-linux 而非 linux32
util-linux 已经是最新的版本了。

这个又怎用
Flashboy
帖子: 52
注册时间: 2007-03-31 10:01

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#10

帖子 Flashboy » 2008-10-13 21:55

不知道什么意思?util-linux什么东西?search 了一下好像没有linux32 包。
一般使用apt-get install ia32-libs可以解决32程序的运行。
头像
fengjie
帖子: 130
注册时间: 2008-03-19 14:20

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#11

帖子 fengjie » 2008-11-16 17:22

ubuntu@ubuntu:~$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
lib32z1 lib32ncurses5 lib32bz2-1.0
E: Package ia32-libs has no installation candidate
主板:ASUS P8Z77-V
CPU:Intel 酷睿i3 3200
内存:ADTA DDRⅢ 1600 8G
显卡:Intel® HD Graphic
声卡:Realtek ALC 892
有线网卡:Intel® 82579V
无线网卡:Qualcomm Atheros AR9485
硬盘:WDC WD6401AALS
电源:长城ATX-350SD静音大师
显示器:Samsung S24A350H
xeoc
帖子: 1994
注册时间: 2007-05-06 10:12

Re: 为什么QQ和奔流tar包无法直接运行(AMD64)?

#12

帖子 xeoc » 2008-11-16 17:24

只要安装ia32-libs就一切ok啊
回复