• 如何在 Linux 上使用 NPOI


    由于 NPOI 使用 System.Drawing.Common,因此在 Linux 系统上必须安装 libgdiplus 和 libc6。

    Ubuntu 16.04+

    apt-get install libgdiplus libc6-dev
    cd /usr/lib
    ln -s libgdiplus.so gdiplus.dll
    

    Fedora 23+

    dnf install libgdiplus
    cd /usr/lib64/
    ln -s libgdiplus.so.0 gdiplus.dll
    

    CentOS 7+

    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
    

    Docker 镜像 - Alpine

    base sdk-alpine/aspnetcore-runtime-alpine images
    
    RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
    RUN apk --update add libgdiplus
    

    Docker 镜像 - Debian

    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
  • 相关阅读:
    Linq&Lumbda
    PS颜色模式
    WPF绑定方式
    明三杰刘健
    齐有鲍叔,郑有子皮
    朱厚照
    管子&小白
    时间
    人外有人之神箭手养繇基篇
    楚共王
  • 原文地址:https://www.cnblogs.com/yswenli/p/15959111.html
Copyright © 2020-2023  润新知