install-linux.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <section id="install-linux">
  2. <title>
  3. Toolkit Installation on Linux
  4. </title>
  5. <para>
  6. The Linux version of the toolkit must be compiled from source code. The only requirement is the standard <application>GNU/Linux</application> toolchain consisting of <application>make</application>, <application>gcc</application> and <application>ld</application>. These are included with most <application>Linux</application> distributions but may require installation. On <productname>Debian</productname> based distributions, such as <productname>Ubuntu</productname>, they may be installed using <application>apt-get</application>. On <productname>RedHat</productname> distributions, such as <productname>Fedora</productname>, they may be installed using <application>rpm</application>. On <productname>SuSE</productname> based distributions, they may be installed using <application>YaST2</application>.
  7. </para>
  8. <section>
  9. <title>
  10. Toolkit Installation on GNU/<productname>Linux</productname>
  11. </title>
  12. <example>
  13. <title>
  14. Toolkit Installation on GNU/<productname>Linux</productname>
  15. </title>
  16. <screen>
  17. # cp plc-utils-1.2.1.tar.gz /home/mydir
  18. # cd /home/mydir
  19. # tar -vzxf plc-utils-1.2.1.tar.gz
  20. # cd plc-utils-1.2.1
  21. # make
  22. # make install
  23. # make manuals
  24. </screen>
  25. </example>
  26. <para>
  27. Decompress the archive and extract the contents with the <application>tar</application> utility. This will create a folder having the same basename as the archive such that one version will not over-write another. Consult the <application>tar</application> man page on your system for detailed instructions. Change directory to the appropriate folder.
  28. </para>
  29. <para>
  30. The main package folder contains a recursive <filename>Makefile</filename> that will compile and install all toolkit programs. If you do not want to compile and install all programs then change directory to the appropriate folder and run <application>make</application> from there. To compile binary files, type <userinput>make</userinput>. To install binary files, type <userinput>make install</userinput>. To install man pages, type <userinput>make manuals</userinput>. The package does not automatically install examples, scripts, applets or man pages.
  31. </para>
  32. <para>
  33. We recommend that you <command>login</command> as <constant>root</constant> user before installing the toolkit; otherwise, you will be prompted for the <constant>root</constant> password as each program or component is installed.
  34. </para>
  35. <para>
  36. Programs are installed in folder <filename>/usr/local/bin</filename> and man pages are installed in folders <filename>/usr/share/man/man1</filename>. If these folders are not correct for your system, or if you want to install in other folders, then edit the folder names defined in the <link linkend="software-cross-compile">make.def</link> file found in main toolkit folder or over-ride these definitions in subordinate makefiles.
  37. </para>
  38. </section>
  39. <section>
  40. <title>
  41. Toolkit Documentation on GNU/Linux
  42. </title>
  43. <para>
  44. Toolkit web pages are not automatically installed. To access toolkit documentation, point your browser to <ulink url="index.html">docbook/index.html</ulink> and add the page to the browser bookmark or favorites list. If you are interested in how the toolkit has been implemented then do the same for page <ulink url="toolkit.html">docbook/toolkit.html</ulink>. </para>
  45. <para>
  46. The method described above is only recommended if you do not plan to move or remove toolkit folders. Otherwise, you can merely copy the entire contents of the toolkit <filename>docbook</filename> folder to another folder of your choice and point your browser to the new file locations.
  47. </para>
  48. <screen>
  49. cp -rv docbook/* /home/mydir/toolkit
  50. </screen>
  51. </section>
  52. <section>
  53. <title>
  54. Toolkit Removal on GNU/<productname>Linux</productname>
  55. </title>
  56. <para>
  57. To uninstall installed programs and man pages on Linux, change to the main toolkit folder and type <userinput>make uninstall</userinput>.
  58. </para>
  59. <example>
  60. <title>
  61. Toolkit Removal on GNU/<productname>Linux</productname>
  62. </title>
  63. <screen>
  64. # cd /home/mydir/plc-utils-1.2.1
  65. make uninstall
  66. </screen>
  67. </example>
  68. </section>
  69. </section>