64位linux安装32位校园网客户端

下面的是ubuntu下和arch下的安装方法,ubuntu的转自网络,

ubuntu:

  1. 下载客户端并解压
  2. 安装开发包
    1 sudo -i
    2 dpkg --add-architecture i386  #添加32位的支持
    3 apt-get update
    4 apt-get install build-essential gnome-core-devel  #安装两个开发包(可选)
  3. 运行
    1 cd DrClient
    2 ./privillege.sh
  4. 获取依赖包文件信息,安装依赖包
    复制代码
     1 ldd DrClientLinux 
     2     linux-gate.so.1 =>  (0xf7746000)
     3     libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0xf771f000)
     4     libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0xf7705000)
     5     libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xf76f4000)
     6     libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xf76e9000)
     7     libXrandr.so.2 => /usr/lib/i386-linux-gnu/libXrandr.so.2 (0xf76de000)
     8     libXcursor.so.1 => /usr/lib/i386-linux-gnu/libXcursor.so.1 (0xf76d3000)
     9     libXinerama.so.1 => /usr/lib/i386-linux-gnu/libXinerama.so.1 (0xf76cf000)
    10     libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf762e000)
    11     libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf75f3000)
    12     libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf75e0000)
    13     libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf74ac000)
    14     libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7492000)
    15     librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7488000)
    16     libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7483000)
    17     libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7467000)
    18     libstdc++.so.6 => not found
    19     libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7421000)
    20     libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7403000)
    21     libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7255000)
    22     libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf724f000)
    23     libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xf7249000)
    24     libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xf7221000)
    25     libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf71f7000)
    26     libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf71d5000)
    27     /lib/ld-linux.so.2 (0xf7749000)
    28     libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf71d1000)
    29     libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf71ca000)
    
    复制代码
  5. 从上往下依次安装:去掉中间的 .so. 加上末尾的数字,为包的名字
    1 apt-get install libSM6:i386 libICE6:i386 libXi6:i386 libXrender1:i386 libXrandr2:i386 libXcursor1:i386 libXinerama1:i386 libfreetype6:i386 libfontconfig1:i386 libXext6:i386 libX116:i386 libz1:i386 librt1:i386 libdl2:i386 libpthread0:i386 libstdc++6:i386 libm6:i386 libgcc_s1:i386 libc6:i386 libuuid1:i386 libXfixes3:i386 libpng12:i386 libexpat1:i386 libxcb1:i386 libXau6:i386 libXdmcp6:i386 
    #发现安装前几个之后就可以了,没找到的包,直接忽略即可
  6. 运行DrclientLinux即可

Arch:

  1.首先添加32位原,在/etc/pacman.conf中取消下面的注释

[multilib]
Include = /etc/pacman.d/mirrorlist

  2.然后

 cd DrClient
./privillege.sh

  3.然后ldd

ldd ./DrClientLinux
    linux-gate.so.1 (0xf779b000)
    libSM.so.6 => /usr/lib32/libSM.so.6 (0xf7762000)
    libICE.so.6 => /usr/lib32/libICE.so.6 (0xf7745000)
    libXi.so.6 => /usr/lib32/libXi.so.6 (0xf7732000)
    libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf7726000)
    libXrandr.so.2 => not found
    libXcursor.so.1 => not found
    libXinerama.so.1 => not found
    libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf7661000)
    libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf7625000)
    libXext.so.6 => /usr/lib32/libXext.so.6 (0xf760f000)
    libX11.so.6 => /usr/lib32/libX11.so.6 (0xf74c0000)
    libz.so.1 => /usr/lib32/libz.so.1 (0xf74a9000)
    librt.so.1 => /usr/lib32/librt.so.1 (0xf74a0000)
    libdl.so.2 => /usr/lib32/libdl.so.2 (0xf749b000)
    libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf747e000)
    libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7306000)
    libm.so.6 => /usr/lib32/libm.so.6 (0xf72b1000)
    libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7297000)
    libc.so.6 => /usr/lib32/libc.so.6 (0xf70e2000)
    libuuid.so.1 => /usr/lib32/libuuid.so.1 (0xf70dc000)
    libbz2.so.1.0 => /usr/lib32/libbz2.so.1.0 (0xf70ca000)
    libpng16.so.16 => /usr/lib32/libpng16.so.16 (0xf708d000)
    libharfbuzz.so.0 => /usr/lib32/libharfbuzz.so.0 (0xf7028000)
    libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf6fff000)
    libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf6fd8000)
    /lib/ld-linux.so.2 (0xf779c000)
    libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf6eb1000)
    libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6ead000)
    libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6ea6000)
    libpcre.so.1 => /usr/lib32/libpcre.so.1 (0xf6e31000)

  4.通过搜索找到需要的32位动态库

pacman -Ss libxrandr
extra/libxrandr 1.5.0-1 [已安装]
    X11 RandR extension library
multilib/lib32-libxrandr 1.5.0-1
    X11 RandR extension library (32-bit)

  5.安装完所有需要的库即可这里只举例一列

sudo pacman -S lib32-libxrandr
[sudo] redusty 的密码:
正在解决依赖关系...
正在查找软件包冲突...

软件包 (1) lib32-libxrandr-1.5.0-1

下载大小:   0.02 MiB
全部安装大小:  0.04 MiB

:: 进行安装吗? [Y/n] 
:: 正在获取软件包......
 lib32-libxrandr-1.5...    15.9 KiB   362K/s 00:00 [######################] 100%
(1/1) 正在检查密钥环里的密钥                       [######################] 100%
(1/1) 正在检查软件包完整性                         [######################] 100%
(1/1) 正在加载软件包文件                           [######################] 100%
(1/1) 正在检查文件冲突                             [######################] 100%
(1/1) 正在检查可用硬盘空间                         [######################] 100%
:: 正在处理软件包的变化...
(1/1) 正在安装 lib32-libxrandr                     [######################] 100%

  6.运行即可

 

 

 

posted @ 2016-03-01 19:00  孙悟坑  阅读(2482)  评论(0编辑  收藏  举报