Skip to content

Commit 5f2e7b8

Browse files
UNIDY2002facebook-github-bot
authored andcommitted
contrib: support installation on Arch Linux (#177)
Summary: This PR enables CacheLib to be installed on Arch Linux. I am an Arch Linux user, and I have tested it on my own machine. Pull Request resolved: #177 Reviewed By: jaesoo-fb Differential Revision: D42870728 Pulled By: therealgymmy fbshipit-source-id: 0bb85c5af3037be1687042e4e7c1550a6700d004
1 parent 089349d commit 5f2e7b8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

contrib/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ build_fedora_34()
8181
|| die "failed to install packages for Fedora"
8282
}
8383

84+
build_arch()
85+
{
86+
./contrib//prerequisites-arch.sh \
87+
|| die "failed to install packages for ArchLinux"
88+
}
89+
8490
build_dependencies()
8591
{
8692
for pkg in zstd googleflags googlelog googletest sparsemap fmt folly fizz wangle fbthrift ;
@@ -155,6 +161,7 @@ if test -z "$skip_os_pkgs" ; then
155161
centos8|rocky8.?) build_centos_8 ;;
156162
rocky9.?) build_rocky_9 ;;
157163
fedora3[456]) build_fedora_34 ;;
164+
arch*|manjaro*) build_arch ;;
158165
*) die "No build recipe for detected operating system '$DETECTED'" ;;
159166
esac
160167
fi

contrib/prerequisites-arch.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
sudo pacman -S --needed --noconfirm cmake \
17+
make \
18+
gcc \
19+
boost \
20+
double-conversion \
21+
libdwarf \
22+
libsodium

0 commit comments

Comments
 (0)