mono - 导入 clr 给出未解析的符号
问题描述
安装pythonnet 2.4.0
后,和mono
(dash_apps_36) idf@ubvm:~/Documents/python/PythonWrapper.For.CS$ mono --version
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:21:28 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)
我创建了一个单行程序:
import clr
当我运行它时,我得到一个错误:
(dash_apps_36) idf@ubvm:~/Documents/python/PythonWrapper.For.CS$ python testclr.py
Traceback (most recent call last):
File "testclr.py", line 1, in <module>
import clr
ImportError: /usr/lib/libmonosgen-2.0.so.1: undefined symbol: _ZTIPi
解决方案
推荐阅读
- kentico - 如何从控制台应用程序使用 Kenitco API
- .net-core - .NET Core 3.1.x 的更高版本是否向后兼容相同的主要和次要版本?
- visual-studio-code - 为什么tasks.json:文件格式无法识别
- cucumber - 使用 rubymine 工具运行程序时出现格式化程序错误
- firebase - 是否可以增加云功能容器的生命周期?
- reactjs - Redux 状态在所有选项卡中并不统一
- javascript - 将值从 JavaScript 传递到 Django
- c++ - ld:找不到 -lstdc++fs 的库 Clang:错误:链接器命令失败,退出代码为 1
- latex - 如何在 twocolumn 类中将 tabularx 表转换为 longtable?
- c# - 如何在 blazor 中刷新页面重置值?