Is there a script to create an Asterisk binary package after it is compiled on one system. We do not want to compile Asterisk of each system where we want to run. I am sure there is a way but I could find it. Thanks Jim
On Mon, Sep 29, 2008 at 03:41:26AM -0400, Jim Boykin wrote:> Is there a script to create an Asterisk binary package after it is > compiled on one system. > > We do not want to compile Asterisk of each system where we want to > run. I am sure there is a way but I could find it.What system, specifically? With what libraries installed? Which of them are installed on the target system? rpm, deb and such automate much of the process. Chances are that there is already an existing such binary package for your distribution. Just grab it, fix it, and rebuild (and fix, and rebuild, and deploy, and fix and rebuild, etc.) -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Just copy the src folder and do `make install` on each machine? Then tar and copy the /etc/asterisk folder if config is important too. On 29 Sep 2008, at 08:41, Jim Boykin wrote:> Is there a script to create an Asterisk binary package after it is > compiled on one system. > > We do not want to compile Asterisk of each system where we want to > run. I am sure there is a way but I could find it. > > Thanks > Jim > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Steven Howes wrote:> Just copy the src folder and do `make install` on each machine? > Then tar and copy the /etc/asterisk folder if config is important too. > > On 29 Sep 2008, at 08:41, Jim Boykin wrote: > >> Is there a script to create an Asterisk binary package after it is >> compiled on one system. >> >> We do not want to compile Asterisk of each system where we want to >> run. I am sure there is a way but I could find it. >>Another way is after running "./configure --prefix=/your_prefered_layout" and make, when running the "make install" command set the DESTDIR prefix to something like ~/asterisk and it will install everything under that prefix. e.g $ make DESTDIR=$HOME/asterisk install You can then make a tarball of the hierarchy from within the DESTDIR root and extract it into the right place (i.e. "/") of any other host. Of course all this assumes: 1. you know what you are doing ;-) 2. your hosts are all using the same versions of kernels/libraries etc... HTH Alan>> Thanks >> Jim >> >> _______________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> AstriCon 2008 - September 22 - 25 Phoenix, Arizona >> Register Now: http://www.astricon.net >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
We use RHEL5, FC6, & CentOS5. I will be happy to hear your inputs for any distribution you know. On Mon, Sep 29, 2008 at 3:41 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:> On Mon, Sep 29, 2008 at 03:34:45PM +0530, Jim Boykin wrote: >> Thanks Alan, I will try it out. Seems like a solution. Your assumption >> is right, all system are same (ghosted). >> >> I am also looking at pre-build RPM and reusing their specs file. >> Anyone have input for building asterisk RPM. > > Again, what distribution is it?