Skip to content

Commit 5ae1b0a

Browse files
committed
g++ is now necessary to install C++ extensions
1 parent 111d037 commit 5ae1b0a

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ environment, for example, by unmounting system filesystems such as `/dev/shm`.
102102

103103
## Dependencies
104104

105-
* [make and gcc](doc/user/installing-llvm.md) for building C and C++ extensions
105+
* [make, gcc and g++](doc/user/installing-llvm.md) for building C and C++ extensions
106106
* [libssl](doc/user/installing-libssl.md) for the `openssl` C extension
107107
* [libyaml](doc/user/installing-libyaml.md) for the `psych` C extension
108108
* [zlib](doc/user/installing-zlib.md) for the `zlib` C extension

doc/user/installing-llvm.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ The packages below are required to build C and C++ extensions.
1212
### Fedora-based: RHEL, Oracle Linux, etc
1313

1414
```bash
15-
sudo dnf install make gcc
15+
sudo dnf install make gcc gcc-c++
1616
```
1717

18+
`gcc-c++` is only necessary for building C++ extensions.
19+
1820
### Debian-based: Ubuntu, etc
1921

2022
```bash
21-
sudo apt-get install make gcc
23+
sudo apt-get install make gcc g++
2224
```
2325

26+
`g++` is only necessary for building C++ extensions.
27+
2428
### macOS
2529

2630
On macOS, make sure you have installed the command line developer tools from Xcode:

tool/docker-configs.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ rpm: &rpm
55
openssl: openssl-devel
66
yaml: libyaml-devel
77
cext: gcc make
8+
c++: gcc-c++
89
set-locale:
910
- ENV LANG=en_US.UTF-8
1011

@@ -16,6 +17,7 @@ deb: &deb
1617
openssl: libssl-dev
1718
yaml: libyaml-dev
1819
cext: gcc make
20+
c++: g++
1921
set-locale:
2022
# Uncomment the en_US.UTF-8 line in /etc/locale.gen
2123
- RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen

tool/docker.rb

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def docker(*args)
125125
packages << distro.fetch('openssl')
126126
packages << distro.fetch('yaml')
127127
packages << distro.fetch('cext')
128+
packages << distro.fetch('c++') if full_test
128129

129130
proxy_vars = []
130131
# There is an issue with dnf + proxy in Fedora 34, install packages outside proxy to workaround

0 commit comments

Comments
 (0)