On Friday, May 22, 2015 at 9:21:56 AM UTC+1, Marco van Wieringen wrote:
> G Jo <g.johnston <at> kainos.com> writes:
>
> >
> > Hi,
> >
> > I'm not ashamed to admit that, as i'm sure you'll have guessed, a lot
> > of the open source build world is new to me. After installing the
> > OpenSuse buiild Service my command attempt to build the package is
> >
> > osc build openSUSE_12.4 x86_64
> /root/bareos-master/platforms/packaging/bareos.spec
> >
> > However this returns the following error.
> >
> > Error: '/root/bareos-master/platforms/packaging' is not an osc project
> > dir or working copy
> >
> > Am i along the right lines here and if not could you please tell me what
> > command i use to build the bareos.
> >
> You probably need to build a proper OSC project for it first which may
> be somewhat overkill for what you are trying to accomplish.
>
> Given I have scripts for setting up a build environment myself I forgot
> that we have good documentation for developers for doing the setup and
> compiling including a mostly accurate configure cmdline. See:
>
> http://www.bareos.org/en/howto-contribute.html
>
> --
> Marco van Wieringen [email protected]
> Bareos GmbH & Co. KG Phone: +49-221-63069389
> http://www.bareos.com
>
> Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
> Komplementär: Bareos Verwaltungs-GmbH
> Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens,
> P. Storz, M. v. Wieringen
Hi Marco,
Thanks for pointing me towards the command line compilation documentation.
A couple of iterations of attempting to use the configure command in the Howto
Compile section led to getting a version that completed successfully with the
following changes:
1. Added path to postgresql base dir
--with-postgresql=/usr/pgsql-9.4 \
2. Removed the 3 switches based on errors they caused and intention to use
postgres as backend db for bareos.
--enable-acl \
--with-mysql \
--with-sqlite3 \
3. This left the following configure command which completes successfully.
./configure --prefix=/usr \
--sbindir=/usr/sbin \
--with-sbin-perm=755 \
--sysconfdir=/etc/bareos \
--with-archivedir=/var/lib/bareos/storage \
--with-scriptdir=/usr/lib/bareos/scripts \
--with-plugindir=/usr/lib/bareos/plugins \
--with-working-dir=/var/lib/bareos \
--with-pid-dir=/var/lib/bareos \
--with-bsrdir=/var/lib/bareos \
--with-logdir=/var/log/bareos \
--with-subsys-dir=/var/lock \
--enable-smartalloc \
--disable-conio \
--enable-readline \
--enable-batch-insert \
--enable-dynamic-cats-backends \
--enable-bat \
--enable-traymonitor \
--enable-xattr \
--enable-scsi-crypto \
--enable-ndmp \
--enable-ipv6 \
--with-postgresql=/usr/pgsql-9.4 \
--with-tcp-wrappers \
--with-openssl \
--with-dir-user=${DIRECTOR_DAEMON_USER} \
--with-dir-group=${DAEMON_GROUP} \
--with-sd-user=${STORAGE_DAEMON_USER} \
--with-sd-group=${STORAGE_DAEMON_GROUP} \
--with-fd-user=${FILE_DAEMON_USER} \
--with-fd-group=${DAEMON_GROUP} \
--with-dir-password="Evolve" \
--with-fd-password="Evolve" \
--with-sd-password="Evolve" \
--with-mon-dir-password="Evolve" \
--with-mon-fd-password="Evolve" \
--with-mon-sd-password="Evolve" \
--with-basename="BackupServer" \
--with-hostname="BackupServer" \
--enable-includes
4. Once I added the openssl-devel yum I got past the TLS_CONTEXT error in a
subsequent make.
5. Unfortunately the make step then fails with the following error
make -C src/qt-console
make[1]: Entering directory `/root/bareos-master/src/qt-console'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory `/root/bareos-master/src/qt-console'
make: *** [src/qt-console] Error 2
Would you have any idea what configuration I am missing here?
I had to install the PyQt4-devel.x86_64 yum to fix a previous configure step
error i.e “configure: error: Unable to find suitable Qt4 installation needed by
bat”
Thanks again for all the help.
Regards,
George
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.