I used the following instructions to install Mono on a clean install of Ubuntu 12.
http://forums.osgrid.org/viewtopic.php?f=14&t=4625
When I run mono --runtime=v4.5 Test.exe, I get the following error:
WARNING: The runtime version supported by this application is
unavailable. Using default runtime: v2.0.50727.
If I set the runtime to v4.0, the program will run initially until it reaches a .Net 4.5 only method, specifically Monitor.IsEntered, causing a MissingMethodException to be thrown.
I do have a directory called /opt/mono-3.2.3/lib/mono/4.5.
How do I fix Mono so I can run this program under the 4.5 framework?
It looks like you found the answer: Mono hasn't implement Monitor.IsEntered() yet.
It's interesting why this TODO is not evident from the Mono Class Status page, though...
Related
I have a .NET Framework (not .NET Core) C# Selenium project. It works under Windows 8.1/10.
I recently installed Rider in my new Ubuntu 18.04 instance. I installed Mono project using this guide but Rider shows 2 problems, after opening it up:
15:01 Project 'selenium_IALB' load finished with warnings: Object reference not set to an instance of an object
15:01 Project 'MICE' load finished with warnings: Task could not find "AxImp.exe" using the SdkToolsPath "/usr/lib/mono/4.5/" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.7.1\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed at (2686:5)
I found few questions answered here of how to resolve that problem on Windows for example but it says to install Windows SDK... which is not allowed on Ubuntu i guess (as i found).
As it is shown on the screen below, i have problems with some classes (yellow warning sign). In code it looks like they are missing.
The question is if it is normal that i have that "AxImp.exe" problem under Ubuntu and if yes, how can i solve it? It also does not work on Linux Mint.
EDIT: I resolved the issue of missing reference to those "yellow signed" classes. I've just change their names in the solution folder (ie. helpers.cs -> Helpers.cs). However, missing "AxImp.exe" file is still a problem and the solution does not compile.
I am trying to run my pharo2.0 application on CentoOS which was previously been installed in a mac. The original version is pharo2.0 so I need to run the same image CentoOS too, but I get an error which says this below :
/lib/libc.so.6: version `GLIBC_2.15' not found (required by xxxxx)
Should I be trying to upgrade the CentoOS and see if pharo2.0 works or port my whole application to a later version of pharo?
There is now a VM build especially for systems with an older libc version. In fact there is a build for Centos specifically (which has a slight variation in linkages from Debian), the latest version of which is permalinked here. See http://pharo.org/download#custom for more info.
I want to use iReport on ubuntu 12.04. When I try to start it, it stands still and just gives me this error:
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/jna4023560596826437553.tmp which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
How can I solve this problem ?
Edit: I tried: execstack -c /tmp/jna4023560596826437553.tmp but that didn't help.
This error seems more related to a JVM problem instead of jasper. Indeed, Java 7 on linux has a feature which blocks code written in C (or other languages like Ruby etc) and linked into Java (the so-called Java Native Interface - JNI) from halting the whole VM if it’s written badly or maliciously.
So, if you're using java version 1.7, getting back to 1.6 should do the trick. But if you want to keep this version, then try a clean uninstall and re-install of java:
Uninstall,
Install
Notice that if you're not running on 1.7 , it could be a compatibility problem. Try to match the right jars required for iReport to get it work on linux.
I'm using ubuntu and I did below,
Opened the ireport.conf
and uncomment jdkhome
and added java 7 paths (since my default is java 8)
jdkhome=/home/bhanuka/Apps/jdk-7u80-linux-x64/jdk1.7.0_80
I am first time installing Ruby on Rails on a Mac OSX 10.8 machine and it is generating the following error :-
Error running './configure --prefix=/Users/tcs/.rvm/rubies/ruby-1.9.3-p392 --with-opt- dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/tcs/.rvm/log/ruby-1.9.3-p392/1366722478_configure.log
There has been an error while running configure. Halting the installation.
I have read lot of blogs and articles but this error sticks every time I try to install RoR.
I have Xcode 4.6 installed on the Mac.
if the c compiler can't creat executables you probably just need to install the Xcode command line tools.
When I compile a simple web application on my machine it works without problems.
However when I publish to the server always gives me the following error:
Could not load type 'System.Collections.Generic.Dictionary `2' from assembly 'mscorlib, Version = 4.0.0.0,
In my local machine I have the following directory that does not exist on the server:
/usr/lib/mono/4.0/
I've tried to install gtk-sharp-2.12.11 but in the end gives the following error:
Requested 'gtk + -2.0> = 2.12.0' but version of GTK + is 2.10.4
Please help me
Thanks
Paulo Santos
The gtk# binding, in its version 2.12, simply depends on gtk+ version 2.12.
You need to upgrade your Fedora if you want to use that version.
However, take in account that the gtk platform is only useful for desktop development, not web development, so I think you're mixing things up.
Try installing the "dmcs" compiler in Fedora. (You may have a very old version of Mono that doesn't include this 4.0-profile compiler, what version of Mono do you have installed?)