I was asked if there are mono packages available for CentOS7 32 bit.

CentOS7 was initially only released for 64 bit, but in October 2015, it was released for 32 bit as well: http://seven.centos.org/2015/10/centos-linux-7-32-bit-x86-i386-architecture-released/

So I checked my build options: OBS does not support CentOS7 for 32 bit yet, neither does copr.

So I decided to try to build the packags on LBS. I had to modify my lxc scripts to be able to create a container for CentOS7 32 bit, and that was quite easy (https://github.com/tpokorra/lxc-scripts/issues/19).

Now there are the packages mono-opt, mono-basic-opt and mono-xsp-opt available for CentOS7 32bit.

To use them, run this:

rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x4796B710919684AC"
yum install yum-utils
yum-config-manager --add-repo https://lbs.solidcharity.com/repos/tpokorra/mono/centos/7/lbs-tpokorra-mono.repo
yum install mono-opt mono-xsp-opt mono-basic-opt mono-libgdiplus-opt

Make sure to call . /opt/mono/env.sh (mind the space after the dot) before you do any Mono calls!

Tags: , ,
Posted in Software Development | Comments Closed

Mono 4 for CentOS5   June 11th, 2015

As you may have noticed, the Mono packages provided by Xamarin won’t work on CentOS5, because some libraries are too old.

Yesterday, I realized that my Mono build for CentOS5 was still on version 3.12.1.

So I updated my Mono packages on LBS, and we have the latest Mono 4.0.1.44 available for CentOS5 now.

To install it, follow the instructions at https://lbs.solidcharity.com/package/tpokorra/mono/mono-opt:

wget https://download.solidcharity.com/repos/tpokorra/mono/centos/5/lbs-tpokorra-mono.repo -O /etc/yum.repos.d/lbs-tpokorra-mono.repo
yum install mono-opt mono-opt-devel

To use it, you need to call the environment script first (mind the space between the dot and the slash…):

. /opt/mono/env.sh
Tags: , ,
Posted in Software Development | Comments Closed

This is an updated version of the post Install OpenPetra.Now 2014-05 on CentOS5.

Now we are installing on CentOS6, and using my own LBS repository. OpenPetra.Now is now using the unmodified Mono-opt packages.

OpenPetra.Now is a tagged revision of the official OpenPetra, plus some patches which have not made it into the official OpenPetra yet. This includes a replacement of .Net remoting with https webservices, and a plugin system.

These are the instructions:

Install the Epel repository, the Postgresql repository and my OpenPetra repository.

For Postgresql, have a look here: http://yum.postgresql.org/repopackages.php#pg92

Epel Repo (for lighttpd): see http://mirror.de.leaseweb.net/epel/6/x86_64/repoview/epel-release.html

For the mono-opt repository, have a look here:
http://lbs.solidcharity.com/detail/tpokorra/mono/mono-opt

rpm -Uhv http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
rpm -Uhv http://mirror.de.leaseweb.net/epel/6/x86_64/epel-release-6-8.noarch.rpm
cd /etc/yum.repos.d/
wget http://lbs.solidcharity.com/repos/tpokorra/mono/centos/6/lbs-tpokorra-mono.repo
wget http://lbs.solidcharity.com/repos/tpokorra/openpetra/centos/6/lbs-tpokorra-openpetra.repo

Now install the packages (this will automatically also install the packages mono-opt, postgresql92, lighttpd and some other dependencies):

yum install openpetranow-server

Now configure the OpenPetra server, and start it:

/etc/init.d/openpetra-server init
chkconfig openpetra-server on

To test the server, connect to http://<yourhostname>/openpetra9000/serverSessionManager.asmx

Tags: , , ,
Posted in Software Development | Comments Closed

OpenPetra.Now is a tagged revision of the official OpenPetra, plus some patches which have not made it into the official OpenPetra yet. This includes a replacement of .Net remoting with https webservices, and a plugin system.

For an installation which involves upgrading from the old Petra 2.3 every night, I had to install OpenPetra.Now on a CentOS5 based system.

These are the instructions:

Install the Epel repository, the Postgresql repository and my OpenPetra repository.

If you have a 64 bit system, the links will be different.

For Postgresql, have a look here: http://yum.postgresql.org/

For the mono-openpetra repository, have a look here:
http://software.opensuse.org/download/package?project=home:tpokorra:openpetra&package=mono-openpetra

rpm -Uhv http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uhv http://yum.postgresql.org/9.2/redhat/rhel-5-i386/pgdg-centos92-9.2-6.noarch.rpm
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:tpokorra:openpetra/CentOS_CentOS-5/home:tpokorra:openpetra.repo

Now install the packages (this will automatically also install the packages mono-openpetra, postgresql92, lighttpd and some other dependencies):

yum install openpetranow-server

Now configure the OpenPetra server, and start it:

/etc/init.d/openpetra-server init
chkconfig openpetra-server on
Tags: , , ,
Posted in Software Development | Comments Closed

Build OBS packages locally for CentOS   November 13th, 2013

Sometimes it is just quicker to test the building of a CentOS package locally, than to wait for the OBS server to build it.
You also get a chance to search the BUILD directory for files that you might be missing.

I have written how to do this for Debian in an earlier post (see near the bottom): http://www.pokorra.de/2013/10/howto-improve-debian-packages-using-obs/

See also http://software.opensuse.org/download?package=osc&project=openSUSE%3ATools how to install osc for all sorts of Linux distributions!

For CentOS, you do this:

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/openSUSE:Tools/CentOS_6/openSUSE:Tools.repo
yum install osc build
osc -A https://obs.kolabsys.com:444/ checkout home:timotheus:branches:Kolab:Development
cd home:timotheus:branches:Kolab:Development/kolab-utils
osc build CentOS_6 x86_64 kolab-utils.spec --no-verify

Without the –no-verify parameter, you get errors like these:

/var/tmp/osbuild-packagecache/CentOS:6/release/x86_64/acl-2.2.49-6.el6.x86_64.rpm : public key not available
/var/tmp/osbuild-packagecache/CentOS:6/release/x86_64/attr-2.4.44-7.el6.x86_64.rpm : public key not available
[...]

By the way, you find the BUILDROOT in:

/var/tmp/build-root/CentOS_6-x86_64/home/abuild/rpmbuild/BUILDROOT/
Tags: , ,
Posted in Software Development | Comments Closed