You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-6Lines changed: 17 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Rugged is a self-contained gem. You can install it by running:
18
18
$ gem install rugged
19
19
20
20
## Prerequisites
21
-
You need to have CMake and `pkg-config` installed on your system to be able to build the included version of `libgit2`.
21
+
You need to have CMake and `pkg-config` installed on your system to be able to build the included version of `libgit2`.
22
22
23
23
### Debian, Including Ubuntu
24
24
All Debian-derived Linux distros provide `apt`:
@@ -42,23 +42,34 @@ Please follow the above in case installation of the gem fails with `ERROR: CMake
42
42
43
43
If you want to build Rugged with HTTPS and SSH support, check out the list of optional [libgit2 dependencies](https://github.com/libgit2/libgit2#optional-dependencies).
44
44
45
-
To install `rugged` with SSH support ensure you have the `LibSSH2` library present, then pass the required `CMAKE_FLAGS`:
45
+
For SSH suport you have 2 options: libssh2 (recommended) or OpenSSH command execution (handy
46
+
when you want to configure SSH behavior through `.ssh/config`):
47
+
48
+
1. To use `Libssh2`, ensure libssh2 library is present and either pass the required `CMAKE_FLAGS`:
46
49
```bash
47
50
CMAKE_FLAGS='-DUSE_SSH=ON' gem install rugged
48
51
```
49
-
50
-
Or pass the `--with-ssh` build option:
52
+
or the `--with-ssh` build option:
51
53
```bash
52
54
gem install rugged -- --with-ssh
53
55
```
56
+
2. To execute external OpenSSH commands instead of libssh2, either pass the required `CMAKE_FLAGS`:
57
+
58
+
```bash
59
+
CMAKE_FLAGS='-DUSE_SSH=exec' gem install rugged
60
+
```
61
+
or the `--with-ssh-exec` build option:
62
+
```bash
63
+
gem install rugged -- --with-ssh-exec
64
+
```
54
65
55
66
If you're using bundler and want to bundle `libgit2` with Rugged, you can use the `:submodules` option:
0 commit comments