首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在Ubuntu18.04上从源代码构建“`ungoogled chromium`”?

如何在Ubuntu18.04上从源代码构建“`ungoogled chromium`”?
EN

Ask Ubuntu用户
提问于 2018-12-30 21:28:56
回答 1查看 4.8K关注 0票数 2

我已经花了大约一个小时的时间,我开始觉得自己已经死了。

我首先从GitHub下载C1版本71.0.3578.98-2。我将tar.gz文件解压缩到我的主文件夹中。然后,使用构建指令的“任意Linux分发版”部分的说明。我按照说明添加了LLVM适合回购。 --我在/etc/apt/sources.list文件中添加了仿生(18.04)的指定行,并使用以下方法检索密钥:

代码语言:javascript
复制
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-get update

这个输出这些错误如下所示:

代码语言:javascript
复制
E: The repository 'https:/dl.winehq.org/wine-builds/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://apt.llvm.org/bionic llvm-toolchain-bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 15CF4D18AF4F7421

然后,我(虽然我知道这不管用)跑了:

代码语言:javascript
复制
sudo apt-get install clang-8 lld-8 llvm-8-dev python python3 ninja-build

而且所有的LLVM包都无法安装。

这是我第一次从源头上构建经验,所以我知道不可避免地犯了一些令人讨厌的新手错误。

EN

回答 1

Ask Ubuntu用户

发布于 2018-12-30 22:29:57

首先,如果您不想从源代码构建,那么它们提供了已经为Ubuntu18.04构建的二进制文件:

有关建筑的说明可从以下网址获得:

这指定您可以构建LLVM 7,而不需要安装LLVM 8来构建Ubuntu仿生版(18.04)

建筑应尽可能简单,如:

代码语言:javascript
复制
sudo apt install packaging-dev python3 ninja-build

# Run from inside the clone of the repository
mkdir -p build/src

./get_package.py PACKAGE_TYPE_HERE build/src/debian
cd build/src

# Use dpkg-checkbuilddeps (from dpkg-dev) or mk-build-deps (from devscripts) to check for additional packages.
# If necessary, change the dependencies in debian/control to accommodate your environment.
# If necessary, modify AR, NM, CC, and CXX variables in debian/rules
debian/rules setup-local-src
dpkg-buildpackage -b -uc
票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1105699

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档