Changeset 9324b4e for general/prog/rust.xml
- Timestamp:
- 01/25/2019 07:09:00 PM (6 years ago)
- Branches:
- bdubbs/svn
- Children:
- 0a5062a
- Parents:
- 62f58c7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/rust.xml
r62f58c7a r9324b4e 190 190 If you are going to install into the 191 191 <filename class="directory">/opt</filename> directory, remove 192 conflicting entries. As the <systemitem class="username">root</systemitem> 192 conflicting entries and recreate the required entries. 193 As the <systemitem class="username">root</systemitem> 193 194 user: 194 195 </para> 195 196 196 <screen><userinput>rm -rf /opt/rustc /opt/rustc-&rust-version;</userinput></screen> 197 <screen role="root"><userinput>rm -rf /opt/rustc /opt/rustc-&rust-version; && 198 mkdir /opt/rustc-&rust-version; && 199 ln -sv rustc-&rust-version; /opt/rustc</userinput></screen> 200 201 <note> 202 <para> 203 If multiple versions of <application>Rust</application> are installed 204 in <filename class="directory">/opt</filename>, changing to another 205 version only requires changing the <filename> /opt/rustc</filename> 206 symbolic link. 207 </para> 208 </note> 197 209 198 210 <para> … … 225 237 226 238 [install] 227 prefix = "/usr" 239 # Adjust the prefix for the desired destination 240 #prefix = "/usr" 241 prefix = "/opt/rustc-&rust-version;" 242 228 243 # docdir is used even if the full awesome docs are not installed 229 244 docdir = "share/doc/rustc-&rust-version;" … … 312 327 313 328 <para> 314 If installing in the <filename class="directory">/opt</filename>315 directory, adjust the locations in the DESTDIR directory:316 </para>317 318 <screen><command>mkdir -p install/opt/rustc-&rust-version; &&319 mv install/usr/* install/opt/rustc-&rust-version; &&320 rmdir install/usr</command></screen>321 322 <para>323 329 Now, as the <systemitem class="username">root</systemitem> user 324 330 install the files from the DESTDIR: … … 327 333 <screen role="root"><userinput>chown -R root:root install && 328 334 cp -a install/* /</userinput></screen> 329 330 <para>331 Finally, if the application is installed in the <filename332 class="directory">/opt</filename> directory, create a symbolic link to333 access the current version:334 </para>335 336 <screen role="root"><userinput>ln -sfnv rustc-&rust-version; /opt/rustc</userinput></screen>337 338 <note>339 <para>340 If multiple versions of <application>Rust</application> are installed341 in <filename class="directory">/opt</filename>, changing to another342 version only requires changing the <filename> /opt/rustc</filename>343 symbolic link.344 </para>345 </note>346 347 335 348 336 </sect2> … … 442 430 If you installed <application>rustc</application> in 443 431 <filename class="directory">/opt</filename>, you need to update the 444 following configuration files so that <application>ru xtc</application> is432 following configuration files so that <application>rustc</application> is 445 433 correctly found by other packages and system processes. 446 434 </para>
Note:
See TracChangeset
for help on using the changeset viewer.