Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoaleman/fe53d79dfdfd1700c4d29b01f33d636a to your computer and use it in GitHub Desktop.
Save fernandoaleman/fe53d79dfdfd1700c4d29b01f33d636a to your computer and use it in GitHub Desktop.
Chef command warning: already initialized constant Etc::

Problem

Chef command warnings concerning already initialized constants

warning: already initialized constant Etc::SC_AIO_LISTIO_MAX
warning: already initialized constant Etc::SC_AIO_MAX
warning: already initialized constant Etc::SC_AIO_PRIO_DELTA_MAX
warning: already initialized constant Etc::SC_ARG_MAX
warning: already initialized constant Etc::SC_ATEXIT_MAX
warning: already initialized constant Etc::SC_BC_BASE_MAX

Solution

Remove all global gems

chef exec gem uninstall --all --ignore-dependencies --executables

Clean up gems

chef exec gem cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment