Changeset 26c3ba5
- Timestamp:
- 10/01/2024 09:35:00 AM (2 hours ago)
- Branches:
- trunk
- Children:
- f67824e
- Parents:
- 01ac611
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/cargo-c.xml
r01ac611 r26c3ba5 70 70 </itemizedlist> 71 71 72 <!-- Moved to an explicit curl command. See the note below the 73 curl command for reason. 72 74 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 73 75 <itemizedlist spacing="compact"> … … 81 83 </listitem> 82 84 83 </itemizedlist> 85 </itemizedlist>--> 84 86 85 87 <bridgehead renderas="sect3">cargo-c Dependencies</bridgehead> … … 87 89 <bridgehead renderas="sect4">Required</bridgehead> 88 90 <para role="required"> 89 <xref linkend=" curl"/>91 <xref linkend="rust"/> 90 92 </para> 93 94 <bridgehead renderas="sect4">Recommended</bridgehead> 95 <para role="recommended"> 96 <xref linkend="libssh2"/> and 97 <xref linkend="sqlite"/> 98 </para> 99 100 &build-use-internet; 91 101 92 102 </sect2> 93 103 94 104 <sect2 role="installation"> 95 <title>Installation of cargo .c</title>105 <title>Installation of cargo-c</title> 96 106 97 107 <para> 98 Install <application>cargo.c</application> by running the following 108 At first, download a file to ensure <command>cargo</command> to 109 use the dependency versions specified by the upstream developers 110 when this cargo-c version (&cargo-c-version;) was released. 111 Otherwise the latest versions of the dependencies would be used and 112 they might cause breakages: 113 </para> 114 115 <screen><userinput>curl -LO https://github.com/lu-zero/cargo-c/releases/download/v&cargo-c-version;/Cargo.lock</userinput></screen> 116 117 <note> 118 <para> 119 Normally we would put such a download into an 120 <quote>Additional Download</quote> section. But in this case we 121 cannot tell the package name and version from the file name 122 <filename>Cargo.lock</filename>, so it's better not to put the 123 ambigiously-named file outside the 124 <filename class='directory'>cargo-c-&cargo-c-version;</filename> 125 directory. We use <command>curl</command> here because the 126 <xref linkend='curl'/> package should have been installed 127 as a required dependency of <xref linkend='rust'/>. 128 </para> 129 </note> 130 131 <para> 132 Install <application>cargo-c</application> by running the following 99 133 commands: 100 134 </para> 101 135 102 <screen><userinput>cp -v ../Cargo.lock . && 103 104 [ ! -e /usr/include/libssh2.h ] || export LIBSSH2_SYS_USE_PKG_CONFIG=1 && 136 <screen><userinput>[ ! -e /usr/include/libssh2.h ] || export LIBSSH2_SYS_USE_PKG_CONFIG=1 && 105 137 [ ! -e /usr/include/sqlite3.h ] || export LIBSQLITE3_SYS_USE_PKG_CONFIG=1 && 106 138
Note:
See TracChangeset
for help on using the changeset viewer.