开发者

Building Ruby 32-bit on CentOS 5

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 recommend开发者_运维百科ed 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.


Have you installed these libraries - http://www.linuxweblog.com/blogs/sandip/20080718/support-32-bit-development-libraries-64-bit-centos

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜