Part 3Preparing for Part III

Preparing for Part III

To proceed further into the last phase of your Unix essay—programming with Unix—you need three commands in your system: c++, dialog, and valac .

Note the following:
  • Yes, we’ll be using the C++ compiler (c++/g++), not cc or gcc.

  • FreeBSD always has dialog as well as c++ in its base system.

  • All commands are available (either already installed or can be downloaded) under Unix as well the Unix emulator Cygwin (and its fork Babun too).

Here are notes for installation (if and as needed) of c++, dialog, and valac:
  • The dialog command always corresponds to the package dialog. If your box is missing the dialog command, just install the package with the same name.

  • The C++ compiler is typically available under FreeBSD as well as Linux. It might be a command named c++ or g++.

  • If there is no C++ compiler in your system, you can try the package names: (in order of package name to be tried first) clang, g++, gcc-g++, and gcc.

  • The valac command is in a package named either vala or valac.

Here’s a quick reminder of package search-and-install functions under Unix.

To search for a package named foo:

To install the package foo:

pkg search foo      # FreeBSD

apt search foo      # Linux (Ubuntu)

pacman -Ss foo      # Linux (Arch)

pact find foo        # Babun

pkg install foo      # FreeBSD

apt install foo      # Linux (Ubuntu)

pacman -S foo        # Linux (Arch)

pact install foo     # Babun

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.160.43