File: 01-Installation.html

package info (click to toggle)
gcli 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,096 kB
  • sloc: ansic: 19,013; makefile: 312; yacc: 261; sh: 142; lex: 53
file content (113 lines) | stat: -rw-r--r-- 3,634 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>

<html>
	<head>
	<title>GCLI Tutorial | Installation</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<link rel="prev" href="" />
	<link rel="next" href="{{NEXTURL}}" />
	<!-- Shamelessly stolen from: http://bettermotherfuckingwebsite.com/ -->
	<style>
		body {
			margin:5% auto;
			background: #f2f2f2;
			color: #444444;
			font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
			font-size: 16px;
			line-height: 1.8;
			text-shadow: 0 1px 0 #ffffff; max-width: 73%;
		}
		pre {
			line-height: 1.0;
		}
		a {
			border-bottom: 1px solid #444444;
			color: #444444;
			text-decoration: none;
		}
		a:hover {
			border-bottom: 0;
		}
	</style>
</head>

<body>
<nav style=text-align:right>
<a href="index.html">Table of contents</a>
<a href="02-First-Steps.html" title="First Steps">Next ⇒</a>
</nav>
<hr />
<h1>Installing GCLI</h1>
<h2>Through package manager</h2>
<p>If you're on FreeBSD you can just install gcli by running the
following command:</p>
<pre><code># pkg install gcli
</code></pre>
<h2>Compile the source code</h2>
<p>Other operating systems currently require manual compilation and
installation.</p>
<h3>Windows NT Notes</h3>
<p>It is entirely possible to build gcli on Windows using
<a href="https://msys2.org">MSYS2</a>. Please follow their instructions on
how to set up a development environment.</p>
<h3>Generic build instructions</h3>
<p>For this purpose go to
<a href="https://herrhotzenplotz.de/gcli/releases">https://herrhotzenplotz.de/gcli/releases</a>
and choose the latest release. Then download one of the tarballs.</p>
<p>For version 1.1.0 this would be:</p>
<p>https://herrhotzenplotz.de/gcli/releases/gcli-1.1.0/gcli-1.1.0.tar.xz</p>
<p>Now that you have a link, you can download it, extract it, compile the
code and install it:</p>
<pre><code>$ mkdir ~/build
$ cd ~/build
$ curl -4LO https://herrhotzenplotz.de/gcli/releases/gcli-1.1.0/gcli-1.1.0.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  342k  100  342k    0     0  2739k      0 --:--:-- --:--:-- --:--:-- 2736k
$ ls
gcli-1.1.0.tar.xz
$
</code></pre>
<p>Install the dependencies for building gcli:</p>
<p>e.g. on Debian systems:</p>
<pre><code># apt install libcurl4-openssl-dev pkgconf build-essential
</code></pre>
<p>or on MSYS2:</p>
<pre><code>$ pacman -S libcurl-devel pkgconf
</code></pre>
<p>Extract the tarball:</p>
<pre><code>$ tar xf gcli-1.1.0.tar.xz
$ cd gcli-1.1.0
</code></pre>
<p>Configure, build and install gcli:</p>
<pre><code>$ ./configure
...
$ make
...
$ make install
</code></pre>
<p>Check that the shell finds gcli:</p>
<pre><code>$ which gcli
/usr/local/bin/gcli
$
$ gcli version
gcli 1.1.0 (amd64-unknown-freebsd13.2)
Using libcurl/8.1.2 OpenSSL/1.1.1t zlib/1.2.13 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.53.0
Using vendored pdjson library
Report bugs at https://gitlab.com/herrhotzenplotz/gcli/.
Copyright 2021, 2022, 2023 Nico Sonack &lt;nsonack@herrhotzenplotz.de&gt; and contributors.
$
</code></pre>
<h3>Advanced Windows Environment Setup</h3>
<p>In case you want to use the installed gcli from outside MSYS2 (e.g.
in cmd.exe) you may wish to update the <code>Path</code> environment variable
and add the <code>C:\msys2\usr\bin</code> directory to it. Make sure you have
the library paths set up correctly.</p>
<br />
<hr />
<nav style=text-align:right>
<a href="index.html">Table of contents</a>
<a href="02-First-Steps.html" title="First Steps">Next ⇒</a>
</nav>
</body>
</html>