64位linux安装32位库

Mount the install DVD:

mkdir -p /mnt/RHEL
mount /dev/cdrom /mnt/RHEL

Or if you just have the ISO, you can use that instead:

mkdir -p /mnt/RHEL
mount -o loop /path/to/RHEL.iso /mnt/RHEL

Now make a Yum repository which uses the DVD as a repository:

/etc/yum.repos.d/rhel-dvd.repo
[rhel-dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - DVD
baseurl=file:///mnt/RHEL/Server/
enabled=1
gpgcheck=0

You should now be able to clean the yum cache, and install the 32-bit C library:

yum clean all
yum install glibc.i686

You'll see plenty of similar guides telling you to install and run the createrepo command but you don't need to do that. The RHEL disc already is a repository, it already has the /repodata/repomd.xml file which defines a repository.

However, if you take the RPM files on the RHEL disc and copy them somewhere else and start adding your own packages then you need createrepo to build the metadata for the new repository you have created.

转自:http://stackoverflow.com/questions/15435751/installing-32-bit-libraries-glibc-on-64-bit-rhel-without-using-yum

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 可以,在64位Linux系统上,可以安装32位的JDK,只需要在安装时指定32位的版本即可。在安装时,可以使用以下命令指定安装32位的JDK: sudo apt-get install openjdk-8-jdk:i386 或者 sudo apt-get install openjdk-11-jdk:i386 其中,openjdk-8-jdk和openjdk-11-jdk分别是JDK的版本号,后面的:i386表示安装32位版本。 ### 回答2: 可以。64位Linux系统支持安装32位的JDK(Java Development Kit)。在64位Linux系统上,有两种方法可以安装32位的JDK: 1. 通过软件包管理工具安装:在终端中使用以下命令安装32位JDK: ```bash sudo apt-get install openjdk-8-jdk:i386 ``` 这将安装32位的Java开发套件。 2. 手动下载并安装:首先在Oracle官网下载32位的JDK二进制文件。然后将文件解压缩到你想要安装的目录。接下来,你需要设置环境变量,以便系统可以找到该JDK。编辑终端配置文件如`~/.bashrc`或`/etc/environment`,将以下行添加到文件的末尾: ```bash export JAVA_HOME=/path/to/jdk32 export PATH=$JAVA_HOME/bin:$PATH ``` 保存文件后,通过执行以下命令更新配置: ```bash source ~/.bashrc ``` 无论是哪种方法,安装后你就能够在64位Linux系统上运行32位的Java程序。 ### 回答3: 64位Linux可以安装32位的JDK。虽然64位的操作系统可以处理更大的内存和更高的性能,但有些情况下还是需要安装32位的JDK,比如某些应用程序或仍然只能在32位环境下运行。此外,也有些老旧的硬件设备只支持32位的驱动程序,因此需要在64位的操作系统上安装32位的JDK来保证正常运行。在安装32位JDK之前,需要确认操作系统是否已经安装了相应的32位支持和依赖组件,以保证JDK的正常安装和运行。总的来说,64位Linux可以安装32位的JDK以满足一些特定的应用需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值