在 CentOS 5 上构建 Ruby 32 位
我在尝试 ./configure && 时遇到了麻烦制作&&在 CentOS 64 位中将 ruby 1.9.2 安装为 32 位软件包。无论我如何配置和构建它,它似乎总是以 64 位包的形式出现。
我尝试使用 CFLAGS="-m32" LDFLAGS="-m32" CXXFLAGS="-m32" 和 —target=i686-unknown-linux-gnu 选项运行 ./configure 命令。最后一个选项更改了生成的 ruby 命令中显示的体系结构,但它仍然是 64 位。
我还尝试安装 rvm,然后使用他们在故障排除 docs。
我也在尝试 ./configure &&在我的 CentOS 32 位安装中进行 make,然后将其复制到我的 64 位安装中,然后运行 make install。我不知道这是否有效。
我已经在互联网上寻找帮助一天多了,但似乎在谷歌上找不到太多东西。看来我没有找到运行 ./configure && 时设置的神奇选项组合。制作&&进行安装。
如果您需要更多信息,请告诉我,我很乐意提供。感谢您的帮助。
编辑:查看我在互联网上的资料并重读这个,特别是某人的指示如何使用搜索命令将 Ruby 编译为 32 位。我使用 yum 安装 setarch,然后按照这些指示进行操作 - 仍然没有运气。 Ruby 仍然编译为 64 位。
I've been having trouble trying to ./configure && make && make install ruby 1.9.2 in CentOS 64-bit as a 32-bit package. No matter how I configure and build it, it always seems to come out as a 64-bit package.
I've tried running the ./configure command with the CFLAGS="-m32" LDFLAGS="-m32" CXXFLAGS="-m32" and the —target=i686-unknown-linux-gnu option. That last option changed the architecture that showed up in the resulting ruby command, but it was still 64-bit.
I've also tried installing rvm and then installing ruby 1.9.2 with the flags they recommended in their troubleshooting docs.
I'm also trying ./configure && make in a 32-bit installation of CentOS I have and then copying that over to my 64-bit install and then running make install. I have no idea if this will work.
I've been looking around the internet for help for well over a day and can't seem to find much on google. It seems that I'm not finding the magical combination of options to set when running ./configure && make && make install.
Let me know if you need any more information and I'd be happy to provide it. Thanks for your help.
Edit: Looked over my sources on the internet and reread this, specifically someone's instructions on how to compile Ruby as 32-bit, using the search command. I used yum to install setarch and then followed those directions - still no luck. Ruby's still compiling as 64-bit.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否安装了这些库 - http ://www.linuxweblog.com/blogs/sandip/20080718/support-32-bit-development-libraries-64-bit-centos
Have you installed these libraries - http://www.linuxweblog.com/blogs/sandip/20080718/support-32-bit-development-libraries-64-bit-centos