Joe Morris (NTM) wrote:
B. Stia wrote:
Question: Am running an AMD 64 processor. There are still not all programs that are 64 bit. I know that the system will handle 32 bit stuff but I was wondering if an src file can be compiled to 64 bit.
Ex: Tonight I went to download smart at Guru's site. There were no 64 bit versions, only i686 and src's. I hesitated to download either because I didn't know if either of them would work without problems. You could always try and see, but be prepared to install quite a few more devel packages. Try this (as root if you are not set up to build rpm packages as a normal user), rpmbuild --rebuild --target=x86_64 <packagename>.src. If it works, you can find your new shiny rpm in /usr/src/packages/RPMS/x86_64. HTH
Bulding rpms is user stuff. Don't ever do user stuff at root; you run the risk that you will stuff up (don't we all?) and maybe clobber your system as that chap with the GRUB problem seems to have done. Instead, learn how ot configure rpm to build programs as a user. Many times I argued this on redhat-devel, and eventually it seems Red Hat has managed to "covert" all its packages to build without root privilege.