[Mono-dev] Error trying to compile mono on CentOs 5

nikkilocke nikki at trumphurst.com
Wed Jun 10 14:32:10 UTC 2015


I would like to run mono on CentOs 5.

I tried installing binaries using the instructions at
http://www.mono-project.com/docs/getting-started/install/linux/

It failed because there is no command yum-config-manager on CentOs 5.

I manually installed the mono repo, and tried again.

It failed because CentOs 5 does not understand the checksums used.

I manually installed python-hashlib and tried again.

This time it failed with the following errors:

mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System.Core) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(mscorlib) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System.Drawing) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System.Windows.Forms) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System.Core) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(mscorlib) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System.Drawing) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System.Windows.Forms) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)

So now I am trying to build mono on CentOs 5, using the instructions at
http://www.mono-project.com/docs/compiling-mono/compiling-from-git/

I cloned the git repository, and ran ./autogen.sh --prefix=/usr/local
This gave me 2 messages:

You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'
aclocal: unrecognized option -- `-Wnone'

I copied the libtool.m4 file to aclocal.m4, and tried again - still got the
second message. I removed the -Wnone flag from autogen.sh and ran again - it
went to completion.

I then ran make, and that failed with:

Making all in libgc
make[2]: Entering directory `/usr/src/mono/libgc'
make[2]: *** No rule to make target `all'.  Stop.
make[2]: Leaving directory `/usr/src/mono/libgc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mono'
make: *** [all] Error 2

This is presumably because the configuration process has not created a
Makefile in libgc.

What do I do now?



--
View this message in context: http://mono.1490590.n4.nabble.com/Error-trying-to-compile-mono-on-CentOs-5-tp4666171.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list