linux - How can I install MONO on Centos 5, without compiling from source -
i install reasonably recent version of mono on centos 5 system. ideally prefer not have build source.
i set mono.repo
file in yum.repos.d
:
[mono] name=mono stack (rhel_5) type=rpm-md baseurl=http://download.mono-project.com/repo/centos/ gpgcheck=1 gpgkey=http://download.mono-project.com/repo/centos/repodata/repomd.xml.asc enabled=1
when tried use repo, got error performing checksum
. however, found this link. told me install python-hashlib
, fixed problem.
then ran install command:
yum install monodevelop loaded plugins: fastestmirror loading mirror speeds cached hostfile * base: mirror.ubiquityservers.com * epel: mirror.steadfast.net * extras: cosmos.cites.illinois.edu * updates: mirror.tzulo.com setting install process resolving dependencies --> running transaction check ---> package monodevelop.noarch 0:5.9.0.431-2 set updated --> processing dependency: mono-devel package: monodevelop --> processing dependency: xsp package: monodevelop --> processing dependency: mono-basic package: monodevelop --> processing dependency: mono-web package: monodevelop --> processing dependency: nunit package: monodevelop --> running transaction check ---> package nunit.noarch 0:2.6.3-0 set updated --> processing dependency: mono(system.windows.forms) = 2.0.0.0 package: nunit ---> package mono-core.i386 0:1.2.4-2.el5.centos set updated --> processing dependency: libgdiplus package: mono-core ---> package mono-devel.i386 0:1.2.6-6.1.el5 set updated --> processing dependency: mono-core = 1.2.6-6.1.el5 package: mono-devel --> processing dependency: mono(mono.cecil) = 0.6.8.8607 package: mono-devel ---> package mono-web.i386 0:1.2.6-6.1.el5 set updated --> processing dependency: mono(system.enterpriseservices) = 2.0.0.0 package: mono-web --> processing dependency: mono(system.enterpriseservices) = 1.0.5000.0 package: mono-web --> processing dependency: mono(system.data) = 2.0.0.0 package: mono-web --> processing dependency: mono(system.data) = 1.0.5000.0 package: mono-web ---> package xsp.i386 0:1.2.1-1.el5.centos set updated --> running transaction check ---> package libgdiplus.i386 0:1.2.6-1.el5 set updated --> processing dependency: libungif.so.4 package: libgdiplus ---> package mono-core.i386 0:1.2.4-2.el5.centos set updated --> processing dependency: mono-basic package: monodevelop ---> package mono-core.i386 0:1.2.6-6.1.el5 set updated ---> package mono-data.i386 0:1.2.6-6.1.el5 set updated ---> package mono-winforms.i386 0:1.2.6-6.1.el5 set updated --> processing dependency: libgdiplus-devel package: mono-winforms --> running transaction check ---> package giflib.i386 0:4.1.3-7.3.3.el5 set updated ---> package libgdiplus-devel.i386 0:1.2.6-1.el5 set updated ---> package mono-basic.noarch 0:4.0.1-1 set updated --> processing dependency: mono(system.windows.forms) = 4.0.0.0 package: mono-basic --> processing dependency: mono(system.drawing) = 4.0.0.0 package: mono-basic --> processing dependency: mono(system) = 4.0.0.0 package: mono-basic --> processing dependency: mono(system.core) = 4.0.0.0 package: mono-basic --> processing dependency: mono(mscorlib) = 4.0.0.0 package: mono-basic --> finished dependency resolution mono-basic-4.0.1-1.noarch mono has depsolving problems --> missing dependency: mono(system.core) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) mono-basic-4.0.1-1.noarch mono has depsolving problems --> missing dependency: mono(mscorlib) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) mono-basic-4.0.1-1.noarch mono has depsolving problems --> missing dependency: mono(system) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) mono-basic-4.0.1-1.noarch mono has depsolving problems --> missing dependency: mono(system.drawing) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) mono-basic-4.0.1-1.noarch mono has depsolving problems --> missing dependency: mono(system.windows.forms) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) error: missing dependency: mono(system.core) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) error: missing dependency: mono(system) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) error: missing dependency: mono(mscorlib) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) error: missing dependency: mono(system.drawing) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono) error: missing dependency: mono(system.windows.forms) = 4.0.0.0 needed package mono-basic-4.0.1-1.noarch (mono)
now i'm stuck!
the answer use pre-built packages https://lbs.solidcharity.com/package/tpokorra/mono/mono-opt
thanks timotheus pokorra providing them.
note: need add provided env.sh
/etc/profile.d
(or individual profile) set necessary environment variables.
to use libgdiplus, need add /usr/local/lib
/etc/ld.so.conf
(or, better, add file containing text /etc/ld.so.conf.d
).
Comments
Post a Comment