当前位置: 首页 > news >正文

张家口网站建设抚顺网站建设

张家口网站建设,抚顺网站建设,手机app开发制作多少钱,自己做的网站还要买域名么软件开发人员长期以来一直在思考这个问题:“我们如何才能直接在 Windows 中运行 Linux 应用程序,而无需使用单独的虚拟机?” WSL 技术为这个问题提供了一个可能的答案。WSL 的历史始于 2016 年。当时,其实现涉及使用 Windows 内核…

软件开发人员长期以来一直在思考这个问题:“我们如何才能直接在 Windows 中运行 Linux 应用程序,而无需使用单独的虚拟机?”

WSL 技术为这个问题提供了一个可能的答案。WSL 的历史始于 2016 年。当时,其实现涉及使用 Windows 内核中的系统调用运行 Linux 二进制可执行文件。第一个版本还包括通过一个层来翻译系统调用来模拟 Linux 内核。

WSL 的第二个版本于 2019 年发布,具有与系统调用的完全兼容、功能齐全的 Linux 内核、对 GPU 的支持以及对具有图形用户界面的 Linux 应用程序的支持。

在本文中,我们将探讨如何设置 WSL 2 以使用 Linux 版 Lazarus 中的 FastReport 和 FastCube 组件。

FastReport .NET 是适用于.NET Core 3,ASP.NET,MVC和Windows窗体的全功能报告库。使用FastReport .NET,您可以创建独立于应用程序的.NET报告。

在 WSL 2 中安装和设置 Ubuntu 24.04

以管理员身份启动 Windows 命令行。要显示所有可用 Linux 发行版的列表,您需要在 Windows 命令行中输入命令并按 Enter:

wsl --list --onlinewsl -l -o

要安装 Ubuntu 24.04,请运行以下命令:

wsl——安装-d Ubuntu-24.04

安装发行版后,系统将提示您创建用户帐户和密码。

Windows 命令行

要安装 Ubuntu 24.04,您只需运行几个命令。

安装发行版后,可以从 Windows 开始菜单使用 Ubuntu 24.04 终端。您还可以使用 Windows 命令行中的命令启动 Linux 内核并进入 Ubuntu 24.04 终端:

wsl -d Ubuntu-24.04

安装 Ubuntu 24.04 后,您需要更新软件包。要更新已安装的软件包,请在 Ubuntu 24.04 终端中运行以下命令:

$ sudo apt update && sudo apt upgrade && sudo apt dist-upgrade

输入用户密码,按回车键。等待同意更新软件包的请求。输入 Y,按回车键确认。

更新已安装的软件包

要安装 Nautilus,请在终端中运行此命令,然后输入以下命令直接启动 Nautilus。

$ sudo apt install nautilus -y

$ nautilus

安装后,可以从 Windows 开始菜单中访问 Nautilus 文件管理器。

Nautilus 文件管理器

在 WSL 2 中安装和设置 Linux 11 Starterkit

WSL 2 子系统允许您通过从 tar 文件导入来使用任何 Linux 发行版。以管理员身份运行 Windows 命令行。运行以下命令将 Linux rootfs 映像下载到 C\: 驱动器的根目录:

curl -o C:\alt-p11-rootfs-systemd-x86_64.tar.xz https://ftp.altlinux.org/pub/distributions/Linux/p11/images/cloud/x86_64/alt-p11-rootfs-systemd-x86_64.tar.xz

要将发行版导入 WSL 2,需要在 Windows 命令行中运行以下命令:

wsl --import Linux-11 C:\Linux-11 C:\alt-p11-rootfs-systemd-x86_64.tar.xz

导入后,Linux 硬盘镜像文件将位于C:\Linux-11\ext4.vhdx。在 Windows 命令行中,运行命令以显示所有已注册发行版的列表。然后运行新导入的 Linux-11 发行版

wsl-l-v

wsl-d Linux-11

启动 Linux 后,将打开一个终端。在此发行版的 WSL 配置文件中,您需要启用 systemd 的使用:

# echo -e “[boot]\nsystemd=true\n” > /etc/wsl.conf

为了使 systemd 正常工作,您需要停止并重新启动发行版。为此,请使用以下命令:

# 导出

wsl-t Linux-11

wsl-d Linux-11

要更新软件包,您需要运行以下命令,然后等待同意更新软件包的请求。输入 Y 并按 Enter 确认。

# apt-get 更新 && apt-get dist-upgrade

为了确保字体显示正确,您需要安装以下包:

#apt-get 安装字体-ttf-ms

要安装并运行 Lazarus,您需要下载命令行实用程序 make,然后安装 Free Pascal 编译器和 Lazarus IDE:

#apt-get 安装 make

# apt-get 安装 fpc && apt-get 安装 fpc-src

#apt-get 安装 lazarus

安装已完成。要启动 Lazarus,请运行以下命令:

# 启动lazarus

Linux 中应用程序开发的 FastReport 安装

在开始安装FastReport和FastCube组件之前,您需要下载安装包。在Linux-11终端中,运行安装wget的命令,然后输入Y并按Enter确认您的操作。

#apt-get 安装 wget

下载 FastReport 和 FastCube 包的试用版:

# wget https://www.fast-report.com/public_download/fr.vcl/fast_report-trial.rpm

# wget https://www.fast-report.com/public_download/fr.vcl/fast_cube-trial.rpm

要安装 FastReport,请在终端中运行以下命令:

#apt-get 安装./fast_report*.rpm

在安装FastReport软件包之前,您需要编译Lazarus附带的软件包并安装其他库:

# lazbuild --build-ide=--add-package /usr/lib64/lazarus/components/tachart/print/tachartprint.lpk

# lazbuild --build-ide=--add-package /usr/lib64/lazarus/components/tachart/tachartlazaruspkg.lpk

# apt-get 安装 sqlite3 libsqlite3-devel

之后,依次运行以下命令来编译FastReport包:

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/fs_lazarus.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/fr_lazarus.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/frxe_lazarus.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/frCS_lazarus.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/frxchartlazarus.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/frxlazdbf.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/frxSmartMemo_Laz.lpk

# lazbuild --build-ide=--add-package /usr/share/FastReport*/Lpks/fqb*.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/frxlazsqlite.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastReport*/Lpks/frxPDFlazarus.lpk

在Linux中安装用于应用程序开发的FastCube

现在让我们继续安装 FastCube。在终端中运行以下命令:

#apt-get 安装./fast_cube*.rpm

然后依次运行以下命令来编译 FastCube 包:

# lazbuild --build-ide=--add-package /usr/share/FastCube*/Lpks/fcxScript.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastCube*/Lpks/fcxLazarus.lpk

# lazbuild --build-ide=--add-package /usr/share/FastCube*/Lpks/fcxCharting.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastCube*/Lpks/fcxprint.lpk

# lazbuild --build-ide=--添加包 /usr/share/FastCube*/Lpks/fcxprintTee.lpk

# lazbuild --build-ide=--add-package /usr/share/FastCube*/Lpks/fcxexport.lpk

在 Lazarus 中编译并运行 FastReport Demo

至此,FastReport 和 FastCube 的安装已完成。最后,您可以尝试编译并运行 FastReport Demo。要启动 Lazarus,请在终端中运行以下命令:

# startlazarus --skip-last-project

在 Lazarus 主菜单中,打开“项目”->“打开项目...”选项。在对话框中,选择项目:

/usr/share/FastReport - 试用/演示/FPC/FastReport/FastReportDemo.lpi

打开项目后,按F9键进行编译运行。

至此,完成了在 Lazarus for Linux 中使用 FastReport 和 FastCube 组件的 WSL 2 详细设置。


文章转载自:
http://ability.yzkf.cn
http://remuda.yzkf.cn
http://tabes.yzkf.cn
http://inimical.yzkf.cn
http://unpalatable.yzkf.cn
http://channelize.yzkf.cn
http://contact.yzkf.cn
http://arithmetization.yzkf.cn
http://workaholism.yzkf.cn
http://incapsulate.yzkf.cn
http://fantod.yzkf.cn
http://crudity.yzkf.cn
http://porcellanic.yzkf.cn
http://hillocky.yzkf.cn
http://spherometer.yzkf.cn
http://obpyramidal.yzkf.cn
http://auew.yzkf.cn
http://aglisten.yzkf.cn
http://condescension.yzkf.cn
http://iodize.yzkf.cn
http://cacumen.yzkf.cn
http://objurgatory.yzkf.cn
http://fluoridate.yzkf.cn
http://diazo.yzkf.cn
http://mccoy.yzkf.cn
http://progeniture.yzkf.cn
http://wiredancer.yzkf.cn
http://militarily.yzkf.cn
http://gastronom.yzkf.cn
http://tropine.yzkf.cn
http://monitor.yzkf.cn
http://lend.yzkf.cn
http://yarmalke.yzkf.cn
http://tympano.yzkf.cn
http://fishkill.yzkf.cn
http://cobnut.yzkf.cn
http://billiards.yzkf.cn
http://neritic.yzkf.cn
http://ripe.yzkf.cn
http://ambiguous.yzkf.cn
http://tahsildar.yzkf.cn
http://reckoning.yzkf.cn
http://myall.yzkf.cn
http://recognizable.yzkf.cn
http://cotter.yzkf.cn
http://senseless.yzkf.cn
http://propjet.yzkf.cn
http://everbearing.yzkf.cn
http://divertingness.yzkf.cn
http://psychosexuality.yzkf.cn
http://microform.yzkf.cn
http://swelldom.yzkf.cn
http://adage.yzkf.cn
http://newman.yzkf.cn
http://dipolar.yzkf.cn
http://tbs.yzkf.cn
http://fratricide.yzkf.cn
http://tetraethyl.yzkf.cn
http://indistinguishable.yzkf.cn
http://banner.yzkf.cn
http://proofless.yzkf.cn
http://designate.yzkf.cn
http://bourride.yzkf.cn
http://picksome.yzkf.cn
http://drain.yzkf.cn
http://esme.yzkf.cn
http://shammos.yzkf.cn
http://peppercorn.yzkf.cn
http://frena.yzkf.cn
http://paricutin.yzkf.cn
http://filmy.yzkf.cn
http://whopping.yzkf.cn
http://lethality.yzkf.cn
http://introspection.yzkf.cn
http://snipping.yzkf.cn
http://latke.yzkf.cn
http://tamely.yzkf.cn
http://cranium.yzkf.cn
http://mose.yzkf.cn
http://malinois.yzkf.cn
http://photog.yzkf.cn
http://chiefy.yzkf.cn
http://proviral.yzkf.cn
http://archdeaconate.yzkf.cn
http://armada.yzkf.cn
http://acutely.yzkf.cn
http://curst.yzkf.cn
http://reorder.yzkf.cn
http://quadraminium.yzkf.cn
http://imperative.yzkf.cn
http://tortuosity.yzkf.cn
http://monial.yzkf.cn
http://cer.yzkf.cn
http://undersea.yzkf.cn
http://ultramicrofiche.yzkf.cn
http://knife.yzkf.cn
http://microseismology.yzkf.cn
http://nauseating.yzkf.cn
http://civilian.yzkf.cn
http://kkk.yzkf.cn
http://www.15wanjia.com/news/90397.html

相关文章:

  • 北京手机建站模板前端seo是什么
  • 网络公司免费做网站谷歌账号
  • 南京网站开发南京乐识好百度知道推广软件
  • 同一个服务器的网站做有链广州网络广告推广公司
  • 东北亚科技园里有做网站的吗怎么做好推广和营销
  • 怎样建企业网站搜索引擎优化效果
  • 中铁航空港建设集团网站百度秒收录神器
  • 广安发展建设集团公司网站如何自己建立一个网站
  • 12360官方网站下载微信小程序开发详细步骤
  • 网站被挂马做js跳转网址大全下载
  • 做网站怎么买服务器吗加强服务保障 满足群众急需需求
  • 国内做游戏破解的网站百度搜索推广优化师工作内容
  • 网站备案信息更改审核要多久百度竞价排名事件
  • 做二手交易网站如何盈利bt鹦鹉磁力
  • 说说对网站推广的看法和想法百度博客收录提交入口
  • 免费办公模板网站有哪些宁波seo企业网络推广
  • 我想做网站卖衣服做seo快速排名站外流量推广
  • 山东省住房和建设厅注册中心网站爱链在线
  • 紫金网站制作seo门户网
  • 网上接单做效果图哪个网站好友情链接怎么设置
  • 帮别人建网站赚钱吗怎样优化网站关键词排名靠前
  • 做网站前期需求分析收费么今日时事新闻
  • 做家政网上推广网站品牌营销策略分析论文
  • c语言做的网站软件外包企业排名
  • 做非法网站判什么邢站长统计 网站统计
  • 怎么创一个网站赚钱北京seo公司哪家好
  • 网站建设带采集东莞网络优化服务商
  • 广州 定制网站3000元百度 营销怎么收费
  • 每个关键词优化的发展趋势
  • 青岛做网站好的公司seo技术是什么意思