LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install mono? (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-mono-699646/)

Red Squirrel 01-24-2009 03:09 PM

How to install mono?
 
Has anyone ever successfully install this?

I'm trying to install it but pulling my hair out.

It keeps saying it wants this libexif.so.9 file yet it EXISTS. It refuses to go further. Isin't yum suppose to take care of that? I don't understand why it's giving met this trouble.

Quote:

[root@destard lib]# yum install mono
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mono-core.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: libgdiplus0 for package: mono-core
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated
--> Processing Dependency: libexif.so.9 for package: libgdiplus0
--> Finished Dependency Resolution
Error: Missing Dependency: libexif.so.9 is needed by package libgdiplus0
[root@destard lib]#

If I try to install libgdiplus I get the same error. Whats going on? I thought yum was supose to automatically resolve dependencies.

Renan_S2 01-24-2009 03:53 PM

Try reinstalling the package which owns libexif.so.9.

Or, from here: http://www.centos.org/modules/newbb/...11944&forum=38

"Just make sure that the extras repository is enabled and do a 'yum install mono-core'. "

Red Squirrel 01-24-2009 06:09 PM

I tried all of that, no go. Though I'm using FC7, would I have better luck with centOS?

r3sistance 01-25-2009 01:45 AM

A bit strange it didn't install a dependacy, maybe the mono installer is out of shift for FC7 since FCs tend to come out like every 6 months. might be worth a try on a newer version of FC first if you are unable to install the dependancies via yum. CentOS is great for servers but not so great for desktops, can still work for desktops but setting up simple things like mp3 codecs are quite alot harder on CentOS for example, it's more geared towards being a server since it's a direct RHEL clone.

Red Squirrel 01-25-2009 11:37 AM

Trying FC9, the one I downloaded was actually made for FC9. This will be a server.

Red Squirrel 01-28-2009 09:35 PM

Just tried with CentOS 5.2 x86. Still no go, exact same error.

Code:

[root@destard runuo]# yum install mono
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mono-core.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: libgdiplus0 for package: mono-core
--> Running transaction check
---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated
--> Processing Dependency: libungif.so.4 for package: libgdiplus0
--> Processing Dependency: libexif.so.9 for package: libgdiplus0
--> Running transaction check
---> Package giflib.i386 0:4.1.3-7.1.el5.1 set to be updated
---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated
--> Processing Dependency: libexif.so.9 for package: libgdiplus0
--> Finished Dependency Resolution
Error: Missing Dependency: libexif.so.9 is needed by package libgdiplus0
[root@destard runuo]#


I even tried "yum install libexif" and "yum instal libexif-devel" which both install, but its still telling me they don't exist.

I also checked this post: http://www.centos.org/modules/newbb/...11944&forum=38

Tried everything there, no go. I'm really at loss. IS there another distro I could try? I'm open to any distro as this box will be pretty much dedicated to running a .net application.

Or should I just rewrite the application in C++? Would that be easier? (about 500k lines of code or so)

Red Squirrel 01-28-2009 11:21 PM

Ok got it working, I was actually suppose to NOT use the mono provided repository.

Not sure if this is mono specific or specific to the app I'm compiling but I get this error:

Code:


Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
  at Mono.CSharp.TypeManager.UnifyType (System.Type pt, System.Type at, System.Type[] inferred) [0x00000]
  at Mono.CSharp.TypeManager.UnifyTypes (System.Type[] pts, System.Type[] ats, System.Type[] inferred) [0x00000]
  at Mono.CSharp.TypeManager.UnifyType (System.Type pt, System.Type at, System.Type[] inferred) [0x00000]
  at Mono.CSharp.TypeManager.InferTypeArguments (System.Type[] param_types, System.Type[] arg_types, System.Type[] inferred_types) [0x00000]
  at Mono.CSharp.TypeManager.InferTypeArguments (Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments, System.Reflection.MethodBase& method) [0x00000]
  at Mono.CSharp.MethodGroupExpr.OverloadResolve (Mono.CSharp.EmitContext ec, System.Collections.ArrayList Arguments, Boolean may_fail, Location loc) [0x00000]
  at Mono.CSharp.MethodGroupExpr.OverloadExtensionResolve (Mono.CSharp.EmitContext ec, System.Collections.ArrayList& arguments, Mono.CSharp.MethodGroupExpr& mg, Mono.CSharp.Expression expr, Location loc) [0x00000]
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags flags) [0x00000]
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.Return.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable) [0x00000]
  at Mono.CSharp.EmitContext.EmitTopBlock (IMethodData md, Mono.CSharp.ToplevelBlock block) [0x00000]
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000]
  at Mono.CSharp.Method.Emit () [0x00000]
  at Mono.CSharp.TypeContainer.EmitType () [0x00000]
  at Mono.CSharp.RootContext.EmitCode () [0x00000]
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]

Could someone point me in right direction as to where I should look to try and debug this? No line errors or anything make it rather hard.

This would probably be better posted at the mono forums but their forums are broken. Can't register there for some reason. Keeps saying the auth code is wrong even though I type it in exactly.


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