Document directory
- System. dllnotfoundexception
This article records the installation of the mono 3.0.6 deployment package mentioned in openpetra and centos mono 6.3 deployment package under centos 3.0.
First download the RPM package:
[Azureuser @ mono local] $ sudo wget http://downloads.sourceforge.net/project/openpetraorg/openpetraorg/mono-openpetra/centos6/mono-openpetra-3.0.6-1.x86_64.rpm
-- 13:29:56 -- http://downloads.sourceforge.net/project/openpetraorg/openpetraorg/mono-openpetra/centos6/mono-openpetra-3.0.6-1.x86_64.rpm
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net | 216.34.181.59 |: 80... connected.
HTTP request sent, awaiting response... 302 found
Location: http://iweb.dl.sourceforge.net/project/openpetraorg/openpetraorg/mono-openpetra/centos6/mono-openpetra-3.0.6-1.x86_64.rpm [following]
-- 13:29:57 -- http://iweb.dl.sourceforge.net/project/openpetraorg/openpetraorg/mono-openpetra/centos6/mono-openpetra-3.0.6-1.x86_64.rpm
Resolving iweb.dl.sourceforge.net... 70.38.0.134, 2607: f748: 10: 12: 5f: 2
Connecting to iweb.dl.sourceforge.net | 70.38.0.134 |: 80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 118812004 (113 m) [application/X-RedHat-package-manager]
Saving to: â € mono-openpetra-3.0.6-1.x86_64.rpm â €
100% [============================================== >] 118,812,004 1.01 m/s in 4 M 21 s
13:34:18 (445 kb/s)-â € mono-openpetra-3.0.6-1.x86_64.rpm â €
After downloading the RPM package, you can find that the installation package has been installed in the/opt/mono-openpetra directory, and does not support redirection of the installation directory:
[Azureuser @ mono local] $ sudo Yum install mono-openpetra-3.0.6-1.x86_64.rpm
Loaded plugins: Security
Base | 1.3 kb
Base/primary | 2.2 MB
Base 6339/6339
Extras | 1.3 kb: 00
Extras/primary | 7.3 kb: 00
Extras 17/17
Openlogic | 1.3 kb: 00
Openlogic/primary | 273 KB: 00
Openlogic 18/18
Updates | 1.3 kb: 00
Updates/primary | 495 KB: 00
Updates 1170/1170
Setting up install process
Examining mono-openpetra-3.0.6-1.x86_64.rpm: mono-openpetra-3.0.6-1.x86_64
Marking mono-openpetra-3.0.6-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mono-openpetra.x86_64. 0.6-1 will be installed
--> Finished dependency resolution
Dependencies resolved
========================================================== ==========================================================
Package arch version repository size
========================================================== ==========================================================
Installing:
Mono-openpetra x86_64 3.0.6-1/mono-openpetra-3.0.6-1.x86_64 320 m
Transaction Summary
========================================================== ==========================================================
Install 1 package (s)
Total size: 320 m
Installed size: 320 m
Is this OK [Y/n]: Y
Downloading packages:
Running rpm_check_debug
Running transaction Test
Transaction test succeeded
Running transaction
Installing: mono-openpetra-3.0.6-1.x86_64 1/1
Verifying: mono-openpetra-3.0.6-1.x86_64 1/1
Installed:
Mono-openpetra.x86_64 0. 3. 0.6-1
Complete!
[Azureuser @ mono local] $ mono
-Bash: Mono: Command not found
When you specify the installation path through the-Relocate parameter, an is notrelocatable is reported.
[Azureuser @ mono local] $ sudo rpm-I -- relocate/opt/mono-openpetra =/usr mono-opnpetra-3.0.6-1.x86_64.rpm
Path/opt/mono-openpetra in package mono-openpetra-3.0.6-1.x86_64 is notrelocatable
You can run the following command to check whether the RPM package can be relocated, that is, to install it to another directory.
[Azureuser @ mono local] $ rpm-QPI mono-openpetra-3.0.6-1.x86_64.rpm | HEAD
Name: mono-openpetra relocations: (not relocatable)
Version: 3.0.6 vendor: (none)
Release: 1 build Date: Sat 16 mar 2013 12:59:24 UTC
Install date: (not installed) build host: j45648.servers. jiffybox. et
GROUP: openpetra developers source RPM: mono-openpetra-3.0.6-1. SC .rpm
Size: 335780608 license: GPL
Signature: (none)
Packager: Timotheus pokorra <timotheus.pokorra@solidcharity.com>
Summary: Mono with fixes for openpetra
Description:
[Azureuser @ mono local] $
Refer 《Set mono environment variables in centosSet the mono path and run mono.
[Azureuser @ mono ~] $ Mono-V
Mono JIT compiler version 3.0.6 (tarball sat Mar 16 13:41:55 CET 2013)
Copyright (c) 2002-2012 Novell, Inc, xamarin INC and contributors. www.mono-project.com
TLS: _ thread
SIGSEGV: altstack
Specifications: epoll
Architecture: amd64
Disabled: None
Misc: softdebug
Llvm: supported, not enabled.
GC: encoded ded Boehm (with typed GC and parallel mark)
[Azureuser @ mono ~] $
Installation of jexus 5.3
1. Download:
Yes: http://www.linuxdot.net/down/jexus-5.3.tar.gz
2. decompress the package:
Tar-zxvf jexus-5.3.tar.gz
3. installation:
Jexus installation is very simple. It is just a process of copying, pasting, and registering a global assembly.
Note: Please use the root identity for all of the following operations and install jexus in the "/usr/jexus" folder.
1) create a jexus working folder:
Sudo mkdir/usr/jexus
2) copy or move all the extracted files and folders to the/usr/jexus folder.
For example: sudo MV */usr/jexus/
CD/usr/jexus
3) sudo chmod + x JWS
4) register the global assembly (* very important *)
Sudo./JWS regsvr
Access the http://mono.cloudapp.net/Yes, an exception occurred during login
System. dllnotfoundexception/opt/mono-openpetra/lib/libgdiplus. So
Description:HTTP 500. Error Processing request.
Details:Non-web exception. Exception origin (name of application or object): system. Drawing.
Exception stack trace:
At (wrapper managed-to-native) system. drawing. gdiplus: gdiplusstartup (ulong &, system. drawing. gdiplusstartupinput &, system. drawing. gdiplusstartupoutput &) at system. drawing. gdiplus .. cctor () [0x00000] in <FILENAME unknown>: 0
Version Information: 3.0.6 (tarball sat Mar 16 13:41:55 CET 2013); ASP. NET version:4.0.30319.17020
The cause of the failure is that the libgdiplus package is not installed. You can map the dllmap in/opt/mono-openpetra/etc/MONO/config to the correct address.
<Dllmap DLL = "gdiplus" target = "/usr/lib/libgdiplus. So"/>
<Dllmap DLL = "gdiplus. dll" target = "/usr/lib/libgdiplus. So"/>
Note:
Since jexus 5.3, JWS. Start JWS. Stop and other commands are no longer used. These commands are replaced by the new command JWS.
Meaning of JWS parameters:
Sudo./JWS start # Start JWS
Sudo./JWS start website name # Start a specified website
Sudo./JWS restart # restart JWS
Sudo./JWS restart website name # restart a specified website
Sudo./JWS stop # Stop JWS
Sudo./JWS stop website name # Stop a specified website
Sudo./JWS regsvr # update or register the global assembly and recreate the local image
./JWS status # view the JWS running status.
Related Articles:
How to install RPM to specific directory
Http://hi.baidu.com/rsnetworking/item/1aee5916b70cfa0d8fbde470