Skip to content

BuildingOnLinux

Phil Shafer edited this page Oct 4, 2013 · 1 revision

Building for Linux (Fedora18)

Here are my notes from building RPMs under Fedora18. This is run under vagrant (vagrantup.com).

Install 'yum':

fetch http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
tar zxf yum-3.4.3.tar.gz 
cd yum-3.4.3
make
make install

Install software prerequisites:

yum install rpm-build.x86_64
yum install redhat-rpm-config.noarch
yum install libxml2-devel.x86_64
yum install libxslt-devel.x86_64
yum install libcurl-devel.x86_64
yum install libssh2-devel.x86_64
yum install bison.x86_64
yum install bison-devel.x86_64
yum install libedit-devel.x86_64

Optional:

yum install ntpdate.x86_64
rpm -i /vagrant/ntpdate-4.2.6p5-8.fc18.x86_64.rpm 

Install libslax:

wget https://github.com/Juniper/libslax/releases/download/0.16.16/libslax-0.16.16.tar.gz
tar zxf libslax-0.16.16.tar.gz 
cd libslax-0.16.16
sh bin/setup.sh 
../configure

Build an RPM:

cp /vagrant/libslax-0.16.16.tar.gz /root/rpmbuild/SOURCES/
rpmbuild -ba packaging/libslax.spec 
Clone this wiki locally