linux - 如何在 Linux 上运行 Dartium?

标签 linux ubuntu dart dartium

我是 Dart 新手,想要开始为 Dart 开发应用程序。现在,我只是使用 dart2js --minify为此,效果很好,但是当我需要通过更改代码、运行代码、更改代码、运行代码等来调试错误时,速度非常慢。这需要大量编译,所以虽然 dart2js一般来说,使用 dart2js 调试 Dart Web 应用程序相当快。确实很慢。

我想在 Dartium 中使用 Dart VM,并按照this video的指示下载它。 (尽管不可否认,我没有观看整个视频,因为其中一部分是关于我不使用的 Atom 的)。但是,当我打开 Dartium( ./chrome./chrome-wrapper )时,它看起来与前面的常规 Chrome 没有任何不同。没有--no-sandbox警告和用户代理与 Chromium 中的相同(没有 (Dart) )。当我尝试使用 <script type="application/dart" [...]> 运行 Dart Web 应用程序时,它不起作用。

运行 Dartium 时我也遇到以下错误(同样的错误出现在 ./chrome./chrome-wrapper 上):

[18997:18997:0829/163445:ERROR:browser_main_loop.cc(163)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Created new window in existing browser session.
[19044:19044:0829/163446:ERROR:zygote_linux.cc(587)] write: Broken pipe
[0829/163446:ERROR:nacl_helper_linux.cc(282)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly

但是,当我转到the link in the error时,这些说明引用了一堆我不认识的命令和文件。

有人可以帮我弄清楚如何构建 Dartium 吗?非常感谢!

其他信息:

  • 我运行的是 Ubuntu 15.04,我的默认浏览器是 Chromium。
  • 当我同时运行 ./chrome 时和./chrome-wrapper ,我关闭了原来的 Chromium。
  • 我已上传我的项目 to GitHub .

最佳答案

也许 Dartium 正在连接到现有版本的 Chromium。尝试使用 --user-data-dir=/tmp/dartium_dir 启动 Dartium。这将确保它与任何现有的 Chromium 分开启动。

关于linux - 如何在 Linux 上运行 Dartium?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32290544/

相关文章:

linux - USB HID 设备仅报告第一个事件

linux - 在运行时 Ubuntu 加载共享库的错误 soname

python - gcloud 与 pip install 相关的问题

performance - Canvas 多个文本绘制性能

linux - 如何在 linux 内核中禁用页面缓存?

linux - 即使文件存在,Jenkins 构建也因缺少文件错误而失败

Ubuntu 14.04 OpenStack 安装失败

c# - 通过 windows 服务器上的 windows-service 检查 ubuntu 服务器上的服务状态

flutter - 如何在Flutter中将图像转换为Base64

javascript - 如何从 JSON API 获取到表的 HTTP 请求