Skip to content

Commit 8509f27

Browse files
committed
F::Q Description of installing Perl
1 parent 6ddeb5d commit 8509f27

File tree

2 files changed

+237
-96
lines changed

2 files changed

+237
-96
lines changed

manual/C/ch_Finance-Quote.xml

Lines changed: 111 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter SYSTEM "gnc-docbookx.dtd">
2+
<!DOCTYPE chapter SYSTEM "gnc-gui-C.dtd">
33
<!-- (Do not remove this comment block.)
44
Version: 1.0.0
55
Last modified: August 08th 2021
@@ -14,14 +14,115 @@ Translators:
1414
-->
1515
<chapter id="finance-quote"
1616
xmlns:xi="http://www.w3.org/2001/XInclude">
17-
<title>Setting up the Online Quote update</title>
17+
<title>Setting up the Quote update</title>
1818

1919
<para>If you have more than a couple of commodities, you will tire of having to update their quotes
2020
constantly. &app; has the ability to automatically download the most recent quote for your
2121
commodities using the Internet. This is accomplished through the &app-perl; module &app-fq;,
2222
which must be installed in order to activate this feature.
2323
</para>
2424

25+
<itemizedlist>
26+
<title>Prerequisites for an Online Quote update with &app-fq; are</title>
27+
28+
<listitem>
29+
<para>the &app-perl; language interpreter and
30+
</para>
31+
</listitem>
32+
33+
<listitem>
34+
<para>the &app-perl;-module &app-fq; with any dependencies.
35+
</para>
36+
</listitem>
37+
</itemizedlist>
38+
39+
<note>
40+
<para>If you get stuck while performing the steps described here, you can reach many helpful users on the
41+
channels mentioned under <xref linkend="more_help" />.
42+
</para>
43+
</note>
44+
45+
<para>You can also leave out this step and manually update your stock quotes.
46+
</para>
47+
48+
<sect1 id="finance-quote-perl-install">
49+
<title>Installing &app-perl;</title>
50+
51+
<para>The installation of &app-perl; is essentially dependent on the operating system used. The effort for
52+
installation is low and is described in this section.
53+
</para>
54+
55+
<para>To check if &app-perl; is already installed on your system, call the command
56+
<informalexample>
57+
<screen>perl -v</screen>
58+
</informalexample>
59+
in the terminal. If you are shown the version number of the &app-perl; interpreter, then
60+
continue with <xref linkend="finance-quote-install" />.
61+
</para>
62+
63+
<procedure>
64+
<title>On &lin;</title>
65+
66+
<step>
67+
<para>On most systems &app-perl; is probably already installed. If with the previous command does not show
68+
a version, then the easiest way is to use your system&rsquo;s package manager for installation.
69+
</para>
70+
</step>
71+
72+
<step>
73+
<para>When using the &app; &flatpak; package, &app-perl; and &app-fq; are already functionally installed.
74+
</para>
75+
</step>
76+
</procedure>
77+
78+
<procedure>
79+
<title>On &mac;</title>
80+
81+
<step>
82+
<para>&app-perl; is normally already set up under &mac;.
83+
</para>
84+
</step>
85+
</procedure>
86+
87+
<procedure>
88+
<title>On &win;</title>
89+
90+
<step>
91+
<para>Under &win; run the program
92+
<menuchoice>
93+
<guimenu>Start</guimenu> <guisubmenu>&appname;</guisubmenu> <guimenuitem>Install Online
94+
Price Retrieval</guimenuitem>
95+
</menuchoice>
96+
to run. This will install <ulink url="&url-wp-en;Strawberry_Perl">Strawberry Perl</ulink>.
97+
<footnote>
98+
<para>&app; Version 2.2.6 and befor require <ulink url="&url-wp-en;ActivePerl">ActivePerl</ulink>. in
99+
version 5.8.
100+
</para>
101+
</footnote>
102+
103+
<footnote>
104+
<para>&app; Version 2.4 and befor require <ulink url="&url-wp-en;ActivePerl">ActivePerl</ulink> Version
105+
5.16.3 and later.
106+
</para>
107+
</footnote>
108+
</para>
109+
</step>
110+
111+
<step>
112+
<para>For execution you need <emphasis>Administrator privilegies</emphasis>, which are requested in the
113+
dialog. The installation can take more then 15 minutes.
114+
</para>
115+
</step>
116+
117+
<step>
118+
<para>If during the installation the error message <computeroutput>No such file or directory
119+
</computeroutput> or <computeroutput>permission denied</computeroutput> are displayed,
120+
then it may help to disable the antivirus software temporarily.
121+
</para>
122+
</step>
123+
</procedure>
124+
</sect1>
125+
25126
<sect1 id="finance-quote-install">
26127
<title>Installing &app-fq;</title>
27128

@@ -39,45 +140,12 @@ SYNOPSIS
39140
If no documentation is displayed, you will have to continue with this chapter.
40141
</para>
41142

42-
<itemizedlist>
43-
<title>Prerequisites for an Online Quote update with &app-fq;</title>
44-
45-
<listitem>
46-
<para>the &app-perl; language interpreter,
47-
</para>
48-
</listitem>
49-
50-
<listitem>
51-
<para>the &app-perl;-module &app-fq; and
52-
</para>
53-
</listitem>
54-
55-
<listitem>
56-
<para>any dependencies required by the &app-fq; module.
57-
</para>
58-
</listitem>
59-
</itemizedlist>
60-
61-
<note>
62-
<para>If you feel uncomfortable about performing any of these steps, please either email the &app;-user
63-
mailing list (<email>gnucash-user@gnucash.org</email>) for help or come to the
64-
<ulink url="&url-irc;">#&appname; IRC channel</ulink>.
65-
You can also find more information in the &app; wiki at
66-
<ulink url="&url-wiki-OQ;">Online Quotes</ulink>. You can also leave out this step and
67-
manually update your stock quotes.
68-
</para>
69-
</note>
70-
71-
<para>The installation of &app-perl; is not the focus of this manual. A detailed description can be found
72-
in the &app; Wiki at <ulink url="&url-wiki-OQ;#Perl">Perl</ulink>.
73-
</para>
74-
75143
<para>The process of installing &app-fq; depends on the system. For the different supported systems, you
76144
can follow the instructions below:
77145
</para>
78146

79147
<procedure>
80-
<title>Installing &app-fq; on &lin;</title>
148+
<title>On &lin;</title>
81149

82150
<step>
83151
<simpara>Close &app;.
@@ -135,7 +203,7 @@ SYNOPSIS
135203
</procedure>
136204

137205
<procedure>
138-
<title>Installing &app-fq; on &mac;</title>
206+
<title>On &mac;</title>
139207

140208
<step>
141209
<simpara>Close &app;.
@@ -162,7 +230,7 @@ SYNOPSIS
162230
</procedure>
163231

164232
<procedure>
165-
<title>Installing &app-fq; on &win;</title>
233+
<title>On &win;</title>
166234

167235
<step>
168236
<simpara>Close &app;.
@@ -172,7 +240,7 @@ SYNOPSIS
172240
<step>
173241
<simpara>Run
174242
<menuchoice>
175-
<guimenu>Start</guimenu> <guisubmenu>&app;</guisubmenu> <guimenuitem>Install Online
243+
<guimenu>Start</guimenu> <guisubmenu>&appname;</guisubmenu> <guimenuitem>Install Online
176244
Price Retrieval</guimenuitem>
177245
</menuchoice>
178246
. This is a small utility that installs &app-fq; for you.
@@ -182,7 +250,7 @@ SYNOPSIS
182250
</sect1>
183251

184252
<sect1 id="finance-quote-scheduler">
185-
<title>Configuring for Getting Online Quotes Periodically</title>
253+
<title>Configuring for Getting Quotes Periodically</title>
186254

187255
<para>The command <command>gnucash-cli --quotes get &user-datafile;</command>
188256
<footnote>
@@ -194,8 +262,8 @@ SYNOPSIS
194262
</simpara>
195263
</footnote>
196264
can be used to fetch the current quotes of your stocks and write them directly into your
197-
&app;-data file without starting the GUI. Thus an automatic, regular updating of the
198-
price database is possible.
265+
&app;-data file without starting the GUI. Thus an automatic, regular updating of the price
266+
database is possible.
199267
<warning>
200268
<para>Please note that the data file should not be open in another instance of &app; at the same time!
201269
</para>
@@ -282,7 +350,7 @@ gnucash-cli --quotes get &user-datafile; &gt; /dev/null 2&gt;&amp;1</screen>
282350
<para>Adjust the time to the close of the stock exchange and consider <emphasis>fund quotes</emphasis>,
283351
that the net asset value (NAV) is determined well after the markets closed. The types have
284352
their description in <xref linkend="tool-price" />.
285-
<!-- FIXME: aadjust the link to a proper ID -->
353+
<!-- FIXME: adjust the link to a proper ID -->
286354
</para>
287355
</example>
288356

0 commit comments

Comments
 (0)