LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to create a mono 3.0 RPM package (https://www.linuxquestions.org/questions/linux-software-2/how-to-create-a-mono-3-0-rpm-package-4175454646/)

qrpengx 03-19-2013 03:47 AM

How to create a mono 3.0 RPM package
 
hi~
I recently found myself needing to build Mono 3.0 for CentOS 6.
Because there are currently no Mono 3.0 RPMs that I could find
How to create a mono 3.0 RPM package

eklavya 03-19-2013 10:01 AM

Code:

yum -y update
yum -y install glib2-devel
yum -y install libpng-devel
yum -y install libjpeg-devel
yum -y install giflib-devel
yum -y install libtiff-devel
yum -y install libexif-devel
yum -y install libX11-devel
yum -y install fontconfig-devel
yum -y install gettext
yum -y install make
yum -y install gcc-c++

Code:

export echo=echo

# build libgdiplus
curl -O http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2
bunzip2 libgdiplus-2.10.9.tar.bz2
tar xvf libgdiplus-2.10.9.tar
cd libgdiplus-2.10.9
./configure --prefix=/usr/local
make
make install

# build mono
curl -O http://download.mono-project.com/sources/mono/mono-3.0.0.tar.bz2
bunzip2 mono-3.0.0.tar.bz2
tar xvf mono-3.0.0.tar
cd mono-3.0.0
./configure --prefix=/usr/local
make
make install

Code:

# tell binfmt how to launch CLR executables
echo ':CLR:M::MZ::/usr/local/bin/mono:' > /proc/sys/fs/binfmt_misc/register



---------- Post added 03-19-13 at 10:02 AM ----------

If you are still facing problems, try this.
http://jmainguy.com/index.php/instal...tos-linux-6-3/


All times are GMT -5. The time now is 05:08 PM.