web-dev-qa-db-ja.com

Ubuntu 18.04のソースから「ungoogled-chromium」をビルドするにはどうすればよいですか?

私はこの時点で約1時間を費やしました、そして、私は中に少し死んでいると感じ始めています。

GitHub からungoogled-chromiumバージョン71.0.3578.98-2をダウンロードすることから始めました。 tar.gzファイルをホームフォルダーに抽出しました。次に、 ビルド手順 の「Any Linux Distribution」セクションの手順を使用します。 LLVM APT repo. を追加するまで指示に従いました。/etc/apt/sources.listファイルにBionic(18.04)の指定された行を追加しました。以下でキーを取得しました:

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|Sudo apt-key add -
Sudo apt-get update

この出力 these errors は次のようになります。

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

それから、(うまくいかないことはわかっていましたが)実行しました:

Sudo apt-get install clang-8 lld-8 llvm-8-dev python python3 ninja-build

また、すべてのLLVMパッケージをインストールできませんでした。

これはソースからビルドする私の最初の経験なので、必然的にいくつかの不快な初心者の間違いを犯したことを知っています。

2
user189728

まず、ソースからビルドしたくない場合、Ubuntu 18.04用に既にビルドされたバイナリを提供します。

構築手順は以下から入手できます。

これは、LLVM 7をビルドでき、Ubuntu Bionic(18.04)用にビルドするためにLLVM 8をインストールする必要がないことを指定します

構築は次のように簡単にする必要があります。

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
Kristopher Ives