gpt4 book ai didi

c# - 在 Opensuse 13.2 上运行 .NET Core

转载 作者:太空宇宙 更新时间:2023-11-03 12:55:09 25 4
gpt4 key购买 nike

我已经在 Windows 和 Ubuntu 上成功测试了 .NET Core(控制台和 ASP.NET 5 应用程序)。我现在正在尝试运行一个简单的控制台应用程序,然后在 OpenSUSE 13.2 x64 上运行一个 Web 应用程序。我已经按照教程找到了 here , 但没有成功。

我已经使用 dnvm 工具安装了 DNX,并尝试了一个简单的 hello world 程序:

program.json

{
"version": "1.0.0-*",
"dependencies": {
},
"frameworks" : {
"dnx451" : { },
"dnxcore50" : {
"dependencies": {
"System.Console": "4.0.0-beta-*"
}
}
}
}

program.cs

using System;

public class Program
{
public static void Main (string[] args)
{
Console.WriteLine("Hello, Linux");
Console.WriteLine("Love from CoreCLR.");
}
}

运行dnvm 列表

Active Version              Runtime Architecture OperatingSystem Alias
------ ------- ------- ------------ --------------- -----
1.0.0-rc1-final coreclr x64 linux
1.0.0-rc1-final mono linux/osx default
* 1.0.0-rc1-update1 coreclr x64 linux
1.0.0-rc2-16237 coreclr x64 linux

问题是更晚的 dnu restore/dnu build/dnx run 会做任何事情,它不会抛出任何错误,也不会做任何事情。

最佳答案

根据 .NET 核心开发人员的说法,this是由于 libicu 的版本不正确。所以,我已经从here 下载了源文件。并使用 this构建和安装 libicu52.1 的教程。

unzip icu4c-52_1-src.zip
cd icu
mkdir build
cd build
../source/runConfigureICU Linux/gcc CXXFLGS="-D__STRICT_ANSI__ "
make -j4
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib64

关于c# - 在 Opensuse 13.2 上运行 .NET Core,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34162291/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com