Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. $ sudo yum install gcc
  2. $ sudo yum install -y gcc-c++*
  3.  
  4. $ brew install gcc
  5.  
  6. $ brew install gcc-c++*
  7.  
  8. Usage: brew install [options] formula
  9.  
  10. Install formula.
  11.  
  12. formula is usually the name of the formula to install, but it can be specified
  13. in several different ways.
  14.  
  15. Unless HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will be run for the
  16. installed formulae or, every 30 days, for all formulae.
  17.  
  18. -d, --debug If brewing fails, open an interactive
  19. debugging session with access to IRB or a
  20. shell inside the temporary build directory
  21. --env If std is passed, use the standard build
  22. environment instead of superenv.If super
  23. is passed, use superenv even if the formula
  24. specifies the standard build environment.
  25. --ignore-dependencies An unsupported Homebrew development flag to
  26. skip installing any dependencies of any
  27. kind. If the dependencies are not already
  28. present, the formula will have issues. If
  29. you're not developing Homebrew, consider
  30. adjusting your PATH rather than using this
  31. flag.
  32. --only-dependencies Install the dependencies with specified
  33. options but do not install the specified
  34. formula.
  35. --cc Attempt to compile using provided
  36. compiler. compiler should be the name
  37. of the compiler's executable, for instance
  38. gcc-7 for GCC 7. In order to use LLVM's
  39. clang, use llvm_clang. To specify the
  40. Apple-provided clang, use clang. This
  41. parameter will only accept compilers that
  42. are provided by Homebrew or bundled with
  43. macOS. Please do not file issues if you
  44. encounter errors while using this flag.
  45. -s, --build-from-source Compile the specified formula from source
  46. even if a bottle is provided. Dependencies
  47. will still be installed from bottles if
  48. they are available.
  49. --force-bottle Install from a bottle if it exists for the
  50. current or newest version of macOS, even if
  51. it would not normally be used for
  52. installation.
  53. --include-test Install testing dependencies required to
  54. run brew test.
  55. --devel If formula defines it, install the
  56. development version.
  57. --HEAD If formula defines it, install the HEAD
  58. version, aka. master, trunk, unstable.
  59. --fetch-HEAD Fetch the upstream repository to detect if
  60. the HEAD installation of the formula is
  61. outdated. Otherwise, the repository's HEAD
  62. will be checked for updates when a new
  63. stable or development version has been
  64. released.
  65. --keep-tmp Don't delete the temporary files created
  66. during installation.
  67. --build-bottle Prepare the formula for eventual bottling
  68. during installation.
  69. --bottle-arch Optimise bottles for the given architecture
  70. rather than the oldest architecture
  71. supported by the version of macOS the
  72. bottles are built on.
  73. -f, --force Install without checking for previously
  74. installed keg-only or non-migrated
  75. versions.
  76. -v, --verbose Print the verification and postinstall
  77. steps.
  78. --display-times Print install times for each formula at the
  79. end of the run.
  80. -i, --interactive Download and patch formula, then open a
  81. shell. This allows the user to run
  82. ./configure --help and otherwise
  83. determine how to turn the software package
  84. into a Homebrew package.
  85. -g, --git Create a Git repository, useful for
  86. creating patches to the software.
  87. -h, --help Show this message.
  88. Error: invalid option: -y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement