LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 897|回复: 4

amd64-2005.0上如何使用multilib?

[复制链接]
发表于 2005-8-5 09:31:12 | 显示全部楼层 |阅读模式
我把multilib写到USE里了,但是emerge glibc的时候,还是显示
  1. (-multilib)
复制代码


怎么回事啊?
发表于 2005-8-5 10:06:49 | 显示全部楼层
What is multilib and how can I use it?

Every AMD64 processor is able to run 32-bit code as well as 64-bit code. However, when you have a 32-bit application, you are unable to mix it with 64-bit libraries or vice versa. You can, however, natively run 32-bit applications if all shared libraries it needs are available as 32-bit objects. You can choose whether you want multilib support or not by selecting the according profile. The default is a multilib-enabled profile.

Note: If you are using an old profile (2004.3 or older), please upgrade to 2005.0 and read the 2005.0 Upgrade Guide carefully. Compiling 32-bit Applications From A 64-bit Environment (using multilib)

You must first have the standard 32-bit environment up and running from the previous section. Then you need to add multilib to your USE flags in /etc/make.conf and emerge or re-emerge gcc-3.3.3-r5. This will build GCC with multilib support, which will allow you to create 32-bit binaries by using the -m32 CFLAGS setting. Having multilib installed should not affect 64-bit compilations (though you can pass -m64 if you want to be certain for some reason).

Note: We strongly discourage our users from ever adding -m32 to /etc/make.conf or using -m32 with portage in any form what-so-ever, and recommend that to do 32-bit compiles they should be by hand and not via the portage system. Not paying attention to this could seriously mess up your dependancy structure. Don't ask us how to fix this, it's your fault.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-5 11:30:58 | 显示全部楼层
I install the system with amd64-livecd-2005.0
is that means I should have a standard 32bit-env first to use multilib ?
well, how could I get this ? maybe install form livecd is a pure 64bit system ?
回复 支持 反对

使用道具 举报

发表于 2005-8-5 23:24:38 | 显示全部楼层
multilib 已经是default的,不是可选的。你看看是不是有这个目录。/lib32和/lib64。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-6 14:50:40 | 显示全部楼层
我是发现了,并且完成了32/64的lib更新,很奇怪,为什么会显示 (-multilib) ?
这样括号表示什么意思?不会是default了吧?
emerge --info里,USE也没有multilib
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表