Confirmed users
1,905
edits
(→Setup) |
|||
| Line 20: | Line 20: | ||
In order to build B2G, the usual libs need to be installed. However, B2G needs 32-bit libs, and these are not available by default on this 64-bit VM. | In order to build B2G, the usual libs need to be installed. However, B2G needs 32-bit libs, and these are not available by default on this 64-bit VM. | ||
To address this, it's necessary to create a file called <code>/etc/yum.repos.d/amzn-main-32</code> with the following contents: | |||
[amzn-main-32] | |||
name=amzn-main-Base-32 | |||
baseurl=http://packages.us-east-1.amazonaws.com/2011.09/main/628cacc71fec/i386 | |||
metadata_expire=300 | |||
priority=1 | |||
failovermethod=priority | |||
fastestmirror_enabled=0 | |||
gpgcheck=1 | |||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-ga | |||
enabled=1 | |||
If you are setting this up on a different machine, you can get the gpgkey path from one of the existing files, and the baseurl from http://repo.us-east-1.amazonaws.com/latest/main/mirror.list | |||
After adding the above file, you'll need to re login for the changes to take effect. Then, you can install 32-bit libs by adding '.i686' to the lib name, for example: | |||
# installs 64-bit readline | |||
sudo yum install readline-devel | |||
# installs 32-bit readline | |||
sudo yum install readline-devel.i686 | |||