我收到错误,它找不到一些dll.他们在系统中,但它没有找到它们.这是一个.
$ldconfig -p | grep Posix libmonoposixHelper.so (libc6,x86-64) => /usr/lib/libmonoposixHelper.so
我尝试添加路径等但没有变化.
$MONO_LOG_LEVEL=deBUG mono-service MyService.exe --deBUG > output.log
要么
$MONO_PATH=/usr/lib MONO_LOG_LEVEL=deBUG mono-service MyService.exe --deBUG > output.log
或LD_liBRARY_PATH,这是空的,所以我试过
export LD_liBRARY_PATH=/usr/lib
在输出中总是这样:
Mono: Dllimport attempting to load: 'libmonoposixHelper.so'.Mono: Dllimport loading library: '/usr/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so'.Mono: Dllimport error loading library '/usr/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so: cannot open shared object file: No such file or directory'.Mono: Dllimport loading library: '/usr/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so'.Mono: Dllimport error loading library '/usr/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so: cannot open shared object file: No such file or directory'.Mono: Dllimport loading location: 'libmonoposixHelper.so'.
所以它不是在基本路径中找到它,只是查看GAC.它为什么不在那里?应该在GAC之前查看MONO_PATH?我错过了什么吗?
测试了两个虚拟机:Ubuntu 13.04和干净的实时Mint 14.
编辑,添加信息9/10:
好的,Ubuntu的版本是2.10或者其他东西,我尝试使用最新的源代码
$sudo ./autogen.sh --prefix=/usr/local$sudo make$sudo make install$mono --versionMono JIT compiler version 3.2.1 (tarball Tue Sep 10 12:25:30 CEST 2013)copyright (C) 2002-2012 Novell,Inc,Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdeBUG LLVM: supported,not enabled. GC: sgen$LD_liBRARY_PATH=/usr/local/lib MONO_LOG_LEVEL=info mono-service MyService.exe --deBUG > output.log
output.log:
Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/mscorlib.dll'.Mono: Image addref mscorlib[0xdb0130] -> /usr/local/lib/mono/4.5/mscorlib.dll[0xdaf370]: 2Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/mscorlib.dll'.Mono: AOT loaded AOT Module for /usr/local/lib/mono/4.5/mscorlib.dll.Mono: Assembly Loader loaded assembly from location: '/usr/local/lib/mono/4.5/mscorlib.dll'.Mono: Config attempting to parse: '/usr/local/lib/mono/4.5/mscorlib.dll.config'.Mono: Config attempting to parse: '/usr/local/etc/mono/assemblIEs/mscorlib/mscorlib.config'.Mono: GC_MAJOR: (mature allocation failure) pause 0.16ms,total 0.16ms,brIDge 0.00 major 96K/32K los 0K/0KMono: Assembly mscorlib[0xdb0130] added to domain mono-service.exe,ref_count=1Mono: Config attempting to parse: '/usr/local/etc/mono/config'.Mono: Config attempting to parse: '/home/ejpb/.mono/config'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/mono-service.exe'.Mono: Image addref mono-service[0xdf0660] -> /usr/local/lib/mono/4.5/mono-service.exe[0xdae210]: 3Mono: Assembly mono-service[0xdf0660] added to domain mono-service.exe,ref_count=1Mono: AOT Failed to load AOT module /usr/local/lib/mono/4.5/mono-service.exe.so: /usr/local/lib/mono/4.5/mono-service.exe.so: cannot open shared object file: No such file or directoryMono: Assembly Loader loaded assembly from location: '/usr/local/lib/mono/4.5/mono-service.exe'.Mono: Config attempting to parse: '/usr/local/lib/mono/4.5/mono-service.exe.config'.Mono: Config attempting to parse: '/usr/local/etc/mono/assemblIEs/mono-service/mono-service.config'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/mono-service.exe'.Mono: AOT Failed to load AOT module /usr/local/lib/mono/4.5/mono-service.exe.so: /usr/local/lib/mono/4.5/mono-service.exe.so: cannot open shared object file: No such file or directoryMono: Assembly Ref addref mono-service[0xdf0660] -> mscorlib[0xdb0130]: 2Mono: Config attempting to parse: '/usr/local/lib/mono/4.5/mono-service.exe.config'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/Mono.Posix.dll'.Mono: Image addref Mono.Posix[0xe0bba0] -> /usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll[0xe0ae00]: 2Mono: Assembly Mono.Posix[0xe0bba0] added to domain mono-service.exe,ref_count=1Mono: AOT Failed to load AOT module /usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll.so: /usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll.so: cannot open shared object file: No such file or directoryMono: Assembly Loader loaded assembly from location: '/usr/local/lib/mono/4.5/Mono.Posix.dll'.Mono: Config attempting to parse: '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll.config'.Mono: Config attempting to parse: '/usr/local/etc/mono/assemblIEs/Mono.Posix/Mono.Posix.config'.Mono: Assembly Ref addref mono-service[0xdf0660] -> Mono.Posix[0xe0bba0]: 2Mono: Assembly Ref addref Mono.Posix[0xe0bba0] -> mscorlib[0xdb0130]: 3Mono: Dllimport attempting to load: 'libc.so.6'.Mono: Dllimport error loading library '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libc.so.6': '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libc.so.6: cannot open shared object file: No such file or directory'.Mono: Dllimport error loading library '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libc.so.6.so': '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libc.so.6.so: cannot open shared object file: No such file or directory'.Mono: Dllimport loaded library 'libc.so.6'.Mono: Dllimport searching in: 'libc.so.6' ('libc.so.6').Mono: Searching for 'chdir'.Mono: Probing 'chdir'.Mono: Found as 'chdir'.Mono: Dllimport attempting to load: 'libmonoposixHelper.so'.Mono: Dllimport error loading library '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so': '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so: cannot open shared object file: No such file or directory'.Mono: Dllimport error loading library '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so': '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/libmonoposixHelper.so: cannot open shared object file: No such file or directory'.Mono: Dllimport loaded library 'libmonoposixHelper.so'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_open_mode'.Mono: Probing 'Mono_Posix_Syscall_open_mode'.Mono: Found as 'Mono_Posix_Syscall_open_mode'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_lockf'.Mono: Probing 'Mono_Posix_Syscall_lockf'.Mono: Found as 'Mono_Posix_Syscall_lockf'.Mono: Dllimport searching in: 'libc.so.6' ('libc.so.6').Mono: Searching for 'getpID'.Mono: Probing 'getpID'.Mono: Found as 'getpID'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_write'.Mono: Probing 'Mono_Posix_Syscall_write'.Mono: Found as 'Mono_Posix_Syscall_write'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_get_at_fdcwd'.Mono: Probing 'Mono_Posix_Syscall_get_at_fdcwd'.Mono: Found as 'Mono_Posix_Syscall_get_at_fdcwd'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_L_ctermID'.Mono: Probing 'Mono_Posix_Syscall_L_ctermID'.Mono: Found as 'Mono_Posix_Syscall_L_ctermID'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_L_cuserID'.Mono: Probing 'Mono_Posix_Syscall_L_cuserID'.Mono: Found as 'Mono_Posix_Syscall_L_cuserID'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_get_utime_Now'.Mono: Probing 'Mono_Posix_Syscall_get_utime_Now'.Mono: Found as 'Mono_Posix_Syscall_get_utime_Now'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_get_utime_omit'.Mono: Probing 'Mono_Posix_Syscall_get_utime_omit'.Mono: Found as 'Mono_Posix_Syscall_get_utime_omit'.Mono: Dllimport searching in: 'libc.so.6' ('libc.so.6').Mono: Searching for 'free'.Mono: Probing 'free'.Mono: Found as 'free'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_malloc'.Mono: Probing 'Mono_Posix_Stdlib_malloc'.Mono: Found as 'Mono_Posix_Stdlib_malloc'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_SIG_DFL'.Mono: Probing 'Mono_Posix_Stdlib_SIG_DFL'.Mono: Found as 'Mono_Posix_Stdlib_SIG_DFL'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_SIG_ERR'.Mono: Probing 'Mono_Posix_Stdlib_SIG_ERR'.Mono: Found as 'Mono_Posix_Stdlib_SIG_ERR'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_SIG_IGN'.Mono: Probing 'Mono_Posix_Stdlib_SIG_IGN'.Mono: Found as 'Mono_Posix_Stdlib_SIG_IGN'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib__IOFBF'.Mono: Probing 'Mono_Posix_Stdlib__IOFBF'.Mono: Found as 'Mono_Posix_Stdlib__IOFBF'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib__IolBF'.Mono: Probing 'Mono_Posix_Stdlib__IolBF'.Mono: Found as 'Mono_Posix_Stdlib__IolBF'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib__IONBF'.Mono: Probing 'Mono_Posix_Stdlib__IONBF'.Mono: Found as 'Mono_Posix_Stdlib__IONBF'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_BUFSIZ'.Mono: Probing 'Mono_Posix_Stdlib_BUFSIZ'.Mono: Found as 'Mono_Posix_Stdlib_BUFSIZ'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_EOF'.Mono: Probing 'Mono_Posix_Stdlib_EOF'.Mono: Found as 'Mono_Posix_Stdlib_EOF'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_FOPEN_MAX'.Mono: Probing 'Mono_Posix_Stdlib_FOPEN_MAX'.Mono: Found as 'Mono_Posix_Stdlib_FOPEN_MAX'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_filename_MAX'.Mono: Probing 'Mono_Posix_Stdlib_filename_MAX'.Mono: Found as 'Mono_Posix_Stdlib_filename_MAX'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_L_tmpnam'.Mono: Probing 'Mono_Posix_Stdlib_L_tmpnam'.Mono: Found as 'Mono_Posix_Stdlib_L_tmpnam'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_stderr'.Mono: Probing 'Mono_Posix_Stdlib_stderr'.Mono: Found as 'Mono_Posix_Stdlib_stderr'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_stdin'.Mono: Probing 'Mono_Posix_Stdlib_stdin'.Mono: Found as 'Mono_Posix_Stdlib_stdin'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_stdout'.Mono: Probing 'Mono_Posix_Stdlib_stdout'.Mono: Found as 'Mono_Posix_Stdlib_stdout'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_TMP_MAX'.Mono: Probing 'Mono_Posix_Stdlib_TMP_MAX'.Mono: Found as 'Mono_Posix_Stdlib_TMP_MAX'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_EXIT_FAILURE'.Mono: Probing 'Mono_Posix_Stdlib_EXIT_FAILURE'.Mono: Found as 'Mono_Posix_Stdlib_EXIT_FAILURE'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_EXIT_SUCCESS'.Mono: Probing 'Mono_Posix_Stdlib_EXIT_SUCCESS'.Mono: Found as 'Mono_Posix_Stdlib_EXIT_SUCCESS'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_MB_CUR_MAX'.Mono: Probing 'Mono_Posix_Stdlib_MB_CUR_MAX'.Mono: Found as 'Mono_Posix_Stdlib_MB_CUR_MAX'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Stdlib_RAND_MAX'.Mono: Probing 'Mono_Posix_Stdlib_RAND_MAX'.Mono: Found as 'Mono_Posix_Stdlib_RAND_MAX'.Mono: Assembly mscorlib[0xdb0130] added to domain MyService.exe,ref_count=4Mono: Config attempting to parse: '/home/ejpb/mono-3.2.1/MyService.exe.config'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll'.Mono: Image addref Mono.Security[0xf159c0] -> /usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll[0xf296f0]: 2Mono: Assembly Mono.Security[0xf159c0] added to domain MyService.exe,ref_count=1Mono: AOT Failed to load AOT module /usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so: /usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so: cannot open shared object file: No such file or directoryMono: Assembly Loader loaded assembly from location: '/usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll'.Mono: Config attempting to parse: '/usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.config'.Mono: Config attempting to parse: '/usr/local/etc/mono/assemblIEs/Mono.Security/Mono.Security.config'.Mono: Assembly Ref addref Mono.Security[0xf159c0] -> mscorlib[0xdb0130]: 5Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/Mono.Security.dll'.Mono: Unloading image /usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll [0x1003f10].Mono: Assembly Mono.Security[0xf159c0] added to domain mono-service.exe,ref_count=2Mono: AOT Failed to load AOT module /usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so: /usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so: cannot open shared object file: No such file or directoryMono: Assembly Loader probing location: '/usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.dll'.Mono: Assembly Loader probing location: '/usr/local/lib/mono-service.dll'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/Facades/mono-service.dll'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.exe'.Mono: Image addref mono-service[0x109a0b0] -> /usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.exe[0x106e200]: 2Mono: Assembly mono-service[0x109a0b0] added to domain MyService.exe,ref_count=1Mono: AOT Failed to load AOT module /usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.exe.so: /usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.exe.so: cannot open shared object file: No such file or directoryMono: Assembly Loader loaded assembly from location: '/usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.exe'.Mono: Config attempting to parse: '/usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.exe.config'.Mono: Config attempting to parse: '/usr/local/etc/mono/assemblIEs/mono-service/mono-service.config'.Mono: Assembly Ref addref mono-service[0x109a0b0] -> mscorlib[0xdb0130]: 6Mono: Assembly Loader probing location: '/usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll'.Mono: Image addref System.ServiceProcess[0x10bf5f0] -> /usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll[0x10be7a0]: 2Mono: Assembly System.ServiceProcess[0x10bf5f0] added to domain MyService.exe,ref_count=1Mono: AOT Failed to load AOT module /usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll.so: /usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll.so: cannot open shared object file: No such file or directoryMono: Assembly Loader loaded assembly from location: '/usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll'.Mono: Config attempting to parse: '/usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll.config'.Mono: Config attempting to parse: '/usr/local/etc/mono/assemblIEs/System.ServiceProcess/System.ServiceProcess.config'.Mono: Assembly Ref addref mono-service[0x109a0b0] -> System.ServiceProcess[0x10bf5f0]: 2Mono: Assembly Loader probing location: '/usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll'.Mono: Image addref System[0x10c0fc0] -> /usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll[0x10c0290]: 2Mono: Assembly System[0x10c0fc0] added to domain MyService.exe,ref_count=1Mono: AOT Failed to load AOT module /usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.so: /usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.so: cannot open shared object file: No such file or directoryMono: Assembly Loader loaded assembly from location: '/usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll'.Mono: Config attempting to parse: '/usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.config'.Mono: Config attempting to parse: '/usr/local/etc/mono/assemblIEs/System/System.config'.Mono: Assembly Ref addref System.ServiceProcess[0x10bf5f0] -> System[0x10c0fc0]: 2Mono: Assembly Ref addref System[0x10c0fc0] -> mscorlib[0xdb0130]: 7Mono: Assembly Ref addref System.ServiceProcess[0x10bf5f0] -> mscorlib[0xdb0130]: 8Mono: Assembly Loader probing location: 'MyService.exe'.Mono: Assembly Loader probing location: '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll'.Mono: Assembly Mono.Posix[0xe0bba0] added to domain MyService.exe,ref_count=3Mono: AOT Failed to load AOT module /usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll.so: /usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll.so: cannot open shared object file: No such file or directoryMono: Assembly Ref addref mono-service[0x109a0b0] -> Mono.Posix[0xe0bba0]: 4Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_Syscall_syslog'.Mono: Probing 'Mono_Posix_Syscall_syslog'.Mono: Found as 'Mono_Posix_Syscall_syslog'.Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so').Mono: Searching for 'Mono_Posix_FromSyslogLevel'.Mono: Probing 'Mono_Posix_FromSyslogLevel'.Mono: Found as 'Mono_Posix_FromSyslogLevel'.Mono: GC_MAJOR: (user request) pause 1.18ms,total 1.20ms,brIDge 0.00 major 704K/272K los 50K/120KMono: Unloading domain mono-service.exe[0xdaafb0],assembly __MetadataTypes[0x1025240],ref_count=1Mono: Unloading assembly __MetadataTypes [0x1025240].Mono: Unloading image __MetadataTypes [0x1003fc0].Mono: Unloading image __MetadataTypes [0x102dba0].Mono: Unloading domain mono-service.exe[0xdaafb0],assembly mscorlib[0xdb0130],ref_count=8Mono: Unloading domain mono-service.exe[0xdaafb0],assembly mono-service[0xdf0660],ref_count=1Mono: Unloading assembly mono-service [0xdf0660].Mono: Unloading domain mono-service.exe[0xdaafb0],assembly Mono.Posix[0xe0bba0],ref_count=4Mono: Unloading domain mono-service.exe[0xdaafb0],assembly Mono.Security[0xf159c0],ref_count=2Mono: Unloading image /usr/local/lib/mono/4.5/mono-service.exe [0xdae210].Mono: Assembly image '/usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/4.5/mscorlib.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/4.5/mscorlib.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/mono-service/4.0.0.0__0738eb9f132ed756/mono-service.exe' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll' still loaded at shutdown.Mono: Assembly image '/usr/local/lib/mono/gac/System.ServiceProcess/4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll' still loaded at shutdown.
似乎更好,但它仍在关闭.
它找到了libmonoposixHelper
Mono:Dllimport加载库’libmonoposixHelper.so’.
但Posix失败了:
单声道:AOT未能加载AOT模块/usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll.so:/usr/local/lib/mono/gac/Mono.Posix /4.0.0.0__0738eb9f132ed756/Mono.Posix.dll.so:无法打开共享对象文件:没有这样的文件或目录
在日志的末尾.这是导致关机的主要错误吗?
早先加载了Mono.Posix.dll …我不知道在阅读日志时是否遗漏了一些东西.
编辑9月30日
好吧,我尝试使用CrunchBang vm,它没有Mono.已安装tarball,前缀为/ home / ejpb / mono(所需空间,on / home分区).
问题:我是否正确地做到了?我已经从windows上安装的目录中复制了exe和dll.我可以以某种方式在linux中使用msi文件(从中提取它们)吗?这会改变什么吗?
我跑了
LD_liBRARY_PATH=/home/ejpb/mono/lib MONO_LOG_LEVEL=deBUG mono-service -v /home/ejpb/MyService/MyService.exe --deBUG > out.log
并得到了out.log:
Mono: Dllimport searching in: 'libmonoposixHelper.so' ('libmonoposixHelper.so'). Mono: Searching for 'Mono_Posix_Stdlib_RAND_MAX'. Mono: Probing 'Mono_Posix_Stdlib_RAND_MAX'. Mono: Found as 'Mono_Posix_Stdlib_RAND_MAX'.
等等,所以现在这部分看起来还不错.
我也有不少“没找到”
单声道:AOT NOT FOUND:System.Security.Cryptography.RNGCryptoServiceProvIDer:RngClose(intptr).
单声道:AOT NOT FOUND:System.Threading.InternalThread:Thread_free_internal(intptr).
等等
我试过MoMA – Mono 2.8(4.0 Profile). 3.2.3也准确吗?
我有:
Assembly Version Missing Not Implemented Todo P/Invoke Apache.NMS.ActiveMQ.dll 1.5.3.2578 0 4 11 0 Apache.NMS.dll 1.5.0.2194 0 0 4 0 log4net.dll 1.2.11.0 0 0 6 3 MyServiceUtils.dll 1.0.0.0 1 0 0 0 MyService.exe 1.0.0.0 0 0 1 0
也许不可能运行这项服务? log4net有几个p / invokes等.
解决方法 如果您使用sudo apt-get install mono-complete安装了mono,你可能想看一下mscorlib.
Mono take mscorlib.dll 2.0 instead of 4.0
Unable to run .net app with Mono – mscorlib.dll not found (version mismatch?)
可能有用.
总结以上是内存溢出为你收集整理的c# – 使用单一服务在Linux上测试Windows DOTNET服务全部内容,希望文章能够帮你解决c# – 使用单一服务在Linux上测试Windows DOTNET服务所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)