首页
视频
资源
登录
转
Docker下配置.NET Core NPOI 环境
5136
人阅读
2021/9/14 17:19
总访问:
2616957
评论:
0
收藏:
0
手机
分类:
容器编排
![Docker远征](https://img.tnblog.net/arcimg/hb/656ec4beace04f5e9a7b1d58b6368639.jpg "Docker远征") >#Docker下配置.NET Core NPOI 环境 [TOC] 问题原因 ------------ tn2>在通过NPOI在linux环境下进行打包时会出现环境问题。 ```bash [[NPOI ERROR]]:The type initializer for 'Gdip' threw an exception. ``` 解决方法 ------------ tn>在Linux上,您需要安装 libgdiplus。从1.2.0开始,还需要libdl。 tn2>Ubuntu 16.04及以上版本配置 ```bash apt-get install libgdiplus libc6-dev cd /usr/lib ln -s libgdiplus.so gdiplus.dll ``` tn2>Fedora 23及以上版本配置 ```bash dnf install libgdiplus cd /usr/lib64/ ln -s libgdiplus.so.0 gdiplus.dll ``` tn2>CentOS 7及以上版本配置 ```bash yum install autoconf automake libtool yum install freetype-devel fontconfig libXft-devel yum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel yum install glib2-devel cairo-devel git clone https://github.com/mono/libgdiplus cd libgdiplus ./autogen.sh make make install cd /usr/lib64/ ln -s /usr/local/lib/libgdiplus.so gdiplus.dll ``` tn2>Docker中配置 >### Alpine ```bash RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories RUN apk --update add libgdiplus ``` >### Debian ```bash FROM microsoft/dotnet:2.1-aspnetcore-runtime RUN apt-get update && apt-get install -y libgdiplus libc6-dev && ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll ``` 更多 ------------ tn2>参考:https://www.cjavapy.com/article/677/
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739
👈{{preArticle.title}}
👉{{nextArticle.title}}
评价
{{titleitem}}
{{titleitem}}
{{item.content}}
{{titleitem}}
{{titleitem}}
{{item.content}}
尘叶心繁
这一世以无限游戏为使命!
博主信息
排名
6
文章
6
粉丝
16
评论
8
文章类别
.net后台框架
168篇
linux
17篇
linux中cve
1篇
windows中cve
0篇
资源分享
10篇
Win32
3篇
前端
28篇
传说中的c
4篇
Xamarin
9篇
docker
15篇
容器编排
101篇
grpc
4篇
Go
15篇
yaml模板
1篇
理论
2篇
更多
Sqlserver
4篇
云产品
39篇
git
3篇
Unity
1篇
考证
2篇
RabbitMq
23篇
Harbor
1篇
Ansible
8篇
Jenkins
17篇
Vue
1篇
Ids4
18篇
istio
1篇
架构
2篇
网络
7篇
windbg
4篇
AI
18篇
threejs
2篇
人物
1篇
嵌入式
2篇
python
13篇
HuggingFace
8篇
pytorch
9篇
opencv
6篇
Halcon
1篇
最新文章
最新评价
{{item.articleTitle}}
{{item.blogName}}
:
{{item.content}}
关于我们
ICP备案 :
渝ICP备18016597号-1
网站信息:
2018-2024
TNBLOG.NET
技术交流:
群号656732739
联系我们:
contact@tnblog.net
欢迎加群
欢迎加群交流技术